textureSample
Call Signature
Section titled “Call Signature”textureSample<
T
>(texture
,sampler
,coords
):v4f
Defined in: packages/typegpu/src/std/texture.ts:109
Type Parameters
Section titled “Type Parameters”• T extends TgpuSampledTexture
<"1d"
, ChannelData
>
Parameters
Section titled “Parameters”texture
Section titled “texture”T
sampler
Section titled “sampler”coords
Section titled “coords”number
Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”textureSample<
T
>(texture
,sampler
,coords
):v4f
Defined in: packages/typegpu/src/std/texture.ts:109
Type Parameters
Section titled “Type Parameters”• T extends TgpuSampledTexture
<"2d"
, ChannelData
>
Parameters
Section titled “Parameters”texture
Section titled “texture”T
sampler
Section titled “sampler”coords
Section titled “coords”Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”textureSample<
T
>(texture
,sampler
,coords
,offset
):v4f
Defined in: packages/typegpu/src/std/texture.ts:109
Type Parameters
Section titled “Type Parameters”• T extends TgpuSampledTexture
<"2d"
, ChannelData
>
Parameters
Section titled “Parameters”texture
Section titled “texture”T
sampler
Section titled “sampler”coords
Section titled “coords”offset
Section titled “offset”Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”textureSample<
T
>(texture
,sampler
,coords
,arrayIndex
):v4f
Defined in: packages/typegpu/src/std/texture.ts:109
Type Parameters
Section titled “Type Parameters”• T extends TgpuSampledTexture
<"2d-array"
, ChannelData
>
Parameters
Section titled “Parameters”texture
Section titled “texture”T
sampler
Section titled “sampler”coords
Section titled “coords”arrayIndex
Section titled “arrayIndex”number
Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”textureSample<
T
>(texture
,sampler
,coords
,arrayIndex
,offset
):v4f
Defined in: packages/typegpu/src/std/texture.ts:109
Type Parameters
Section titled “Type Parameters”• T extends TgpuSampledTexture
<"2d-array"
, ChannelData
>
Parameters
Section titled “Parameters”texture
Section titled “texture”T
sampler
Section titled “sampler”coords
Section titled “coords”arrayIndex
Section titled “arrayIndex”number
offset
Section titled “offset”Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”textureSample<
T
>(texture
,sampler
,coords
):v4f
Defined in: packages/typegpu/src/std/texture.ts:109
Type Parameters
Section titled “Type Parameters”• T extends TgpuSampledTexture
<"3d"
| "cube"
, ChannelData
>
Parameters
Section titled “Parameters”texture
Section titled “texture”T
sampler
Section titled “sampler”coords
Section titled “coords”Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”textureSample<
T
>(texture
,sampler
,coords
,offset
):v4f
Defined in: packages/typegpu/src/std/texture.ts:109
Type Parameters
Section titled “Type Parameters”• T extends TgpuSampledTexture
<"3d"
, ChannelData
>
Parameters
Section titled “Parameters”texture
Section titled “texture”T
sampler
Section titled “sampler”coords
Section titled “coords”offset
Section titled “offset”Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”textureSample<
T
>(texture
,sampler
,coords
,arrayIndex
):v4f
Defined in: packages/typegpu/src/std/texture.ts:109
Type Parameters
Section titled “Type Parameters”• T extends TgpuSampledTexture
<"cube-array"
, ChannelData
>
Parameters
Section titled “Parameters”texture
Section titled “texture”T
sampler
Section titled “sampler”coords
Section titled “coords”arrayIndex
Section titled “arrayIndex”number