Sampler tables should not be marked as data volatile (the default)

This commit is contained in:
baldurk
2022-10-28 14:13:06 +01:00
parent 91a77c1698
commit 1303a50cf5
+5
View File
@@ -203,6 +203,11 @@ D3D12_ROOT_PARAMETER1 tableParam(D3D12_SHADER_VISIBILITY vis, D3D12_DESCRIPTOR_R
static D3D12_DESCRIPTOR_RANGE1 ranges[32] = {};
static int rangeIdx = 0;
if(type == D3D12_DESCRIPTOR_RANGE_TYPE_SAMPLER)
{
flags &= ~D3D12_DESCRIPTOR_RANGE_FLAG_DATA_VOLATILE;
}
D3D12_DESCRIPTOR_RANGE1 &range = ranges[rangeIdx];
rangeIdx = (rangeIdx + 1) % ARRAY_COUNT(ranges);