READ_WRITE_STORAGE_FORMATS
이 페이지에서

READ_WRITE_STORAGE_FORMATS

상수, 타입 분류

The formats a device takes at read_write access, which is the three single-channel 32-bit ones and no others (measured, as StorageTextureFormat describes).

import { READ_WRITE_STORAGE_FORMATS } from 'typeshade'

시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.

구문

const READ_WRITE_STORAGE_FORMATS: readonly ["r32uint", "r32sint", "r32float"]

설명

Every other format is write or read, one at a time. Tint compiles texture_storage_2d<rgba8unorm, read_write> happily, so this list is the only thing standing between that spelling and a device error the compile gate never reaches.

함께 보기

소스

src/core/ir/types.ts, 105행, 커밋 c66579bf 기준

이 페이지 편집 문제 보고