Ref
타입
A reference parameter, p: Ref<f32>: the parameter names the caller's place instead of holding a copy of its value, so reading p reads that place and assigning to p, or to a field, component or element of it, writes it.
이름마다 붙은 시그니처와 설명은 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
type Ref<T> = T매개변수
-
T
설명
The caller passes the place with ref(x). Written only on a parameter of a function declared at the top of the file or of a namespace. WGSL ptr<function, T> (or the place's own address space), GLSL ES 3.00 inout T.