From 24f8d1870ba45f8e98ef5e3efe51e4aab78fa8a6 Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Wed, 19 Jun 2019 15:48:59 +0000 Subject: [PATCH] Migrate to use new Shader Model API The currently used method, SetShaderModel has been deprecated in favour of SetHLSLShaderModel. This CL migrates Dawn, so that the deprecated method can be removed from upstream. BUG=chromium:976798 Change-Id: Id1e655b77291179dd6e15f1a85c8664f07cf8396 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/8220 Commit-Queue: Ryan Harrison Reviewed-by: Corentin Wallez --- src/fuzzers/DawnSPIRVCrossHLSLFastFuzzer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fuzzers/DawnSPIRVCrossHLSLFastFuzzer.cpp b/src/fuzzers/DawnSPIRVCrossHLSLFastFuzzer.cpp index 193a758133..d3b52d483e 100644 --- a/src/fuzzers/DawnSPIRVCrossHLSLFastFuzzer.cpp +++ b/src/fuzzers/DawnSPIRVCrossHLSLFastFuzzer.cpp @@ -33,7 +33,7 @@ namespace { // Using the options that are used by Dawn, they appear in ShaderModuleD3D12.cpp options.SetFlipVertY(true); - options.SetShaderModel(51); + options.SetHLSLShaderModel(51); compiler.CompileSpvToHlsl(input.data(), input.size(), options); });