workgroupSizeOf()
함수, IR 분류
The x workgroup size of a compute entry: the structured workgroupSize field first, then the @workgroup_size(n) attribute string; undefined when neither is present.
import { workgroupSizeOf } from 'typeshade'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
const workgroupSizeOf: ( f: Pick<FuncDecl, "workgroupSize" | "attrs">,) => number | undefined매개변수
fPick<FuncDecl, 'workgroupSize' | 'attrs'>
반환값
number | undefined
설명
A
two- or three-dimensional workgroup has more invocations than this; read
workgroupShapeOf for the grid.
함께 보기
소스
src/core/ir/nodes.ts, 909행, 커밋 c66579bf 기준