Refactor and enhance graphics and audio systems

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.
This commit is contained in:
2025-10-09 05:16:28 +09:00
parent 01a850ff94
commit 682200cbf1
126 changed files with 25587 additions and 3247 deletions

View File

@@ -0,0 +1,57 @@
shader "MyShader/Standard"
{
fallback("Ghost/Standard"); // This is a test comment.
// Another comment.
properties
{
global uint test;
global texture2d global_texture;
float4 color = float4(1, 1, 1, 1);
texture2d texture1 = texture2d(black);
texture2d texture2 = texture2d(white);
texture2d texture3 = texture2d(grey);
texture2d texture4 = texture2d(normal);
}
pipeline
{
ztest = less_equal;
zwrite = on;
cull = back;
blend = opaque;
color_mask = 0;
}
/*
This is a
multi-line comment.
*/
pass "Forward"
{
vs("F:/csharp/GhostEngine/Ghost.Graphics/RenderPasses/ShaderCode.hlsl", "VSMain");
ps("F:/csharp/GhostEngine/Ghost.Graphics/RenderPasses/ShaderCode.hlsl", "PSMain");
includes
{
"F:/csharp/GhostEngine/Ghost.Shader/BuiltIn/Common.hlsl";
}
}
pass "DepthOnly"
{
properties
{
float testProp = float(0.5);
}
vs("F:/csharp/GhostEngine/Ghost.Graphics/RenderPasses/ShaderCode.hlsl", "VSMain");
ps("F:/csharp/GhostEngine/Ghost.Graphics/RenderPasses/ShaderCode.hlsl", "PSMain");
includes
{
"F:/csharp/GhostEngine/Ghost.Shader/BuiltIn/Common.hlsl";
}
}
}