Skip to content

Commit 0aba2a3

Browse files
PipelineLayoutVk: add resource name to PushConstantInfo
1 parent 18615d9 commit 0aba2a3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Graphics/GraphicsEngineVulkan/include/PipelineLayoutVk.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

Graphics/GraphicsEngineVulkan/src/PipelineLayoutVk.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)