mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-14 17:16:01 +00:00
Enable robust buffer access pass if robustness on
Turns on SPVC buffer access pass if robustness is also enabled. Bug: dawn:480 Change-Id: Ib4d74e177f4f65139219f3ce8662566370f4a108 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/26741 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Austin Eng <enga@chromium.org>
This commit is contained in:
parent
76d9e34bbc
commit
e1604b9a64
@ -1097,6 +1097,7 @@ namespace dawn_native {
|
|||||||
shaderc_spvc::CompileOptions ShaderModuleBase::GetCompileOptions() const {
|
shaderc_spvc::CompileOptions ShaderModuleBase::GetCompileOptions() const {
|
||||||
shaderc_spvc::CompileOptions options;
|
shaderc_spvc::CompileOptions options;
|
||||||
options.SetValidate(GetDevice()->IsValidationEnabled());
|
options.SetValidate(GetDevice()->IsValidationEnabled());
|
||||||
|
options.SetRobustBufferAccessPass(GetDevice()->IsRobustnessEnabled());
|
||||||
return options;
|
return options;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user