texture2duT
이 페이지에서

texture2duT

상수, 타입 분류

An unsigned-integer 2D texture.

import { texture2duT } from 'typeshade'

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

구문

const texture2duT: { readonly kind: "texture"; readonly dim: "2d"; readonly elem: "u32"; }

설명

Read it with textureLoad, which returns a vec4<u32>. It carries exact 32-bit values, which makes it the right backing for an id, packed-colour or bitfield lookup that must reach the GPU unchanged. It is unfilterable: textureSample on it is a tsc error (see TextureElem).

관련 가이드

함께 보기

소스

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

이 페이지 편집 문제 보고