diff --git a/src/gui/rhi/qrhid3d12_p_p.h b/src/gui/rhi/qrhid3d12_p_p.h index 8a061d8506..4f1717e2bd 100644 --- a/src/gui/rhi/qrhid3d12_p_p.h +++ b/src/gui/rhi/qrhid3d12_p_p.h @@ -30,6 +30,11 @@ #include "D3D12MemAlloc.h" +inline size_t qHash(const D3D12_SAMPLER_DESC &s, size_t seed = 0) noexcept +{ + return QT_PREPEND_NAMESPACE(qHashBits)(&s, sizeof(s), seed); +} + QT_BEGIN_NAMESPACE static const int QD3D12_FRAMES_IN_FLIGHT = 2; @@ -462,11 +467,6 @@ inline bool operator!=(const D3D12_SAMPLER_DESC &a, const D3D12_SAMPLER_DESC &b) return !(a == b); } -inline size_t qHash(const D3D12_SAMPLER_DESC &s, size_t seed = 0) noexcept -{ - return qHashBits(&s, sizeof(s), seed); -} - struct QD3D12SamplerManager { const quint32 MAX_SAMPLERS = 512;