Sign in
dawn
/
dawn
/
6af073cecc7cd68d39beaefadf63eb3bec54bb98
/
.
/
test
/
tint
/
ptr_ref
/
load
/
param
/
uniform
/
vec4_f32.wgsl
blob: 68e7949130146b8b35b3798cabd7f7b407b44f12 [
file
] [
log
] [
blame
]
enable chromium_experimental_full_ptr_parameters
;
@group
(
0
)
@binding
(
0
)
var
<uniform>
S
:
vec4
<f32>
;
fn func
(
pointer
:
ptr
<
uniform
,
vec4
<f32>
>)
->
vec4
<f32>
{
return
*
pointer
;
}
@compute
@workgroup_size
(
1
)
fn main
()
{
let
r
=
func
(&
S
);
}