Refactoring Rendering backend

This commit is contained in:
2025-10-05 16:26:37 +09:00
parent a39f377533
commit 01a850ff94
99 changed files with 5056 additions and 5136 deletions

View File

@@ -0,0 +1,34 @@
namespace Ghost.Shader;
public enum ShaderPropertyType
{
None,
Float, Float2, Float3, Float4,
Int, Int2, Int3, Int4,
UInt, UInt2, UInt3, UInt4,
Bool, Bool2, Bool3, Bool4,
Texture2D, Texture3D, TextureCube,
}
internal class PropertyModel
{
public ShaderPropertyType type;
public string name = string.Empty;
public object? defaultValue;
}
internal class PipelineStateModel
{
public ZTestOptions zTest;
public ZWriteOptions zWrite;
public CullOptions cull;
public BlendOptions blend;
public uint colorMask;
}
internal class ShaderModel
{
public string name = string.Empty;
public List<PropertyModel> properties = new();
public PipelineStateModel pipeline = new();
}