Struct SamplerStateDescription
Describes a sampler state.
Implements
Inherited Members
Namespace: Evergine.Common.Graphics
Assembly: Evergine.Common.dll
Syntax
public struct SamplerStateDescription : IEquatable<SamplerStateDescription>
  Fields
AddressU
Method to use for resolving a u texture coordinate that is outside the 0 to 1 range.
Declaration
public TextureAddressMode AddressU
  Field Value
| Type | Description | 
|---|---|
| TextureAddressMode | 
AddressV
Method to use for resolving a v texture coordinate that is outside the 0 to 1 range.
Declaration
public TextureAddressMode AddressV
  Field Value
| Type | Description | 
|---|---|
| TextureAddressMode | 
AddressW
Method to use for resolving a w texture coordinate that is outside the 0 to 1 range.
Declaration
public TextureAddressMode AddressW
  Field Value
| Type | Description | 
|---|---|
| TextureAddressMode | 
BorderColor
Border color SamplerBorderColor.
Declaration
public SamplerBorderColor BorderColor
  Field Value
| Type | Description | 
|---|---|
| SamplerBorderColor | 
ComparisonFunc
A function that compares sampled data against existing sampled data.
Declaration
public ComparisonFunction ComparisonFunc
  Field Value
| Type | Description | 
|---|---|
| ComparisonFunction | 
Filter
Filtering method to use when sampling a texture.
Declaration
public TextureFilter Filter
  Field Value
| Type | Description | 
|---|---|
| TextureFilter | 
MaxAnisotropy
Clamping value used if D3D11_FILTER_ANISOTROPIC or D3D11_FILTER_COMPARISON_ANISOTROPIC is specified in Filter. Valid values are between 1 and 16.
Declaration
public uint MaxAnisotropy
  Field Value
| Type | Description | 
|---|---|
| uint | 
MaxLOD
Upper end of the mipmap range to clamp access to, where 0 is the largest and most detailed mipmap level and any level higher than that is less detailed. This value must be greater than or equal to MinLOD.
Declaration
public float MaxLOD
  Field Value
| Type | Description | 
|---|---|
| float | 
MinLOD
Lower end of the mipmap range to clamp access to, where 0 is the largest and most detailed mipmap level and any level higher than that is less detailed.
Declaration
public float MinLOD
  Field Value
| Type | Description | 
|---|---|
| float | 
MipLODBias
Offset from the calculated mipmap level. For example, if Direct3D calculates that a texture should be sampled at mipmap level 3 and MipLODBias is 2, then the texture will be sampled at mipmap level 5.
Declaration
public float MipLODBias
  Field Value
| Type | Description | 
|---|---|
| float | 
Properties
Default
Gets default values for SamplerStateDescription.
Declaration
public static SamplerStateDescription Default { get; }
  Property Value
| Type | Description | 
|---|---|
| SamplerStateDescription | 
Methods
Equals(SamplerStateDescription)
Returns a hash code for this instance.
Declaration
public bool Equals(SamplerStateDescription other)
  Parameters
| Type | Name | Description | 
|---|---|---|
| SamplerStateDescription | other | Other used to compare.  | 
      
Returns
| Type | Description | 
|---|---|
| bool | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.  | 
      
Equals(object)
Determines whether the specified object is equal to this instance.
Declaration
public override bool Equals(object obj)
  Parameters
| Type | Name | Description | 
|---|---|---|
| object | obj | The object to compare with this instance.  | 
      
Returns
| Type | Description | 
|---|---|
| bool | 
  | 
      
Overrides
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
  Returns
| Type | Description | 
|---|---|
| int | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.  | 
      
Overrides
SetDefault()
Default SamplerStateDescription values.
Declaration
public void SetDefault()
  Operators
operator ==(SamplerStateDescription, SamplerStateDescription)
Implements the operator ==.
Declaration
public static bool operator ==(SamplerStateDescription value1, SamplerStateDescription value2)
  Parameters
| Type | Name | Description | 
|---|---|---|
| SamplerStateDescription | value1 | The value1.  | 
      
| SamplerStateDescription | value2 | The value2.  | 
      
Returns
| Type | Description | 
|---|---|
| bool | The result of the operator.  | 
      
operator !=(SamplerStateDescription, SamplerStateDescription)
Implements the operator ==.
Declaration
public static bool operator !=(SamplerStateDescription value1, SamplerStateDescription value2)
  Parameters
| Type | Name | Description | 
|---|---|---|
| SamplerStateDescription | value1 | The value1.  | 
      
| SamplerStateDescription | value2 | The value2.  | 
      
Returns
| Type | Description | 
|---|---|
| bool | The result of the operator.  |