Skip to content

Commit d2f62ea

Browse files
committed
Make sure we indeed got a push constants
1 parent adef38b commit d2f62ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Graphics/GraphicsEngineVulkan/src/PipelineStateVkImpl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ PipelineResourceSignatureDescWrapper PipelineStateVkImpl::GetDefaultResourceSign
668668

669669
ShaderResourceVariableDesc VarDesc = FindPipelineResourceLayoutVariable(ResourceLayout, Attribs.Name, Stage.Type, SamplerSuffix);
670670

671-
if (PCInfo.Name == Attribs.Name)
671+
if (PCInfo && PCInfo.Name == Attribs.Name)
672672
{
673673
//Use merged ShaderStages for PushConstants
674674
VarDesc.ShaderStages = PCInfo.ShaderStages;

0 commit comments

Comments
 (0)