constRef()
함수, 값 분류
A reference to a module-level constant by name, such as one declared with constExpr.
import { constRef } from 'typeshade'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
function constRef<T extends ShaderType = typeof f32T>( name: string, type?: T,): ReadonlyNode<KeyOf<T>>매개변수
namestringtype선택 사항T extends ShaderType
반환값
ReadonlyNode<KeyOf<T>>
설명
The type defaults to f32.
관련 가이드
소스
src/core/ir/node.ts, 1076행, 커밋 c66579bf 기준