Fix missing depth stencil format and reference value setting
This commit is contained in:
parent
a015ad3399
commit
d54a5239a6
|
@ -479,7 +479,9 @@ namespace d3d12 {
|
|||
|
||||
case Command::SetStencilReference:
|
||||
{
|
||||
commands.NextCommand<SetStencilReferenceCmd>();
|
||||
SetStencilReferenceCmd *cmd = commands.NextCommand<SetStencilReferenceCmd>();
|
||||
|
||||
commandList->OMSetStencilRef(cmd->reference);
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue