Skip to content

Commit

Permalink
Fixes metal texture/buffer binding issue (#3214)
Browse files Browse the repository at this point in the history
Fixes metal texture/buffer binding when when the same resource is bound to both (vertex and fragment) stages

#3024
  • Loading branch information
attilaz authored Dec 4, 2023
1 parent e9e2e22 commit 7b8aa2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer_mtl.mm
Original file line number Diff line number Diff line change
Expand Up @@ -2049,7 +2049,7 @@ void processArguments(
}
else
{
ps->m_bindingTypes[arg.index-1] = fragmentBit
ps->m_bindingTypes[arg.index-1] |= fragmentBit
? PipelineStateMtl::BindToFragmentShader
: PipelineStateMtl::BindToVertexShader
;
Expand All @@ -2067,7 +2067,7 @@ void processArguments(
}
else
{
ps->m_bindingTypes[arg.index] = fragmentBit
ps->m_bindingTypes[arg.index] |= fragmentBit
? PipelineStateMtl::BindToFragmentShader
: PipelineStateMtl::BindToVertexShader
;
Expand Down

0 comments on commit 7b8aa2e

Please sign in to comment.