Hello!
Is it possible to mix ranges of samplers and ranges of SRVs and ranges of UAVs in one root parameter descriptor table? Like so:
D3D12_DESCRIPTOR_RANGE ranges[3];
D3D12_ROOT_PARAMETER param;
param.ParameterType = D3D12_ROOT_PARAMETER_TYPE_DESCRIPTOR_TABLE;
param.DescriptorTable.NumDescriptorRanges = 3;
param.DescriptorTable.pDescriptorRanges = ranges;
range[0].RangeType = D3D12_DESCRIPTOR_RANGE_TYPE_SRV;
..
range[1].RangeType = D3D12_DESCRIPTOR_RANGE_TYPE_UAV;
..
range[2].RangeType = D3D12_DESCRIPTOR_RANGE_TYPE_SAMPLER;
..
I wonder especially about CopyDescriptors, that will need to copy a range of D3D12_DESCRIPTOR_HEAP_TYPE_SAMPLER and a range of D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV.
Thanks if anyone knows (while I try it :))
.P