member()
함수, 값 분류
Low-level struct member access, base.name, with the field type given explicitly.
import { member } from 'typeshade'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
const member: <T extends ShaderType>( base: ReadonlyNode, name: string, type: T,) => Node<KeyOf<T>>매개변수
baseReadonlyNodenamestringtypeT extends ShaderType
반환값
설명
Shaders normally read fields through the typed getters a struct declaration provides; this is the primitive those getters build on.
소스
src/core/ir/node.ts, 2473행, 커밋 c66579bf 기준