Class SamplerState
public class SamplerState : GraphicsResource, IDisposable
- Inheritance
-
SamplerState
- Implements
- Inherited Members
Constructors
SamplerState()
public SamplerState()
Fields
AnisotropicClamp
public static readonly SamplerState AnisotropicClamp
Field Value
AnisotropicWrap
public static readonly SamplerState AnisotropicWrap
Field Value
LinearClamp
public static readonly SamplerState LinearClamp
Field Value
LinearWrap
public static readonly SamplerState LinearWrap
Field Value
PointClamp
public static readonly SamplerState PointClamp
Field Value
PointWrap
public static readonly SamplerState PointWrap
Field Value
Properties
AddressU
public TextureAddressMode AddressU { get; set; }
Property Value
AddressV
public TextureAddressMode AddressV { get; set; }
Property Value
AddressW
public TextureAddressMode AddressW { get; set; }
Property Value
BorderColor
public Color BorderColor { get; set; }
Property Value
ComparisonFunction
When using comparison sampling, also set FilterMode to Comparison.
public CompareFunction ComparisonFunction { get; set; }
Property Value
Filter
public TextureFilter Filter { get; set; }
Property Value
FilterMode
public TextureFilterMode FilterMode { get; set; }
Property Value
MaxAnisotropy
public int MaxAnisotropy { get; set; }
Property Value
MaxMipLevel
public int MaxMipLevel { get; set; }
Property Value
MipMapLevelOfDetailBias
public float MipMapLevelOfDetailBias { get; set; }
Property Value
Methods
Dispose(bool)
The method that derived classes should override to implement disposing of managed and native resources.
protected override void Dispose(bool disposing)
Parameters
disposing
boolTrue if managed objects should be disposed.
Remarks
Native resources should always be released regardless of the value of the disposing parameter.