storageTextureLayoutAccess()
함수, 타입 분류
What WebGPU's GPUStorageTextureBindingLayout.access calls a WGSL access mode.
import { storageTextureLayoutAccess } from 'typeshade'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
const storageTextureLayoutAccess: ( access: StorageTextureAccess,) => "write-only" | "read-only" | "read-write"매개변수
accessStorageTextureAccess
반환값
'write-only' | 'read-only' | 'read-write'
설명
The two vocabularies differ by a hyphen and a word, and a host passing the WGSL spelling straight through gets a validation error, so reflection carries the host’s spelling.
소스
src/core/ir/types.ts, 183행, 커밋 c66579bf 기준