mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
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:
@@ -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
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user