Fixes metal texture/buffer binding issue (#3214)

Fixes metal texture/buffer binding when when the same resource is bound to both (vertex and fragment) stages

https://github.com/bkaradzic/bgfx/issues/3024
This commit is contained in:
attilaz 2023-12-04 16:37:39 +01:00 committed by GitHub
parent e9e2e224ee
commit 7b8aa2ec75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2049,7 +2049,7 @@ BX_STATIC_ASSERT(BX_COUNTOF(s_accessNames) == Access::Count, "Invalid s_accessNa
}
else
{
ps->m_bindingTypes[arg.index-1] = fragmentBit
ps->m_bindingTypes[arg.index-1] |= fragmentBit
? PipelineStateMtl::BindToFragmentShader
: PipelineStateMtl::BindToVertexShader
;
@ -2067,7 +2067,7 @@ BX_STATIC_ASSERT(BX_COUNTOF(s_accessNames) == Access::Count, "Invalid s_accessNa
}
else
{
ps->m_bindingTypes[arg.index] = fragmentBit
ps->m_bindingTypes[arg.index] |= fragmentBit
? PipelineStateMtl::BindToFragmentShader
: PipelineStateMtl::BindToVertexShader
;