mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 05:27:49 +00:00
Fix validation errors in Animometer's shader
This commit is contained in:
committed by
Corentin Wallez
parent
4efaf32d1b
commit
ca9af201b5
@@ -57,7 +57,7 @@ void init() {
|
||||
float scalarOffset;
|
||||
} c;
|
||||
|
||||
out vec4 v_color;
|
||||
layout(location = 0) out vec4 v_color;
|
||||
|
||||
const vec4 positions[3] = vec4[3](
|
||||
vec4( 0.0f, 0.1f, 0.0f, 1.0f),
|
||||
@@ -96,7 +96,7 @@ void init() {
|
||||
nxt::ShaderModule fsModule = CreateShaderModule(device, nxt::ShaderStage::Fragment, R"(
|
||||
#version 450
|
||||
out vec4 fragColor;
|
||||
in vec4 v_color;
|
||||
layout(location = 0) in vec4 v_color;
|
||||
void main() {
|
||||
fragColor = v_color;
|
||||
})"
|
||||
|
||||
Reference in New Issue
Block a user