Sign in
dawn
/
dawn
/
43c5efa7e813dab3b7991cdbc901dce4c639b64f
/
.
/
test
/
tint
/
ptr_ref
/
load
/
param
/
uniform
/
i32_in_struct.wgsl
blob: 6db13e0d322771d35749c7b632e25efb8677edec [
file
] [
log
] [
blame
]
enable chromium_experimental_full_ptr_parameters
;
struct
str
{
i
:
i32
,
};
@group
(
0
)
@binding
(
0
)
var
<uniform>
S
:
str
;
fn func
(
pointer
:
ptr
<
uniform
,
i32
>)
->
i32
{
return
*
pointer
;
}
@compute
@workgroup_size
(
1
)
fn main
()
{
let
r
=
func
(&
S
.
i
);
}