Skip to content

textureLoad

const textureLoad: DualFn<{<T>(texture, coords, level): PrimitiveToLoadedType[T[typeof $internal]["type"]]; <T>(texture, coords, level): PrimitiveToLoadedType[T[typeof $internal]["type"]]; <T>(texture, coords, arrayIndex, level): PrimitiveToLoadedType[T[typeof $internal]["type"]]; <T>(texture, coords, level): PrimitiveToLoadedType[T[typeof $internal]["type"]]; <T>(texture, coords, sampleIndex): PrimitiveToLoadedType[T[typeof $internal]["type"]]; <T>(texture, coords, level): number; <T>(texture, coords, arrayIndex, level): number; <T>(texture, coords, sampleIndex): number; <T>(texture, coords): v4f; <T>(texture, coords): TexelFormatToInstanceType<T[typeof $internal][0]>; <T>(texture, coords): TexelFormatToInstanceType<T[typeof $internal][0]>; <T>(texture, coords, arrayIndex): TexelFormatToInstanceType<T[typeof $internal][0]>; <T>(texture, coords): TexelFormatToInstanceType<T[typeof $internal][0]>; }>

Defined in: packages/typegpu/src/std/texture.ts:385