Struct GLSamplerStateDescription
This struct represents all parameters supported in OpenGL for SamplerStateDescription.
Namespace: Evergine.OpenGL
Assembly: Evergine.OpenGL.dll
Syntax
public struct GLSamplerStateDescription
Constructors
GLSamplerStateDescription(ref SamplerStateDescription, bool, GraphicsBackend)
Initializes a new instance of the GLSamplerStateDescription struct.
Declaration
public GLSamplerStateDescription(ref SamplerStateDescription description, bool hasMipmapping, GraphicsBackend graphicsBackend)
Parameters
| Type | Name | Description |
|---|---|---|
| SamplerStateDescription | description | Evergine RasterizerStateDescription instance. |
| bool | hasMipmapping | Indicates whether the texture has mipmapping. |
| GraphicsBackend | graphicsBackend | Type of graphics backend: OpenGL, WebGL, etc. |
Fields
BorderColor
Border color to use if D3D11_TEXTURE_ADDRESS_BORDER is specified for AddressU, AddressV, or AddressW. The range must be between 0.0 and 1.0 inclusive.
Declaration
public float[] BorderColor
Field Value
| Type | Description |
|---|---|
| float[] |
CompareMode
The comparison mode.
Declaration
public uint CompareMode
Field Value
| Type | Description |
|---|---|
| uint |
ComparisonFunc
A function that compares sampled data against existing sampled data.
Declaration
public DepthFunction ComparisonFunc
Field Value
| Type | Description |
|---|---|
| DepthFunction |
MagFilter
The magFilter.
Declaration
public uint MagFilter
Field Value
| Type | Description |
|---|---|
| uint |
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 int MaxAnisotropy
Field Value
| Type | Description |
|---|---|
| int |
MaxLod
Upper end of the mipmap range to clamp access to, where 0 is the largest and most detailed mipmap level. 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 |
MinFilter
The minFilter.
Declaration
public uint MinFilter
Field Value
| Type | Description |
|---|---|
| uint |
MinLod
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 MinLod
Field Value
| Type | Description |
|---|---|
| float |
TextureWrapR
Method to use for resolving a texture coordinate that is outside the 0 to 1 range.
Declaration
public TextureWrapMode TextureWrapR
Field Value
| Type | Description |
|---|---|
| TextureWrapMode |
TextureWrapS
Method to resolve a u texture coordinate that is outside the 0 to 1 range.
Declaration
public TextureWrapMode TextureWrapS
Field Value
| Type | Description |
|---|---|
| TextureWrapMode |
TextureWrapT
Method used for resolving a v texture coordinate that is outside the 0 to 1 range.
Declaration
public TextureWrapMode TextureWrapT
Field Value
| Type | Description |
|---|---|
| TextureWrapMode |