Files
XCEngine/managed/XCEngine.ScriptCore/Rendering/Core/DepthState.cs
ssdfasd 7fe922d1c9 feat(srp): add render state block scene draw overrides
- add managed RenderStateBlock authoring types and wire them through DrawingSettings
- let RenderObjectsRendererFeature author depth and stencil overrides for scene draws
- apply scene draw render state overrides inside builtin forward pipeline and document the stage plan
2026-04-20 23:21:04 +08:00

23 lines
501 B
C#

using System.Runtime.InteropServices;
namespace XCEngine.Rendering
{
[StructLayout(LayoutKind.Sequential)]
public struct DepthState
{
[MarshalAs(UnmanagedType.I1)]
public bool writeEnabled;
public CompareFunction compareFunction;
public static DepthState CreateDefault()
{
return new DepthState
{
writeEnabled = true,
compareFunction = CompareFunction.Less
};
}
}
}