File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Graphics/GraphicsEngineVulkan Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,8 @@ class PipelineLayoutVk
6666 {
6767 VkPushConstantRange vkRange = {};
6868
69+ std::string Name;
70+
6971 Uint32 SignatureIndex = ~0u ;
7072 Uint32 ResourceIndex = ~0u ;
7173
Original file line number Diff line number Diff line change @@ -81,8 +81,10 @@ PipelineLayoutVk::PushConstantInfo PipelineLayoutVk::GetPushConstantInfo(
8181 const PipelineResourceDesc& ResDesc = pSignature->GetResourceDesc (r);
8282 if (ResDesc.Flags & PIPELINE_RESOURCE_FLAG_INLINE_CONSTANTS)
8383 {
84- VERIFY_EXPR (ResDesc.ArraySize > 0 );
84+ PCInfo.Name = ResDesc.Name ;
85+
8586 // For inline constants, ArraySize contains the number of 32-bit constants.
87+ VERIFY_EXPR (ResDesc.ArraySize > 0 );
8688 PCInfo.vkRange .size = ResDesc.ArraySize * sizeof (Uint32);
8789 PCInfo.vkRange .offset = 0 ;
8890 PCInfo.vkRange .stageFlags = ShaderTypesToVkShaderStageFlags (ResDesc.ShaderStages );
You can’t perform that action at this time.
0 commit comments