textureSampleLevel
Call Signature
Section titled “Call Signature”textureSampleLevel<
T>(texture,sampler,coords,level,offset?):v4f
Defined in: packages/typegpu/src/std/texture.ts:160
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”number
offset?
Section titled “offset?”Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”textureSampleLevel<
T>(texture,sampler,coords,arrayIndex,level,offset?):v4f
Defined in: packages/typegpu/src/std/texture.ts:160
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
number
offset?
Section titled “offset?”Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”textureSampleLevel<
T>(texture,sampler,coords,level,offset?):v4f
Defined in: packages/typegpu/src/std/texture.ts:160
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”number
offset?
Section titled “offset?”Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”textureSampleLevel<
T>(texture,sampler,coords,arrayIndex,level):v4f
Defined in: packages/typegpu/src/std/texture.ts:160
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
number