13 D3D11_DEPTH_WRITE_MASK writeMask,
14 D3D11_COMPARISON_FUNC depthFunc) {
16 ERROR(
"ShaderProgram",
"init",
"Device is null.");
19 D3D11_DEPTH_STENCIL_DESC desc{};
20 desc.DepthEnable = depthEnable;
21 desc.DepthWriteMask = writeMask;
22 desc.DepthFunc = depthFunc;
23 desc.StencilEnable =
false;
27 ERROR(
"DepthStencilState",
"init",
"Failed to create DepthStencilState");
Declara la API de DeviceContext dentro del subsistema Core.
HRESULT init(Device &device, bool depthEnable, D3D11_DEPTH_WRITE_MASK writeMask, D3D11_COMPARISON_FUNC depthFunc)
Crea el objeto ID3D11DepthStencilState a partir de flags comunes.
ID3D11DeviceContext * m_deviceContext
Puntero al contexto inmediato de Direct3D 11.