@@ -121,7 +121,7 @@ D3DShaderResourceCounters ShaderVariableManagerD3D11::CountResources(
121121 [&](Uint32 Index) //
122122 {
123123 const PipelineResourceDesc& ResDesc = Signature.GetResourceDesc (Index);
124- static_assert (SHADER_RESOURCE_TYPE_LAST == 8 , " Please update the switch below to handle the new shader resource range" );
124+ static_assert (SHADER_RESOURCE_TYPE_LAST == 9 , " Please update the switch below to handle the new shader resource range" );
125125 switch (ResDesc.ResourceType )
126126 {
127127 // clang-format off
@@ -132,6 +132,7 @@ D3DShaderResourceCounters ShaderVariableManagerD3D11::CountResources(
132132 case SHADER_RESOURCE_TYPE_BUFFER_UAV: ++Counters.NumBufUAVs ; break ;
133133 case SHADER_RESOURCE_TYPE_SAMPLER: ++Counters.NumSamplers ; break ;
134134 case SHADER_RESOURCE_TYPE_INPUT_ATTACHMENT: ++Counters.NumTexSRVs ; break ;
135+ case SHADER_RESOURCE_TYPE_INLINE_CONSTANTS: ++Counters.NumCBs ; break ;
135136 // clang-format on
136137 default :
137138 UNEXPECTED (" Unsupported resource type." );
@@ -215,7 +216,7 @@ void ShaderVariableManagerD3D11::Initialize(const PipelineResourceSignatureD3D11
215216 [&](Uint32 Index) //
216217 {
217218 const PipelineResourceDesc& ResDesc = Signature.GetResourceDesc (Index);
218- static_assert (SHADER_RESOURCE_TYPE_LAST == 8 , " Please update the switch below to handle the new shader resource range" );
219+ static_assert (SHADER_RESOURCE_TYPE_LAST == 9 , " Please update the switch below to handle the new shader resource range" );
219220 switch (ResDesc.ResourceType )
220221 {
221222 case SHADER_RESOURCE_TYPE_CONSTANT_BUFFER:
@@ -249,6 +250,11 @@ void ShaderVariableManagerD3D11::Initialize(const PipelineResourceSignatureD3D11
249250 new (&GetResource<SamplerBindInfo>(sam++)) SamplerBindInfo{*this , Index};
250251 break ;
251252
253+ case SHADER_RESOURCE_TYPE_INLINE_CONSTANTS:
254+ // Initialize CB for inline constants in place, increment CB counter
255+ new (&GetResource<ConstBuffBindInfo>(cb++)) ConstBuffBindInfo{*this , Index};
256+ break ;
257+
252258 default :
253259 UNEXPECTED (" Unsupported resource type." );
254260 }
0 commit comments