mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-15 11:51:22 +00:00
Metal: Fix SetBindGroup assert
This commit is contained in:
parent
91b475f369
commit
2f96e129ef
@ -460,9 +460,9 @@ namespace metal {
|
|||||||
}
|
}
|
||||||
|
|
||||||
auto stage = layout.visibilities[binding];
|
auto stage = layout.visibilities[binding];
|
||||||
bool vertStage = stage & nxt::ShaderStageBit::Vertex;
|
bool vertStage = stage & nxt::ShaderStageBit::Vertex && lastRenderPipeline != nullptr;
|
||||||
bool fragStage = stage & nxt::ShaderStageBit::Fragment;
|
bool fragStage = stage & nxt::ShaderStageBit::Fragment && lastRenderPipeline != nullptr;
|
||||||
bool computeStage = stage & nxt::ShaderStageBit::Compute;
|
bool computeStage = stage & nxt::ShaderStageBit::Compute && lastComputePipeline != nullptr;
|
||||||
uint32_t vertIndex = 0;
|
uint32_t vertIndex = 0;
|
||||||
uint32_t fragIndex = 0;
|
uint32_t fragIndex = 0;
|
||||||
uint32_t computeIndex = 0;
|
uint32_t computeIndex = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user