Struct RenderStateDescription
This struct represent all the parameters in the render states.
Implements
Inherited Members
Namespace: Evergine.Common.Graphics
Assembly: Evergine.Common.dll
Syntax
public struct RenderStateDescription : IEquatable<RenderStateDescription>
Fields
BlendFactor
Array of blend factors, one for each RGBA component. The blend factors modulate values for the pixel shader, render target, or both. If you created the blend-state object with D3D11_BLEND_BLEND_FACTOR or D3D11_BLEND_INV_BLEND_FACTOR, the blending stage uses the non-NULL array of blend factors. If you didn't create the blend-state object with D3D11_BLEND_BLEND_FACTOR or D3D11_BLEND_INV_BLEND_FACTOR, the blending stage does not use the non-NULL array of blend factors; the runtime stores the blend factors, and you can later call ID3D11DeviceContext::OMGetBlendState to retrieve the blend factors. If you pass NULL, the runtime uses or stores a blend factor equal to { 1, 1, 1, 1 }.
Declaration
public Vector4? BlendFactor
Field Value
Type | Description |
---|---|
Vector4? |
BlendState
Gets or sets the BlendState state.
Declaration
public BlendStateDescription BlendState
Field Value
Type | Description |
---|---|
BlendStateDescription |
DepthStencilState
Gets or sets the DepthStencil state.
Declaration
public DepthStencilStateDescription DepthStencilState
Field Value
Type | Description |
---|---|
DepthStencilStateDescription |
RasterizerState
Gets or sets the Rasterizer State.
Declaration
public RasterizerStateDescription RasterizerState
Field Value
Type | Description |
---|---|
RasterizerStateDescription |
SampleMask
32-bit sample coverage. The default value is 0xFFFFFF. See remarks.
Declaration
public int? SampleMask
Field Value
Type | Description |
---|---|
int? |
StencilReference
The reference value to use when doing a stencil test.
Declaration
public int StencilReference
Field Value
Type | Description |
---|---|
int |
Properties
Default
Gets default values for RenderStateDescription.
Declaration
public static RenderStateDescription Default { get; }
Property Value
Type | Description |
---|---|
RenderStateDescription |
Methods
Equals(RenderStateDescription)
Returns a hash code for this instance.
Declaration
public bool Equals(RenderStateDescription other)
Parameters
Type | Name | Description |
---|---|---|
RenderStateDescription | 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 RenderStateDescription values.
Declaration
public void SetDefault()
Operators
operator ==(RenderStateDescription, RenderStateDescription)
Implements the operator ==.
Declaration
public static bool operator ==(RenderStateDescription value1, RenderStateDescription value2)
Parameters
Type | Name | Description |
---|---|---|
RenderStateDescription | value1 | The value1. |
RenderStateDescription | value2 | The value2. |
Returns
Type | Description |
---|---|
bool | The result of the operator. |
operator !=(RenderStateDescription, RenderStateDescription)
Implements the operator ==.
Declaration
public static bool operator !=(RenderStateDescription value1, RenderStateDescription value2)
Parameters
Type | Name | Description |
---|---|---|
RenderStateDescription | value1 | The value1. |
RenderStateDescription | value2 | The value2. |
Returns
Type | Description |
---|---|
bool | The result of the operator. |