Sign in
dawn
/
tint
/
fd35aa8e47db776f8be5088d1ade382ed75253b9
/
.
/
test
/
ptr_ref
/
load
/
local
/
ptr_uniform.wgsl
blob: 527134e6df38f0b0b3413fd6871e6fc08dd328ee [
file
] [
log
] [
blame
]
[[
block
]]
struct
S
{
a
:
i32
;
};
[[
group
(
0
),
binding
(
0
)]]
var
<uniform>
v
:
S
;
[[
stage
(
compute
),
workgroup_size
(
1
)]]
fn main
()
{
let
p
:
ptr
<
uniform
,
i32
>
=
&
v
.
a
;
let
use
:
i32
=
*
p
+
1
;
}