Context |
public class ContextStatesManager : DisposableDXResource
The ContextStatesManager type exposes the following members.
Name | Description | |
---|---|---|
BlendState | Gets or sets the current BlendState | |
ConstantBufferChangesCount | Gets number of times constant buffer is changed after last call to ResetChangesCount. | |
DepthStencilState | Gets or sets the current DepthStencilState | |
GeometryShader | Gets or sets the current GeometryShader | |
IndexBuffersChangesCount | Gets number of times index buffer is changed after last call to ResetChangesCount. | |
InputLayout | Gets or sets the current InputLayout | |
IsBlendStateLocked | If set to true than the current BlendState cannot be changed until IsBlendStateLocked is set to false. | |
IsDepthStencilStateLocked | If set to true than the current DepthStencilState cannot be changed until IsDepthStencilStateLocked is set to false. | |
IsFrontCounterClockwise | Gets a boolean that is the same as the IsFrontCounterClockwise value in RasterizerState (this is an cached value and do not require a native GetDescription call on each getter call) | |
IsRasterizerStateLocked | If set to true than the current RasterizerState cannot be changed until IsRasterizerStateLocked is set to false. | |
IsSamplerStateLocked | If set to true than the current SamplerState cannot be changed until IsSamplerStateLocked is set to false. | |
PixelShader | Gets or sets the current PixelShader | |
PrimitiveTopology | Gets or sets the current PrimitiveTopology | |
RasterizerState | Gets or sets the current RasterizerState | |
ShaderChangesCount | Gets number of times shader is changes after last call to ResetChangesCount. | |
StateChangesCount | Gets number of state changes after last call to ResetChangesCount. | |
VertexBuffersChangesCount | Gets number of times vertex buffer is changed after last call to ResetChangesCount. | |
VertexShader | Gets or sets the current VertexShader |
Name | Description | |
---|---|---|
GetGeometryShaderConstantBuffer | Gets the constant buffer as Buffer for the specified slot in the geometry shader | |
GetPixelShaderConstantBuffer | Gets the constant buffer as Buffer for the specified slot in the pixel shader | |
GetPixelShaderResource | Gets the ShaderResourceView for the specified slot in the pixel shader | |
GetSamplerState | Gets the SamplerState for the specified slot | |
GetVertexShaderConstantBuffer | Gets the constant buffer as Buffer for the specified slot in the vertex shader | |
Reset(Boolean) | Resets all the cached resource states. This is usually called at the beginning of rendering a frame because we do not know if any state changes were set after the last frame was rendered. | |
Reset(ContextStatesManagerResetType, Boolean, Boolean) | Resets the specified cached resource states. This can be called if some state were not set by ContextStatesManager but were directly set by the application so the current values stored in ContextStatesManager are not valid any more. | |
ResetChangesCount | Resets the counter that counts how many state changes appeared in this ContextStatesManager | |
SetGeometryShader | Sets the geometry shader if it is different as previously set geometry shader. The same as setter for GeometryShader property but this method returns true if geometry shader was changed. | |
SetGeometryShaderConstantBuffer | Sets the constant buffer for the specified slot in the geometry shader | |
SetIndexBuffer | SetIndexBuffer sets the index buffer to the new index buffer if it is changed. | |
SetPixelShader | Sets the pixel shader if it is different as previously set pixel shader. The same as setter for PixelShader property but this method returns true if pixel shader was changed. | |
SetPixelShaderConstantBuffer | Sets the constant buffer for the specified slot in the pixel shader | |
SetPixelShaderResource | Sets the ShaderResourceView for the specified slot in the pixel shader | |
SetRasterizerState | It is possible to call this method to set rasterizer stat and also set the cached value of IsFrontCounterClockwise. This eliminates the need to call the native GetDescription call when IsFrontCounterClockwise check is needed. | |
SetSamplerState | Sets the SamplerState for the specified slot | |
SetVertexBuffer | Sets vertex buffer. | |
SetVertexShader | Sets the vertex shader if it is different as previously set vertex shader. The same as setter for VertexShader property but this method returns true if vertex shader was changed. | |
SetVertexShaderConstantBuffer | Sets the constant buffer for the specified slot in the vertex shader |