textureSampleLevel
Call Signature
Section titled “Call Signature”textureSampleLevel<
T>(texture,sampler,coords,level):v4f
Type Parameters
Section titled “Type Parameters”• T extends texture1d<TextureSampleTypes>
Parameters
Section titled “Parameters”texture
Section titled “texture”T
sampler
Section titled “sampler”coords
Section titled “coords”number
number
Returns
Section titled “Returns”Defined in
Section titled “Defined in”packages/typegpu/src/std/texture.ts:296
Call Signature
Section titled “Call Signature”textureSampleLevel<
T>(texture,sampler,coords,level):v4f
Type Parameters
Section titled “Type Parameters”• T extends texture2d<TextureSampleTypes>
Parameters
Section titled “Parameters”texture
Section titled “texture”T
sampler
Section titled “sampler”coords
Section titled “coords”number
Returns
Section titled “Returns”Defined in
Section titled “Defined in”packages/typegpu/src/std/texture.ts:296
Call Signature
Section titled “Call Signature”textureSampleLevel<
T>(texture,sampler,coords,level,offset):v4f
Type Parameters
Section titled “Type Parameters”• T extends texture2d<TextureSampleTypes>
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”Defined in
Section titled “Defined in”packages/typegpu/src/std/texture.ts:296
Call Signature
Section titled “Call Signature”textureSampleLevel<
T>(texture,sampler,coords,arrayIndex,level):v4f
Type Parameters
Section titled “Type Parameters”• T extends texture2dArray<TextureSampleTypes>
Parameters
Section titled “Parameters”texture
Section titled “texture”T
sampler
Section titled “sampler”coords
Section titled “coords”arrayIndex
Section titled “arrayIndex”number
number
Returns
Section titled “Returns”Defined in
Section titled “Defined in”packages/typegpu/src/std/texture.ts:296
Call Signature
Section titled “Call Signature”textureSampleLevel<
T>(texture,sampler,coords,arrayIndex,level,offset):v4f
Type Parameters
Section titled “Type Parameters”• T extends texture2dArray<TextureSampleTypes>
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”Defined in
Section titled “Defined in”packages/typegpu/src/std/texture.ts:296
Call Signature
Section titled “Call Signature”textureSampleLevel<
T>(texture,sampler,coords,level):v4f
Type Parameters
Section titled “Type Parameters”• T extends texture3d<TextureSampleTypes> | textureCube<TextureSampleTypes>
Parameters
Section titled “Parameters”texture
Section titled “texture”T
sampler
Section titled “sampler”coords
Section titled “coords”number
Returns
Section titled “Returns”Defined in
Section titled “Defined in”packages/typegpu/src/std/texture.ts:296
Call Signature
Section titled “Call Signature”textureSampleLevel<
T>(texture,sampler,coords,level,offset):v4f
Type Parameters
Section titled “Type Parameters”• T extends texture3d<TextureSampleTypes>
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”Defined in
Section titled “Defined in”packages/typegpu/src/std/texture.ts:296
Call Signature
Section titled “Call Signature”textureSampleLevel<
T>(texture,sampler,coords,arrayIndex,level):v4f
Type Parameters
Section titled “Type Parameters”• T extends textureCubeArray<TextureSampleTypes>
Parameters
Section titled “Parameters”texture
Section titled “texture”T
sampler
Section titled “sampler”coords
Section titled “coords”arrayIndex
Section titled “arrayIndex”number
number
Returns
Section titled “Returns”Defined in
Section titled “Defined in”packages/typegpu/src/std/texture.ts:296
Call Signature
Section titled “Call Signature”textureSampleLevel<
T>(texture,sampler,coords,level):number
Type Parameters
Section titled “Type Parameters”• T extends textureDepth2d
Parameters
Section titled “Parameters”texture
Section titled “texture”T
sampler
Section titled “sampler”coords
Section titled “coords”number
Returns
Section titled “Returns”number
Defined in
Section titled “Defined in”packages/typegpu/src/std/texture.ts:296
Call Signature
Section titled “Call Signature”textureSampleLevel<
T>(texture,sampler,coords,level,offset):number
Type Parameters
Section titled “Type Parameters”• T extends textureDepth2d
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”number
Defined in
Section titled “Defined in”packages/typegpu/src/std/texture.ts:296
Call Signature
Section titled “Call Signature”textureSampleLevel<
T>(texture,sampler,coords,arrayIndex,level):number
Type Parameters
Section titled “Type Parameters”• T extends textureDepth2dArray
Parameters
Section titled “Parameters”texture
Section titled “texture”T
sampler
Section titled “sampler”coords
Section titled “coords”arrayIndex
Section titled “arrayIndex”number
number
Returns
Section titled “Returns”number
Defined in
Section titled “Defined in”packages/typegpu/src/std/texture.ts:296
Call Signature
Section titled “Call Signature”textureSampleLevel<
T>(texture,sampler,coords,arrayIndex,level,offset):number
Type Parameters
Section titled “Type Parameters”• T extends textureDepth2dArray
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”number
Defined in
Section titled “Defined in”packages/typegpu/src/std/texture.ts:296
Call Signature
Section titled “Call Signature”textureSampleLevel<
T>(texture,sampler,coords,level):number
Type Parameters
Section titled “Type Parameters”• T extends textureDepthCube
Parameters
Section titled “Parameters”texture
Section titled “texture”T
sampler
Section titled “sampler”coords
Section titled “coords”number
Returns
Section titled “Returns”number
Defined in
Section titled “Defined in”packages/typegpu/src/std/texture.ts:296
Call Signature
Section titled “Call Signature”textureSampleLevel<
T>(texture,sampler,coords,arrayIndex,level):number
Type Parameters
Section titled “Type Parameters”• T extends textureCubeArray<TextureSampleTypes>
Parameters
Section titled “Parameters”texture
Section titled “texture”T
sampler
Section titled “sampler”coords
Section titled “coords”arrayIndex
Section titled “arrayIndex”number
number
Returns
Section titled “Returns”number