1234567891011121314151617181920212223242526272829303132333435363738394041 |
- // This file requires a separate register space per SRG and (--max-spaces >= 4) to pass.
- ShaderResourceGroupSemantic slot1
- {
- FrequencyId = 1;
- };
- ShaderResourceGroupSemantic slot2
- {
- FrequencyId = 2;
- };
- ShaderResourceGroupSemantic slot3
- {
- FrequencyId = 3;
- };
- ShaderResourceGroupSemantic slot4
- {
- FrequencyId = 4;
- };
- ShaderResourceGroup SRG1 : slot1
- {
- Texture2D<float4> m_texSRVa[]; // Takes t0+, space0
- };
- ShaderResourceGroup SRG2 : slot2
- {
- Texture2D<float4> m_texSRVa[]; // Takes t0+, space1, but --max-spaces==1 should fail
- };
- ShaderResourceGroup SRG3 : slot3
- {
- Texture2D<float4> m_texSRVa[]; // Takes t0+, space2, but --max-spaces==2 should fail
- };
- ShaderResourceGroup SRG4 : slot4
- {
- Texture2D<float4> m_texSRVa[]; // Takes t0+, space3, but --max-spaces==3 should fail
- };
|