@builtin("subgroup_id")
이 페이지에서

@builtin("subgroup_id")

내장 값

The current subgroup's index within its workgroup.

쓰이는 곳
컴퓨트 입력

시그니처와 이름 아래 문장, 컴파일러 메시지는 커밋 af54ddad5의 컴파일러가 쓴 영어 원문입니다.

구문

@builtin("subgroup_id"): u32

설명

Compute stage only; on the CPU oracle and on WebGL2 a subgroup is one invocation, so it is the local invocation index.

예제

함께 보기

이 페이지 편집 문제 보고