createSampler

fun GpuDevice.createSampler(filter: SamplerFilter, address: SamplerAddress = SamplerAddress.CLAMP): Sampler(source)

Creates a sampler using filter for both minification and magnification, with texture coordinates outside the texture handled as address says, on both axes of a 2D texture.

Throws

if the sampler cannot be created.