textureNumSamples
이 페이지에서

textureNumSamples

함수

Returns the number of samples per texel of a texture_multisampled_2d or a texture_depth_multisampled_2d as a u32.

이름마다 붙은 시그니처와 설명은 커밋 26de7be8의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.

구문

declare function textureNumSamples<E extends TextureElem = f32>(
tex: texture_multisampled_2d<E> | texture_depth_multisampled_2d,
): u32

시그니처에는 앰비언트 파일이 스스로 쓰려고 선언한 타입이 나올 수 있습니다. 아래가 그 선언입니다.

TextureElem
type TextureElem = f32 | i32 | u32

매개변수

반환값

u32

설명

A single-sample texture is refused. Compiles to textureNumSamples on WGSL; GLSL ES 3.00 has no multisampled textures, so a module using it emits WGSL alone.

대상별 출력

WGSL
textureNumSamples(a)
GLSL ES 3.00
textureNumSamples has no GLSL ES 3.00 spelling (textureSamples is ES 3.10)

예제

함께 보기

이 페이지 편집 문제 보고