texture_storage_2d_array
타입
An array of 2D storage textures in one binding, read and written by texel coordinate and an integer layer.
시그니처와 이름 아래 문장, 컴파일러 메시지는 커밋 af54ddad5의 컴파일러가 쓴 영어 원문입니다.
구문
type texture_storage_2d_array< F extends StorageFormat, A extends StorageAccess = 'write',> = A extends 'write' ? { readonly [storageTextureTag]: readonly [F, A, true] } : F extends WriteOnlyStorageFormat ? never : A extends 'read_write' ? F extends ReadWriteStorageFormat ? { readonly [storageTextureTag]: readonly [F, A, true] } : never : { readonly [storageTextureTag]: readonly [F, A, true] }시그니처에는 앰비언트 파일이 스스로 쓰려고 선언한 타입이 나올 수 있습니다. 아래가 그 선언입니다.
StorageFormattype StorageFormat = 'rgba8unorm' | 'rgba8snorm' | 'rgba8uint' | 'rgba8sint' | 'rgba16uint' | 'rgba16sint' | 'rgba16float' | 'r32uint' | 'r32sint' | 'r32float' | 'rg32uint' | 'rg32sint' | 'rg32float' | 'rgba32uint' | 'rgba32sint' | 'rgba32float' | 'bgra8unorm'StorageAccesstype StorageAccess = 'write' | 'read' | 'read_write'ReadWriteStorageFormattype ReadWriteStorageFormat = 'r32uint' | 'r32sint' | 'r32float'WriteOnlyStorageFormattype WriteOnlyStorageFormat = 'bgra8unorm'
매개변수
-
FStorageFormat -
A선택 사항StorageAccess
설명
Declared with a format and an access mode, as in declare const dst: texture_storage_2d_array<"rgba8unorm", "write">; in a render entry its GLSL lowering is not supported yet (Rule 10.5), and a @compute entry runs it on WebGL2 as its pass program (Rule 8.24, Rule 11.8).