A device state. These objects can be aquired from d3d11.Device.getState(), d3d11.Device.createBlendState() and some other state creator methods. A DeviceState can contain up to four states: depth stencil, blend, rasterizer and sampler state (altough the sampler state is pretty useless).
Combines the other state with self and returns a new DeviceState. For example if this object has only depth stencil state but the source has blend- and rasterizer-states the returned state has all three states. If both objects have the same state an exception is raised.
blendState = device.createBlendState(...)
depthState = device.createDepthStencilState(...)
rasterState = device.createRasterizerState(...)
#Combine all three states into one.
combinedState = blendState.combine(depthState).combine(rasterState)
Depth stencil state
Returns the stencil reference value.
Returns True if the object has a depth stencil state.
Sets the stencil reference value.
Blend state
Returns the blend factor as floats.
Returns the blending sample mask.
Returns True if the object has a blend state.
Sets the blend factor (4-tuple of floats, RGBA order).
Sets the blending sample mask.
Rasterizer state
Returns True if the object has a rasterizer state.
Sampler state
Returns True if the object has a sampler state.