Click or drag to resize
AB4D logo

ContexStatesManager Methods

The ContexStatesManager type exposes the following members.

Methods
  NameDescription
Public methodGetGeometryShaderConstantBuffer
Gets the constant buffer as Buffer for the specified slot in the geometry shader
Public methodGetPixelShaderConstantBuffer
Gets the constant buffer as Buffer for the specified slot in the pixel shader
Public methodGetPixelShaderResource
Gets the ShaderResourceView for the specified slot in the pixel shader
Public methodGetSamplerState
Gets the SamplerState for the specified slot
Public methodGetVertexShaderConstantBuffer
Gets the constant buffer as Buffer for the specified slot in the vertex shader
Public methodReset
Resets 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. NOTE: This does not change any state on the GPU!
Public methodReset(ContexStatesManagerResetType)
Resets the specified cached resource states. This can be called if some state were not set by ContexStatesManager but were directly set by the application so the current values stored in ContexStatesManager are not valid any more. NOTE: This does not change any state on the GPU!
Public methodResetChangesCount
Resets the counter that counts how many state changes appeared in this ContexStatesManager
Public methodSetGeometryShader
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.
Public methodSetGeometryShaderConstantBuffer
Sets the constant buffer for the specified slot in the geometry shader
Public methodSetIndexBuffer
SetIndexBuffer sets the index buffer to the new index buffer if it is changed.
Public methodSetPixelShader
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.
Public methodSetPixelShaderConstantBuffer
Sets the constant buffer for the specified slot in the pixel shader
Public methodSetPixelShaderResource
Sets the ShaderResourceView for the specified slot in the pixel shader
Public methodSetRasterizerState
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.
Public methodSetSamplerState
Sets the SamplerState for the specified slot
Public methodSetVertexBuffer
Sets vertex buffer. Note that only slot 0 and 1 are cached (changed only when different vertex buffer is set), other slots are changed on every call to this method.
Public methodSetVertexShader
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.
Public methodSetVertexShaderConstantBuffer
Sets the constant buffer for the specified slot in the vertex shader
Top
See Also