ConstHandle
인터페이스, 레이아웃 분류
The handle constDecl returns: a module-level constant and its typed reference, declared together so the name is written once.
import type { ConstHandle } from 'typeshade'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
interface ConstHandle<T extends ShaderType> { readonly decl: ConstDecl; readonly node: ReadonlyNode<KeyOf<T>>;}인스턴스 속성
decl읽기 전용ConstDeclThe constant’s declaration, for
module({ consts })ormodule({ uses }).node읽기 전용ReadonlyNode<KeyOf<T>>The typed reference to read the constant through at call sites.
함께 보기
소스
src/core/sot.ts, 41행, 커밋 c66579bf 기준