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