mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-05 06:03:34 +00:00
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:
|
case Command::SetStencilReference:
|
||||||
{
|
{
|
||||||
commands.NextCommand<SetStencilReferenceCmd>();
|
SetStencilReferenceCmd *cmd = commands.NextCommand<SetStencilReferenceCmd>();
|
||||||
|
|
||||||
|
commandList->OMSetStencilRef(cmd->reference);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -162,6 +162,7 @@ namespace d3d12 {
|
|||||||
descriptor.PrimitiveTopologyType = D3D12PrimitiveTopologyType(GetPrimitiveTopology());
|
descriptor.PrimitiveTopologyType = D3D12PrimitiveTopologyType(GetPrimitiveTopology());
|
||||||
descriptor.NumRenderTargets = 1;
|
descriptor.NumRenderTargets = 1;
|
||||||
descriptor.RTVFormats[0] = DXGI_FORMAT_R8G8B8A8_UNORM;
|
descriptor.RTVFormats[0] = DXGI_FORMAT_R8G8B8A8_UNORM;
|
||||||
|
descriptor.DSVFormat = DXGI_FORMAT_D32_FLOAT_S8X24_UINT;
|
||||||
descriptor.SampleDesc.Count = 1;
|
descriptor.SampleDesc.Count = 1;
|
||||||
|
|
||||||
Device* device = ToBackend(builder->GetDevice());
|
Device* device = ToBackend(builder->GetDevice());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user