Metal: Fix SetBindGroup assert
This commit is contained in:
parent
91b475f369
commit
2f96e129ef
|
@ -460,9 +460,9 @@ namespace metal {
|
|||
}
|
||||
|
||||
auto stage = layout.visibilities[binding];
|
||||
bool vertStage = stage & nxt::ShaderStageBit::Vertex;
|
||||
bool fragStage = stage & nxt::ShaderStageBit::Fragment;
|
||||
bool computeStage = stage & nxt::ShaderStageBit::Compute;
|
||||
bool vertStage = stage & nxt::ShaderStageBit::Vertex && lastRenderPipeline != nullptr;
|
||||
bool fragStage = stage & nxt::ShaderStageBit::Fragment && lastRenderPipeline != nullptr;
|
||||
bool computeStage = stage & nxt::ShaderStageBit::Compute && lastComputePipeline != nullptr;
|
||||
uint32_t vertIndex = 0;
|
||||
uint32_t fragIndex = 0;
|
||||
uint32_t computeIndex = 0;
|
||||
|
|
Loading…
Reference in New Issue