@@ -22,7 +22,7 @@ import type {
2222 Vec4u ,
2323 Void ,
2424} from '../../data/wgslTypes.ts' ;
25- import type { Infer } from '../../shared/repr.ts' ;
25+ import type { InferGPU } from '../../shared/repr.ts' ;
2626
2727export type AnyFn = ( ...args : never [ ] ) => unknown ;
2828
@@ -40,7 +40,7 @@ export type TranspilationResult = {
4040} ;
4141
4242export type InferArgs < T extends unknown [ ] > = {
43- [ Idx in keyof T ] : Infer < T [ Idx ] > ;
43+ [ Idx in keyof T ] : InferGPU < T [ Idx ] > ;
4444} ;
4545
4646type InheritTupleValues < T , From > = {
@@ -64,7 +64,7 @@ export type InheritArgNames<T extends AnyFn, From extends AnyFn> = {
6464
6565export type InferImplSchema < ImplSchema extends AnyFn > = (
6666 ...args : InferArgs < Parameters < ImplSchema > >
67- ) => Infer < ReturnType < ImplSchema > > ;
67+ ) => InferGPU < ReturnType < ImplSchema > > ;
6868
6969export type Implementation < ImplSchema extends AnyFn = AnyFn > = string | InferImplSchema < ImplSchema > ;
7070
@@ -100,7 +100,7 @@ export type IOLayout<TElementType extends IOData = IOData> =
100100 | Void ;
101101
102102export type InferIO < T > = T extends { type : string }
103- ? Infer < T >
103+ ? InferGPU < T >
104104 : T extends Record < string , unknown >
105- ? { [ K in keyof T ] : Infer < T [ K ] > }
105+ ? { [ K in keyof T ] : InferGPU < T [ K ] > }
106106 : T ;
0 commit comments