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