WRITE_ONLY_STORAGE_FORMATS
이 페이지에서

WRITE_ONLY_STORAGE_FORMATS

상수, 타입 분류

The formats a device takes at write and at no other access mode, which today is bgra8unorm alone.

import { WRITE_ONLY_STORAGE_FORMATS } from 'typeshade'

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

구문

const WRITE_ONLY_STORAGE_FORMATS: readonly ["bgra8unorm"]

설명

Every other StorageTextureFormat loads as well as stores, and the three in READ_WRITE_STORAGE_FORMATS do both through one binding.

Measured, on two Chromium builds with every adapter feature requested: bgra8unorm at read-only and at read-write is “Texture format TextureFormat::BGRA8Unorm does not support storage texture access”, while write-only builds. Tint compiles all three, so this list is the only thing between the two spellings and a device error no shader compiler reaches.

함께 보기

소스

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

이 페이지 편집 문제 보고