storageTextureLayoutAccess
이 페이지에서

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"

매개변수

access StorageTextureAccess

반환값

'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 기준

이 페이지 편집 문제 보고