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