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