param
이 페이지에서

param()

함수, 값 분류

A function parameter reference, with the key inferred from the ShaderType.

import { param } from 'typeshade'

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

구문

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

매개변수

name string
type T extends ShaderType

반환값

ReadonlyNode<KeyOf<T>>

설명

A parameter is read-only, so .assign() on one is a tsc error.

관련 가이드

함께 보기

소스

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

이 페이지 편집 문제 보고