Sign in
dawn
/
dawn
/
ad6d0d3c18fb19b4493d824d612795f3efc71a0f
/
.
/
test
/
tint
/
ptr_ref
/
load
/
param
/
storage
/
vec4_f32_in_struct.wgsl
blob: 97a8937c1cf3e804d740c980e4b87803fbce5cf9 [
file
] [
log
] [
blame
]
struct
str
{
i
:
vec4
<f32>
,
};
@group
(
0
)
@binding
(
0
)
var
<storage>
S
:
str
;
fn func
(
pointer
:
ptr
<
storage
,
vec4
<f32>
>)
->
vec4
<f32>
{
return
*
pointer
;
}
@compute
@workgroup_size
(
1
)
fn main
()
{
let
r
=
func
(&
S
.
i
);
}