TextureOptions
인터페이스, 런타임 분류
What rt.texture() makes. format is any GPUTextureFormat the device can render to or sample: rgba8unorm, rgba16float, depth24plus, r32float.
import type { TextureOptions } from 'typeshade/runtime'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
interface TextureOptions { readonly size: readonly [number, number] | readonly [number, number, number]; readonly format: string; readonly dimension?: '2d' | '3d'; readonly sampleCount?: number; readonly storage?: boolean;}인스턴스 속성
size읽기 전용readonly [number, number] | readonly [number, number, number][width, height], or[width, height, layers]for an array or a 3D texture.format읽기 전용stringdimension선택 사항읽기 전용'2d' | '3d''2d'(the default) or'3d'. A texture is a render target and a sampled texture at once, and one with a single sample can be copied to and from.sampleCount선택 사항읽기 전용number4 for a multisampled render target; 1, the default, otherwise.
storage선택 사항읽기 전용booleanAdd
STORAGE_BINDING, for a storage texture an entry writes.
소스
src/runtime/resources.ts, 18행, 커밋 c66579bf 기준