workgroupShapeOf
이 페이지에서

workgroupShapeOf()

함수, IR 분류

The workgroup shape of a compute entry: the structured workgroupShape field first, then [workgroupSize, 1, 1], then the extents of the @workgroup_size(x, y, z) attribute string; undefined when none is present.

import { workgroupShapeOf } from 'typeshade'

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

구문

const workgroupShapeOf: (
f: Pick<FuncDecl, "workgroupSize" | "workgroupShape" | "attrs">,
) => WorkgroupShape | undefined

매개변수

f Pick<FuncDecl, 'workgroupSize' | 'workgroupShape' | 'attrs'>

반환값

WorkgroupShape | undefined

설명

Every consumer that sizes a grid (the CPU dispatch, reflect, a runner) reads this, so the three extents have one source.

함께 보기

소스

src/core/ir/nodes.ts, 921행, 커밋 c66579bf 기준

이 페이지 편집 문제 보고