Fix missing depth stencil format and reference value setting

This commit is contained in:
Ben Constable 2017-07-28 21:21:55 -07:00 committed by Corentin Wallez
parent a015ad3399
commit d54a5239a6
2 changed files with 4 additions and 1 deletions

View File

@ -479,7 +479,9 @@ namespace d3d12 {
case Command::SetStencilReference:
{
commands.NextCommand<SetStencilReferenceCmd>();
SetStencilReferenceCmd *cmd = commands.NextCommand<SetStencilReferenceCmd>();
commandList->OMSetStencilRef(cmd->reference);
}
break;

View File

@ -162,6 +162,7 @@ namespace d3d12 {
descriptor.PrimitiveTopologyType = D3D12PrimitiveTopologyType(GetPrimitiveTopology());
descriptor.NumRenderTargets = 1;
descriptor.RTVFormats[0] = DXGI_FORMAT_R8G8B8A8_UNORM;
descriptor.DSVFormat = DXGI_FORMAT_D32_FLOAT_S8X24_UINT;
descriptor.SampleDesc.Count = 1;
Device* device = ToBackend(builder->GetDevice());