|
|
@@ -1921,8 +1921,8 @@ namespace bgfx { namespace d3d12
|
|
|
m_commandList->SetGraphicsRootConstantBufferView(Rdt::CBV, gpuAddress);
|
|
|
|
|
|
TextureD3D12& texture = m_textures[_blitter.m_texture.idx];
|
|
|
- uint32_t samplerFlags[BGFX_CONFIG_MAX_TEXTURE_SAMPLERS] = { uint32_t(texture.m_flags & BGFX_SAMPLER_BITS_MASK) };
|
|
|
- uint16_t samplerStateIdx = getSamplerState(samplerFlags, BGFX_CONFIG_MAX_TEXTURE_SAMPLERS, NULL);
|
|
|
+ uint32_t samplerFlags[] = { uint32_t(texture.m_flags & BGFX_SAMPLER_BITS_MASK) };
|
|
|
+ uint16_t samplerStateIdx = getSamplerState(samplerFlags, BX_COUNTOF(samplerFlags), NULL);
|
|
|
m_commandList->SetGraphicsRootDescriptorTable(Rdt::Sampler, m_samplerAllocator.get(samplerStateIdx) );
|
|
|
D3D12_GPU_DESCRIPTOR_HANDLE srvHandle;
|
|
|
scratchBuffer.allocSrv(srvHandle, texture);
|