mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-13 15:16:16 +00:00
Rename ShaderStageBit to ShaderStage.
This is to follow changes to WebGPU's IDL and header file where the Bit suffix disappeared. This caused a conflict with utils/dawn_native::ShaderStage that were both renamed to SingleShaderStage. BUG-dawn: 22 Change-Id: I7b085686775fa19e4b4a3b54979903d72f3ef660 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/10462 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
9e9e29f7a6
commit
b9b088f57e
@@ -45,7 +45,8 @@ void init() {
|
||||
" gl_Position = vec4(pos[gl_VertexIndex], 0.0, 1.0);\n"
|
||||
"}\n";
|
||||
DawnShaderModule vsModule =
|
||||
utils::CreateShaderModule(dawn::Device(device), utils::ShaderStage::Vertex, vs).Release();
|
||||
utils::CreateShaderModule(dawn::Device(device), utils::SingleShaderStage::Vertex, vs)
|
||||
.Release();
|
||||
|
||||
const char* fs =
|
||||
"#version 450\n"
|
||||
@@ -54,7 +55,7 @@ void init() {
|
||||
" fragColor = vec4(1.0, 0.0, 0.0, 1.0);\n"
|
||||
"}\n";
|
||||
DawnShaderModule fsModule =
|
||||
utils::CreateShaderModule(device, utils::ShaderStage::Fragment, fs).Release();
|
||||
utils::CreateShaderModule(device, utils::SingleShaderStage::Fragment, fs).Release();
|
||||
|
||||
{
|
||||
DawnRenderPipelineDescriptor descriptor;
|
||||
|
||||
Reference in New Issue
Block a user