textureLoad
Call Signature
Section titled “Call Signature”textureLoad<
T>(texture,coords,level):PrimitiveToLoadedType[T[typeof$internal]["type"]]
Type Parameters
Section titled “Type Parameters”• T extends texture1d<TextureSampleTypes>
Parameters
Section titled “Parameters”texture
Section titled “texture”T
coords
Section titled “coords”number
number
Returns
Section titled “Returns”PrimitiveToLoadedType[T[typeof $internal]["type"]]
Defined in
Section titled “Defined in”packages/typegpu/src/std/texture.ts:371
Call Signature
Section titled “Call Signature”textureLoad<
T>(texture,coords,level):PrimitiveToLoadedType[T[typeof$internal]["type"]]
Type Parameters
Section titled “Type Parameters”• T extends texture2d<TextureSampleTypes>
Parameters
Section titled “Parameters”texture
Section titled “texture”T
coords
Section titled “coords”number
Returns
Section titled “Returns”PrimitiveToLoadedType[T[typeof $internal]["type"]]
Defined in
Section titled “Defined in”packages/typegpu/src/std/texture.ts:371
Call Signature
Section titled “Call Signature”textureLoad<
T>(texture,coords,arrayIndex,level):PrimitiveToLoadedType[T[typeof$internal]["type"]]
Type Parameters
Section titled “Type Parameters”• T extends texture2dArray<TextureSampleTypes>
Parameters
Section titled “Parameters”texture
Section titled “texture”T
coords
Section titled “coords”arrayIndex
Section titled “arrayIndex”number
number
Returns
Section titled “Returns”PrimitiveToLoadedType[T[typeof $internal]["type"]]
Defined in
Section titled “Defined in”packages/typegpu/src/std/texture.ts:371
Call Signature
Section titled “Call Signature”textureLoad<
T>(texture,coords,level):PrimitiveToLoadedType[T[typeof$internal]["type"]]
Type Parameters
Section titled “Type Parameters”• T extends texture3d<TextureSampleTypes>
Parameters
Section titled “Parameters”texture
Section titled “texture”T
coords
Section titled “coords”number
Returns
Section titled “Returns”PrimitiveToLoadedType[T[typeof $internal]["type"]]
Defined in
Section titled “Defined in”packages/typegpu/src/std/texture.ts:371
Call Signature
Section titled “Call Signature”textureLoad<
T>(texture,coords,sampleIndex):PrimitiveToLoadedType[T[typeof$internal]["type"]]
Type Parameters
Section titled “Type Parameters”• T extends textureMultisampled2d<TextureSampleTypes>
Parameters
Section titled “Parameters”texture
Section titled “texture”T
coords
Section titled “coords”sampleIndex
Section titled “sampleIndex”number
Returns
Section titled “Returns”PrimitiveToLoadedType[T[typeof $internal]["type"]]
Defined in
Section titled “Defined in”packages/typegpu/src/std/texture.ts:371
Call Signature
Section titled “Call Signature”textureLoad<
T>(texture,coords):TexelFormatToInstanceType<T[typeof$internal][0]>
Type Parameters
Section titled “Type Parameters”• T extends textureStorage1d<StorageTextureFormats, GPUStorageTextureAccess>
Parameters
Section titled “Parameters”texture
Section titled “texture”T
coords
Section titled “coords”number
Returns
Section titled “Returns”TexelFormatToInstanceType<T[typeof $internal][0]>
Defined in
Section titled “Defined in”packages/typegpu/src/std/texture.ts:371
Call Signature
Section titled “Call Signature”textureLoad<
T>(texture,coords):TexelFormatToInstanceType<T[typeof$internal][0]>
Type Parameters
Section titled “Type Parameters”• T extends textureStorage2d<StorageTextureFormats, GPUStorageTextureAccess>
Parameters
Section titled “Parameters”texture
Section titled “texture”T
coords
Section titled “coords”Returns
Section titled “Returns”TexelFormatToInstanceType<T[typeof $internal][0]>
Defined in
Section titled “Defined in”packages/typegpu/src/std/texture.ts:371
Call Signature
Section titled “Call Signature”textureLoad<
T>(texture,coords,arrayIndex):TexelFormatToInstanceType<T[typeof$internal][0]>
Type Parameters
Section titled “Type Parameters”• T extends textureStorage2dArray<StorageTextureFormats, GPUStorageTextureAccess>
Parameters
Section titled “Parameters”texture
Section titled “texture”T
coords
Section titled “coords”arrayIndex
Section titled “arrayIndex”number
Returns
Section titled “Returns”TexelFormatToInstanceType<T[typeof $internal][0]>
Defined in
Section titled “Defined in”packages/typegpu/src/std/texture.ts:371
Call Signature
Section titled “Call Signature”textureLoad<
T>(texture,coords):TexelFormatToInstanceType<T[typeof$internal][0]>
Type Parameters
Section titled “Type Parameters”• T extends textureStorage3d<StorageTextureFormats, GPUStorageTextureAccess>
Parameters
Section titled “Parameters”texture
Section titled “texture”T
coords
Section titled “coords”Returns
Section titled “Returns”TexelFormatToInstanceType<T[typeof $internal][0]>