Texture:setSampler

Edit

Sets sampler settings for the texture. This can either be a FilterMode like nearest, or a Sampler object, which allows configuring all of the filtering and wrapping settings.

There are other ways of using custom samplers for a texture, but they have disadvantages:

This API is experimental, and subject to change in the future!




Arguments

NameTypeDescription
modeFilterMode The FilterMode shaders will use when reading pixels from the texture.

Returns

Nothing

Arguments

NameTypeDescription
samplerSampler The Sampler object shaders will use when reading pixels from the texture.

Returns

Nothing

Remove the texture's sampler, instead using the one set by Pass:setSampler.

Arguments

None

Returns

Nothing

See also