Sign in
dawn
/
dawn
/
6af073cecc7cd68d39beaefadf63eb3bec54bb98
/
.
/
test
/
tint
/
ptr_ref
/
load
/
param
/
uniform
/
i32_in_struct.wgsl.expected.wgsl
blob: c44d00b245d38e0272c81d082dbebcad4ffce6b6 [
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
));
}