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:
parent
c35e2ba379
commit
9e261b46a4
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue