mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-18 17:35:30 +00:00
Test that entry point IO attributes are of valid types
BUG=tint:773 Change-Id: I94e8624647c645efe7ed558caa3d3bd05dd72f63 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/50260 Commit-Queue: Ryan Harrison <rharrison@chromium.org> Auto-Submit: Ryan Harrison <rharrison@chromium.org> Reviewed-by: Ben Clayton <bclayton@google.com> Reviewed-by: James Price <jrprice@google.com>
This commit is contained in:
committed by
Commit Bot service account
parent
ff7a5f8dc9
commit
74490e118e
@@ -508,13 +508,13 @@ TEST_F(CanonicalizeEntryPointIOTest, SortedMembers) {
|
||||
struct VertexOutput {
|
||||
[[location(1)]] b : u32;
|
||||
[[builtin(position)]] pos : vec4<f32>;
|
||||
[[location(3)]] d : bool;
|
||||
[[location(3)]] d : u32;
|
||||
[[location(0)]] a : f32;
|
||||
[[location(2)]] c : i32;
|
||||
};
|
||||
|
||||
struct FragmentInputExtra {
|
||||
[[location(3)]] d : bool;
|
||||
[[location(3)]] d : u32;
|
||||
[[builtin(position)]] pos : vec4<f32>;
|
||||
[[location(0)]] a : f32;
|
||||
};
|
||||
@@ -536,13 +536,13 @@ fn frag_main([[builtin(front_facing)]] ff : bool,
|
||||
struct VertexOutput {
|
||||
b : u32;
|
||||
pos : vec4<f32>;
|
||||
d : bool;
|
||||
d : u32;
|
||||
a : f32;
|
||||
c : i32;
|
||||
};
|
||||
|
||||
struct FragmentInputExtra {
|
||||
d : bool;
|
||||
d : u32;
|
||||
pos : vec4<f32>;
|
||||
a : f32;
|
||||
};
|
||||
@@ -555,7 +555,7 @@ struct tint_symbol {
|
||||
[[location(2)]]
|
||||
c : i32;
|
||||
[[location(3)]]
|
||||
d : bool;
|
||||
d : u32;
|
||||
[[builtin(position)]]
|
||||
pos : vec4<f32>;
|
||||
};
|
||||
@@ -574,7 +574,7 @@ struct tint_symbol_3 {
|
||||
[[location(2)]]
|
||||
c : i32;
|
||||
[[location(3)]]
|
||||
d : bool;
|
||||
d : u32;
|
||||
[[builtin(position)]]
|
||||
pos : vec4<f32>;
|
||||
[[builtin(front_facing)]]
|
||||
|
||||
Reference in New Issue
Block a user