mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-20 18:29:23 +00:00
Removing deprecated spvc API usages
Roll third_party/shaderc/ c6a2ef12d..a4f9acedf (5 commits)
c6a2ef12df..a4f9acedf3
$ git log c6a2ef12d..a4f9acedf --date=short --no-merges --format='%ad %ae %s'
2020-01-23 rharrison Big cleanup to normalize API behaviour (#967)
2020-01-22 rharrison Start v2020.0 (#970)
2020-01-22 rharrison Fix the version string (#971)
2020-01-22 rharrison Finalize v2019.1 (#969)
2020-01-20 rharrison Rolling 3 dependencies and updating expectations (#966)
Created with:
roll-dep third_party/shaderc
BUG=dawn:324
Change-Id: I3c3900dcccc317054f035e21a6863f068ce417c9
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/15421
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
fa06dd0b62
commit
1d036f7766
@@ -94,7 +94,8 @@ namespace dawn_native { namespace opengl {
|
||||
DAWN_TRY(CheckSpvcSuccess(
|
||||
mSpvcContext.InitializeForGlsl(descriptor->code, descriptor->codeSize, options),
|
||||
"Unable to initialize instance of spvc"));
|
||||
compiler = reinterpret_cast<spirv_cross::CompilerGLSL*>(mSpvcContext.GetCompiler());
|
||||
DAWN_TRY(CheckSpvcSuccess(mSpvcContext.GetCompiler(reinterpret_cast<void**>(&compiler)),
|
||||
"Unable to get cross compiler"));
|
||||
} else {
|
||||
// If these options are changed, the values in DawnSPIRVCrossGLSLFastFuzzer.cpp need to
|
||||
// be updated.
|
||||
@@ -192,8 +193,9 @@ namespace dawn_native { namespace opengl {
|
||||
if (GetDevice()->IsToggleEnabled(Toggle::UseSpvc)) {
|
||||
shaderc_spvc::CompilationResult result;
|
||||
DAWN_TRY(CheckSpvcSuccess(mSpvcContext.CompileShader(&result),
|
||||
"Unable to compile shader using spvc"));
|
||||
mGlslSource = result.GetStringOutput();
|
||||
"Unable to compile GLSL shader using spvc"));
|
||||
DAWN_TRY(CheckSpvcSuccess(result.GetStringOutput(&mGlslSource),
|
||||
"Unable to get GLSL shader text"));
|
||||
} else {
|
||||
mGlslSource = compiler->compile();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user