Refactoring Rendering backend
This commit is contained in:
26
Ghost.Graphics/D3D12/D3D12ResourceDescriptor.cs
Normal file
26
Ghost.Graphics/D3D12/D3D12ResourceDescriptor.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using Ghost.Core;
|
||||
|
||||
namespace Ghost.Graphics.D3D12;
|
||||
|
||||
internal readonly struct RTVDesc : IIdentifierType;
|
||||
internal readonly struct DSVDesc : IIdentifierType;
|
||||
internal readonly struct CbvSrvUavDesc : IIdentifierType;
|
||||
internal readonly struct SamplerDesc : IIdentifierType;
|
||||
|
||||
internal struct D3D12ResourceDescriptor
|
||||
{
|
||||
public Identifier<RTVDesc> rtv;
|
||||
public Identifier<DSVDesc> dsv;
|
||||
public Identifier<CbvSrvUavDesc> srv;
|
||||
public Identifier<CbvSrvUavDesc> cbv;
|
||||
public Identifier<CbvSrvUavDesc> uav;
|
||||
public Identifier<SamplerDesc> sampler;
|
||||
|
||||
public static D3D12ResourceDescriptor Invalid => new()
|
||||
{
|
||||
rtv = Identifier<RTVDesc>.Invalid,
|
||||
dsv = Identifier<DSVDesc>.Invalid,
|
||||
srv = Identifier<CbvSrvUavDesc>.Invalid,
|
||||
sampler = Identifier<SamplerDesc>.Invalid,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user