Skip to content

Commit 3e7c750

Browse files
ziga-lunargspencer-lunarg
authored andcommitted
layers: Fix 08688 message
1 parent 10f9b26 commit 3e7c750

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

layers/core_checks/cc_shader_object.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -665,10 +665,11 @@ bool CoreChecks::ValidateDrawShaderObjectBoundShader(const LastBound& last_bound
665665
"be bound with VK_NULL_HANDLE)");
666666
}
667667
if (!last_bound_state.IsValidShaderObjectOrNullBound(ShaderObjectStage::FRAGMENT)) {
668-
skip |= LogError(CreateActionVuid(loc.function, vvl::ActionVUID::FRAGMENT_SHADER_08688), cb_state.Handle(), loc,
669-
"There is no graphics pipeline bound and vkCmdBindShadersEXT() was not called with stage "
670-
"VK_SHADER_STAGE_FRAGMENT_BIT (Even if you are trying to a vertex/mesh only draw, a VK_NULL_HANDLE must "
671-
"be bound to the fragment stage)");
668+
skip |=
669+
LogError(CreateActionVuid(loc.function, vvl::ActionVUID::FRAGMENT_SHADER_08688), cb_state.Handle(), loc,
670+
"There is no graphics pipeline bound and vkCmdBindShadersEXT() was not called with stage "
671+
"VK_SHADER_STAGE_FRAGMENT_BIT (Even if you are trying to do a vertex/mesh only draw, a VK_NULL_HANDLE must "
672+
"be bound to the fragment stage)");
672673
}
673674
if (enabled_features.taskShader && !last_bound_state.IsValidShaderObjectOrNullBound(ShaderObjectStage::TASK)) {
674675
skip |= LogError(CreateActionVuid(loc.function, vvl::ActionVUID::TASK_SHADER_08689), cb_state.Handle(), loc,

0 commit comments

Comments
 (0)