UsesHandle
이 페이지에서

UsesHandle

타입, 작성 분류

A declarator handle accepted by module({ uses }): anything that carries its own declaration or binding.

import type { UsesHandle } from 'typeshade'

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

구문

type UsesHandle =
| { readonly struct: StructDecl; readonly binding: BindingDecl }
| { readonly decl: StructDecl | ConstDecl }
| { readonly binding: BindingDecl; readonly elementDecl?: StructDecl };

설명

uniformStruct returns { struct, binding }; ioStruct, structDecl and constDecl return { decl }; storageBuffer returns { binding } plus an elementDecl for a struct element; resource returns { binding }.

함께 보기

소스

src/core/ir/builder.ts, 1094행, 커밋 c66579bf 기준

이 페이지 편집 문제 보고