Sign in
dawn
/
dawn
/
1efee19cc3ff7accd96be894b8b82b4cebdf295a
/
.
/
test
/
tint
/
var
/
uses
/
push_constant_and_instance_index.wgsl
blob: 5f9d6c41a2212f24e38feace5947481af216b9d0 [
file
] [
log
] [
blame
]
enable chromium_experimental_push_constant
;
var
<push_constant>
a
:
f32
;
@vertex
fn main
(
@builtin
(
instance_index
)
b
:
u32
)
->
@builtin
(
position
)
vec4
<f32>
{
return
vec4
<f32>
(
a
+
f32
(
b
));
}