@thi.ng/shader-ast
Version:
DSL to define shader code in TypeScript and cross-compile to GLSL, JS and other targets
7 lines • 600 B
TypeScript
import type { Index, IndexM, Sym } from "../api/nodes.js";
import type { UintTerm } from "../api/terms.js";
import { type IndexTypeMap, type Indexable, type MatIndexTypeMap, type NumericI } from "../api/types.js";
export declare const index: <T extends Indexable>(val: Sym<T>, id: NumericI | UintTerm) => Index<IndexTypeMap[T]>;
export declare function indexMat<T extends keyof MatIndexTypeMap>(m: Sym<T>, id: number): IndexM<MatIndexTypeMap[T]>;
export declare function indexMat<T extends keyof MatIndexTypeMap>(m: Sym<T>, a: number, b: number): Index<"float">;
//# sourceMappingURL=indexed.d.ts.map