Sign in
dawn
/
dawn
/
254a9bdbe62a075da94c297df2e49f8ee79332ba
/
.
/
test
/
tint
/
extensions
/
pixel_local
/
entry_point_use
/
additional_params
/
invariant_builtin_in_struct.wgsl.expected.wgsl
blob: 07449a84fbef1c0c77f10bc035f4923116f5e20c [
file
] [
log
] [
blame
]
enable chromium_experimental_pixel_local
;
struct
PixelLocal
{
a
:
u32
,
b
:
i32
,
c
:
f32
,
}
var
<pixel_local>
P
:
PixelLocal
;
struct
In
{
@invariant
@builtin
(
position
)
pos
:
vec4f
,
}
@fragment
fn f
(
in
:
In
)
{
P
.
a
+=
u32
(
in
.
pos
.
x
);
}