Metal: Fix SetBindGroup assert

This commit is contained in:
Corentin Wallez 2017-08-18 11:30:40 -04:00 committed by Corentin Wallez
parent 91b475f369
commit 2f96e129ef
1 changed files with 3 additions and 3 deletions

View File

@ -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;