Class Sampler
Namespace: ValveResourceFormat.Renderer
Assembly: Renderer.dll
OpenGL sampler object: the filtering and addressing state a texture is read with, overriding the parameters set on the texture itself for the unit it is bound to.
public sealed class SamplerInheritance
object ← Sampler
Constructors
Sampler(string)
Creates a sampler with default state.
public Sampler(string label)Parameters
label string
Label string visible in graphics debuggers.
Properties
Handle
Gets the OpenGL sampler object handle.
public int Handle { get; }Property Value
int
Methods
SetFiltering(TextureMinFilter, TextureMagFilter)
Sets the minification and magnification filters.
public void SetFiltering(TextureMinFilter min, TextureMagFilter mag)Parameters
min TextureMinFilter
Minification filter.
mag TextureMagFilter
Magnification filter.
SetMaxAnisotropy(float)
Sets how many samples anisotropic filtering may take.
public void SetMaxAnisotropy(float maxAnisotropy)Parameters
maxAnisotropy float
Maximum anisotropy, clamped by the driver to what it supports.
SetWrapMode(RsTextureAddressMode, RsTextureAddressMode)
Sets the addressing mode across the width and height.
public void SetWrapMode(RsTextureAddressMode s, RsTextureAddressMode t)Parameters
Addressing mode across the width.
Addressing mode across the height.

