17 D3D11_RASTERIZER_DESC desc;
20 desc.FrontCounterClockwise = (rasterizerState->
frontCCW ? TRUE : FALSE);
21 desc.DepthBias = rasterizerState->
depthBias;
24 desc.DepthClipEnable = (rasterizerState->
enableDepthClip ? TRUE : FALSE);
25 desc.ScissorEnable = (rasterizerState->
enableScissor ? TRUE : FALSE);
30 ID3D11RasterizerState* state =
nullptr;
31 HRESULT hr = device->CreateRasterizerState(&desc, &state);
40 return std::make_shared<DX11RasterizerState>(
41 reinterpret_cast<ID3D11Device*
>(device),
42 static_cast<RasterizerState const*>(
object));
static D3D11_FILL_MODE const msFillMode[]
DX11RasterizerState(ID3D11Device *device, RasterizerState const *rasterizerState)
#define CHECK_HR_RETURN_NONE(msg)
GraphicsObjectType GetType() const
#define LogError(message)
ID3D11DeviceChild * mDXObject
ID3D11RasterizerState * GetDXRasterizerState()
bool enableAntialiasedLine
void Enable(ID3D11DeviceContext *context)
float slopeScaledDepthBias
static std::shared_ptr< GEObject > Create(void *device, GraphicsObject const *object)
static D3D11_CULL_MODE const msCullMode[]