StorageTextureAccess
이 페이지에서

StorageTextureAccess

타입, 타입 분류

셰이더가 스토리지 텍스처에 접근할 수 있는 방식입니다.

import type { StorageTextureAccess } from 'typeshade'
import type { StorageTextureAccess } from 'typeshade/core/ir'

설명은 커밋 af54ddad5의 검토된 컴파일러 문서를 번역한 것입니다. 시그니처와 예제 코드는 원문을 따르며, 필요한 경우 설명에 편집상 수정이 반영됩니다.

구문

type StorageTextureAccess = 'write' | 'read' | 'read_write';

설명

WGSL은 이들을 write, read, read_write로 적습니다. WebGPU의 바인드 그룹 레이아웃은 같은 세 가지를 write-only, read-only, read-write로 적습니다. 이 표기를 WebGPU 표기로 바꾸는 함수가 storageTextureLayoutAccess입니다.

함께 보기

소스

src/core/ir/types/storage-texture.ts, 79행, 커밋 af54ddad5 기준

이 페이지 편집 문제 보고