@@ -23,7 +23,7 @@ import type {
2323 Vec4u ,
2424 Void ,
2525} from '../../data/wgslTypes.ts' ;
26- import type { Infer } from '../../shared/repr.ts' ;
26+ import type { InferGPU } from '../../shared/repr.ts' ;
2727
2828export type AnyFn = ( ...args : never [ ] ) => unknown ;
2929
@@ -41,7 +41,7 @@ export type TranspilationResult = {
4141} ;
4242
4343export type InferArgs < T extends unknown [ ] > = {
44- [ Idx in keyof T ] : Infer < T [ Idx ] > ;
44+ [ Idx in keyof T ] : InferGPU < T [ Idx ] > ;
4545} ;
4646
4747type InheritTupleValues < T , From > = {
@@ -65,7 +65,7 @@ export type InheritArgNames<T extends AnyFn, From extends AnyFn> = {
6565
6666export type InferImplSchema < ImplSchema extends AnyFn > = (
6767 ...args : InferArgs < Parameters < ImplSchema > >
68- ) => Infer < ReturnType < ImplSchema > > ;
68+ ) => InferGPU < ReturnType < ImplSchema > > ;
6969
7070export type Implementation < ImplSchema extends AnyFn = AnyFn > = string | InferImplSchema < ImplSchema > ;
7171
@@ -101,9 +101,9 @@ export type IOLayout<TElementType extends IOData = IOData> =
101101 | Void ;
102102
103103export type InferIO < T > = T extends { type : string }
104- ? Infer < T >
104+ ? InferGPU < T >
105105 : T extends Record < string , unknown >
106- ? { [ K in keyof T ] : Infer < T [ K ] > }
106+ ? { [ K in keyof T ] : InferGPU < T [ K ] > }
107107 : T ;
108108
109109export interface PositionalArgInfo {
0 commit comments