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.
csharp
public sealed class SamplerInheritance
Constructors
Sampler(string)
Creates a sampler with default state.
csharp
public Sampler(string label)Parameters
label string
Label string visible in graphics debuggers.
Properties
Handle
Gets the OpenGL sampler object handle.
csharp
public int Handle { get; }Property Value
Methods
SetFiltering(TextureMinFilter, TextureMagFilter)
Sets the minification and magnification filters.
csharp
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.
csharp
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.
csharp
public void SetWrapMode(RsTextureAddressMode s, RsTextureAddressMode t)Parameters
Addressing mode across the width.
Addressing mode across the height.

