Add CreateDesc for D3D12DepthStencilView
This commit is contained in:
@@ -29,5 +29,12 @@ void D3D12DepthStencilView::Shutdown() {
|
||||
m_resource = nullptr;
|
||||
}
|
||||
|
||||
D3D12_DEPTH_STENCIL_VIEW_DESC D3D12DepthStencilView::CreateDesc(Format format, D3D12_DSV_DIMENSION dimension) {
|
||||
D3D12_DEPTH_STENCIL_VIEW_DESC desc = {};
|
||||
desc.Format = ToD3D12(format);
|
||||
desc.ViewDimension = dimension;
|
||||
return desc;
|
||||
}
|
||||
|
||||
} // namespace RHI
|
||||
} // namespace XCEngine
|
||||
|
||||
Reference in New Issue
Block a user