overrideRef
이 페이지에서

overrideRef()

함수, 값 분류

A read of a pipeline specialization constant, the read side of an overrideConst(...) declaration.

import { overrideRef } from 'typeshade'

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

구문

function overrideRef<T extends ShaderType>(name: string, type: T): ReadonlyNode<KeyOf<T>>

매개변수

name string
type T extends ShaderType

반환값

ReadonlyNode<KeyOf<T>>

설명

The result is a ReadonlyNode, and the optimizer treats it as opaque: the value is symbolic until pipeline creation, so no folding or dead-branch pass may collapse a branch it guards. Authoring code reads through the handle overrideConst returns; this is the primitive behind that handle.

함께 보기

소스

src/core/ir/node.ts, 1088행, 커밋 c66579bf 기준

이 페이지 편집 문제 보고