Not Sure what could be the issue. #7092
Answered
by
coffeebe4code
coffeebe4code
asked this question in
Q&A
-
here is the println of vertexbufferlayout
and this shader, @vertex
fn vs_main(@location(0) position: vec2<f32>) -> @builtin(position) vec4<f32> {
return vec4(position, 0, 1.0);
}
@fragment
fn fs_main(@builtin(position) position: vec4<f32>) -> @location(0) vec4<f32> {
let color = 0.5 + 0.5 * cos(vec3(position.xy, 1) + vec3(1.0, 1.0, 2.0));
return vec4(color, 1.0);
} yielding this error. Caused by:
In Device::create_render_pipeline, label = 'pipeline: background'
Error matching ShaderStages(VERTEX) shader requirements against the pipeline
Location[1] Float32x2 interpolated as Some(Perspective) with sampling Some(Center) is not provided by the previous stage outputs
Input is not provided by the earlier stage in the pipeline its so strange to me what could be wrong there is no location[1] |
Beta Was this translation helpful? Give feedback.
Answered by
coffeebe4code
Feb 10, 2025
Replies: 1 comment
-
I was able to figure out I was using the wrong shader. I was passing it the name of a different shader. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
cwfitzgerald
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was able to figure out I was using the wrong shader. I was passing it the name of a different shader.