Fix compilation with dawn_enable_wgsl=false

Bug: None
TBR=rharrison@chromium.org
TBR=enga@chromium.org
Change-Id: I5376983a0aefbd355a2d2a5da822a34bd6f264dc

Change-Id: I89c8c1e14030f01b76cab0f61cd76526a96ca01e
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/28120
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Corentin Wallez 2020-09-03 08:45:40 +00:00 committed by Commit Bot service account
parent c35e2ba379
commit 9e261b46a4
1 changed files with 2 additions and 0 deletions

View File

@ -136,6 +136,7 @@ namespace dawn_native { namespace metal {
}
}
#ifdef DAWN_ENABLE_WGSL
// Add vertex buffers bound as storage buffers
if (GetDevice()->IsToggleEnabled(Toggle::MetalEnableVertexPulling) &&
functionStage == SingleShaderStage::Vertex) {
@ -151,6 +152,7 @@ namespace dawn_native { namespace metal {
compiler.add_msl_resource_binding(mslBinding);
}
}
#endif
{
spv::ExecutionModel executionModel = SpirvExecutionModelForStage(functionStage);