Updated target frameworks to .NET 10.0 across multiple projects for compatibility with the latest features. Refactored namespaces and introduced new classes for shader descriptors, FMOD integration, and DirectX 12 utilities using TerraFX. Replaced `Win32` bindings with TerraFX equivalents for DirectX 12. Added a C# wrapper for FMOD Studio API, including DSP and error handling. Enhanced entity queries, component storage, and query filters for better performance and type safety. Introduced new test projects and updated the solution structure. Added `meshoptimizer` bindings and integrated `meshoptimizer_native.dll`. Improved code readability, maintainability, and performance.
28 lines
901 B
C#
28 lines
901 B
C#
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 ResourceViewGroup
|
|
{
|
|
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 ResourceViewGroup Invalid => new()
|
|
{
|
|
rtv = Identifier<RTVDesc>.Invalid,
|
|
dsv = Identifier<DSVDesc>.Invalid,
|
|
srv = Identifier<CbvSrvUavDesc>.Invalid,
|
|
cbv = Identifier<CbvSrvUavDesc>.Invalid,
|
|
uav = Identifier<CbvSrvUavDesc>.Invalid,
|
|
sampler = Identifier<SamplerDesc>.Invalid,
|
|
};
|
|
} |