@@ -49,7 +49,7 @@ import { NotUniformError } from './errors.ts';
4949import { isUsableAsStorage , NotStorageError , type StorageFlag } from './extension.ts' ;
5050import type { TgpuNamable } from './shared/meta.ts' ;
5151import { getName , setName } from './shared/meta.ts' ;
52- import type { Infer , MemIdentity } from './shared/repr.ts' ;
52+ import type { InferGPU , MemIdentity } from './shared/repr.ts' ;
5353import { safeStringify } from './shared/stringify.ts' ;
5454import { $gpuValueOf , $internal } from './shared/symbols.ts' ;
5555import type { Default , NullableToOptional , Prettify } from './shared/utilityTypes.ts' ;
@@ -392,19 +392,19 @@ export type BindLayoutEntry<T extends TgpuLayoutEntry | null> = T extends TgpuLa
392392 : never ;
393393
394394export type InferLayoutEntry < T extends TgpuLayoutEntry | null > = T extends TgpuLayoutUniform
395- ? Infer < T [ 'uniform' ] >
395+ ? InferGPU < T [ 'uniform' ] >
396396 : T extends TgpuLayoutStorage
397- ? Infer < UnwrapRuntimeConstructor < T [ 'storage' ] > >
397+ ? InferGPU < UnwrapRuntimeConstructor < T [ 'storage' ] > >
398398 : T extends TgpuLayoutSampler
399- ? Infer < WgslSampler >
399+ ? InferGPU < WgslSampler >
400400 : T extends TgpuLayoutComparisonSampler
401- ? Infer < WgslComparisonSampler >
401+ ? InferGPU < WgslComparisonSampler >
402402 : T extends TgpuLayoutTexture < infer TSchema >
403- ? Infer < TSchema >
403+ ? InferGPU < TSchema >
404404 : T extends TgpuLayoutStorageTexture < infer TSchema >
405- ? Infer < TSchema >
405+ ? InferGPU < TSchema >
406406 : T extends TgpuLayoutExternalTexture
407- ? Infer < T [ 'externalTexture' ] >
407+ ? InferGPU < T [ 'externalTexture' ] >
408408 : never ;
409409
410410export type ExtractBindGroupInputFromLayout < T extends Record < string , TgpuLayoutEntry | null > > =
0 commit comments