StorageTextureAccess
타입, 타입 분류
How a shader may touch a storage texture.
import type { StorageTextureAccess } from 'typeshade'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
type StorageTextureAccess = 'write' | 'read' | 'read_write';설명
WGSL spells these write, read and
read_write; WebGPU’s bind group layout spells the same three write-only, read-only and
read-write, which is what storageTextureLayoutAccess converts to.
함께 보기
소스
src/core/ir/types.ts, 98행, 커밋 c66579bf 기준