any
함수
Whether any component of a vector of bools is true: any(a < b).
이름마다 붙은 시그니처와 설명은 커밋 26de7be8의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
declare function any(a0: bool): booldeclare function any<V extends vec2b | vec3b | vec4b>(a0: V): (bool)declare function any(v: bool | BoolVec): booldeclare function any<T>(xs: array<T>, pred: (x: T) => bool): bool시그니처에는 앰비언트 파일이 스스로 쓰려고 선언한 타입이 나올 수 있습니다. 아래가 그 선언입니다.
BoolVectype BoolVec = vec2b | vec3b | vec4b
매개변수
반환값
설명
A scalar bool passes through. Over an array, any(xs, (x) => ...) is the fold.
대상별 출력
- WGSL
-
any(a) - GLSL ES 3.00
-
any(a)