Sign in
dawn
/
dawn
/
2a7005f4161fe3088544faa6557aaaa85a9cbf77
/
.
/
test
/
tint
/
ptr_ref
/
load
/
param
/
private
/
vec4_f32_in_struct.wgsl
blob: 90f325ef62edd5e9c8d6bdbe8ad01cfae64fef34 [
file
] [
log
] [
blame
]
enable chromium_experimental_full_ptr_parameters
;
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
);
}