mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-13 05:20:45 +00:00
Add helper for creating D3D12 PSO with MSAA in testbed program
This commit is contained in:
@@ -946,6 +946,12 @@ D3D12PSOCreator &D3D12PSOCreator::DSV(DXGI_FORMAT fmt)
|
||||
return *this;
|
||||
}
|
||||
|
||||
D3D12PSOCreator &D3D12PSOCreator::SampleCount(UINT Samples)
|
||||
{
|
||||
GraphicsDesc.SampleDesc.Count = Samples;
|
||||
return *this;
|
||||
}
|
||||
|
||||
D3D12PSOCreator::operator ID3D12PipelineStatePtr() const
|
||||
{
|
||||
ID3D12PipelineStatePtr pso;
|
||||
|
||||
@@ -84,6 +84,8 @@ public:
|
||||
D3D12PSOCreator &RTVs(const std::vector<DXGI_FORMAT> &fmts);
|
||||
D3D12PSOCreator &DSV(DXGI_FORMAT fmt);
|
||||
|
||||
D3D12PSOCreator &SampleCount(UINT Samples);
|
||||
|
||||
operator ID3D12PipelineStatePtr() const;
|
||||
|
||||
D3D12_GRAPHICS_PIPELINE_STATE_DESC GraphicsDesc = {};
|
||||
|
||||
Reference in New Issue
Block a user