textureLoad
Call Signature
Section titled “Call Signature”textureLoad<
T
>(texture
,coords
):TexelDataToInstance
<T
["texelDataType"
]>
Defined in: packages/typegpu/src/std/texture.ts:261
Type Parameters
Section titled “Type Parameters”• T extends TgpuStorageTexture
<"1d"
, TexelData
>
Parameters
Section titled “Parameters”texture
Section titled “texture”T
coords
Section titled “coords”number
Returns
Section titled “Returns”TexelDataToInstance
<T
["texelDataType"
]>
Call Signature
Section titled “Call Signature”textureLoad<
T
>(texture
,coords
):TexelDataToInstance
<T
["texelDataType"
]>
Defined in: packages/typegpu/src/std/texture.ts:261
Type Parameters
Section titled “Type Parameters”• T extends TgpuStorageTexture
<"2d"
, TexelData
>
Parameters
Section titled “Parameters”texture
Section titled “texture”T
coords
Section titled “coords”Returns
Section titled “Returns”TexelDataToInstance
<T
["texelDataType"
]>
Call Signature
Section titled “Call Signature”textureLoad<
T
>(texture
,coords
,arrayIndex
):TexelDataToInstance
<T
["texelDataType"
]>
Defined in: packages/typegpu/src/std/texture.ts:261
Type Parameters
Section titled “Type Parameters”• T extends TgpuStorageTexture
<"2d-array"
, TexelData
>
Parameters
Section titled “Parameters”texture
Section titled “texture”T
coords
Section titled “coords”arrayIndex
Section titled “arrayIndex”number
Returns
Section titled “Returns”TexelDataToInstance
<T
["texelDataType"
]>
Call Signature
Section titled “Call Signature”textureLoad<
T
>(texture
,coords
):TexelDataToInstance
<T
["texelDataType"
]>
Defined in: packages/typegpu/src/std/texture.ts:261
Type Parameters
Section titled “Type Parameters”• T extends TgpuStorageTexture
<"3d"
, TexelData
>
Parameters
Section titled “Parameters”texture
Section titled “texture”T
coords
Section titled “coords”Returns
Section titled “Returns”TexelDataToInstance
<T
["texelDataType"
]>
Call Signature
Section titled “Call Signature”textureLoad<
T
>(texture
,coords
,level
):SampleTypeToInstance
<T
["channelDataType"
]>
Defined in: packages/typegpu/src/std/texture.ts:261
Type Parameters
Section titled “Type Parameters”• T extends TgpuSampledTexture
<"1d"
, ChannelData
>
Parameters
Section titled “Parameters”texture
Section titled “texture”T
coords
Section titled “coords”number
number
Returns
Section titled “Returns”SampleTypeToInstance
<T
["channelDataType"
]>
Call Signature
Section titled “Call Signature”textureLoad<
T
>(texture
,coords
,level
):SampleTypeToInstance
<T
["channelDataType"
]>
Defined in: packages/typegpu/src/std/texture.ts:261
Type Parameters
Section titled “Type Parameters”• T extends TgpuSampledTexture
<"2d"
, ChannelData
>
Parameters
Section titled “Parameters”texture
Section titled “texture”T
coords
Section titled “coords”number
Returns
Section titled “Returns”SampleTypeToInstance
<T
["channelDataType"
]>
Call Signature
Section titled “Call Signature”textureLoad<
T
>(texture
,coords
,arrayIndex
,level
):SampleTypeToInstance
<T
["channelDataType"
]>
Defined in: packages/typegpu/src/std/texture.ts:261
Type Parameters
Section titled “Type Parameters”• T extends TgpuSampledTexture
<"2d-array"
, ChannelData
>
Parameters
Section titled “Parameters”texture
Section titled “texture”T
coords
Section titled “coords”arrayIndex
Section titled “arrayIndex”number
number
Returns
Section titled “Returns”SampleTypeToInstance
<T
["channelDataType"
]>
Call Signature
Section titled “Call Signature”textureLoad<
T
>(texture
,coords
,level
):SampleTypeToInstance
<T
["channelDataType"
]>
Defined in: packages/typegpu/src/std/texture.ts:261
Type Parameters
Section titled “Type Parameters”• T extends TgpuSampledTexture
<"3d"
, ChannelData
>
Parameters
Section titled “Parameters”texture
Section titled “texture”T
coords
Section titled “coords”number
Returns
Section titled “Returns”SampleTypeToInstance
<T
["channelDataType"
]>