Skip to content

Commit 092d0b3

Browse files
fixup! fix: reject fragment shader output locations > max_color_attachments limit
1 parent 738b576 commit 092d0b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/tests/wgpu-validation/api/render_pipeline.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
//! Tests of [`wgpu::RenderPipeline`] and related.
22
3-
use wgpu_hal::MAX_COLOR_ATTACHMENTS;
43
use wgpu_test::fail;
54

65
#[test]
@@ -21,10 +20,11 @@ fn vert(@builtin(vertex_index) vertex_index : u32) -> @builtin(position) vec4f {
2120
}}
2221
2322
@fragment
24-
fn frag() -> @location({MAX_COLOR_ATTACHMENTS}) vec4f {{
23+
fn frag() -> @location({}) vec4f {{
2524
return vec4(1.0, 0.0, 0.0, 1.0);
2625
}}
27-
"
26+
",
27+
device.limits().max_color_attachments
2828
);
2929

3030
let module = device.create_shader_module(wgpu::ShaderModuleDescriptor {

0 commit comments

Comments
 (0)