mirror of
https://github.com/SK-la/osu-framework.git
synced 2026-03-13 11:20:31 +00:00
20 lines
702 B
C#
20 lines
702 B
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
using osu.Framework.Graphics.Rendering.Deferred.Allocation;
|
|
|
|
namespace osu.Framework.Graphics.Rendering.Deferred.Events
|
|
{
|
|
internal readonly record struct DrawNodeActionEvent(ResourceReference DrawNode, DrawNodeActionType Action)
|
|
{
|
|
public static RenderEvent Create(DeferredRenderer renderer, DrawNode drawNode, DrawNodeActionType action)
|
|
=> RenderEvent.Create(new DrawNodeActionEvent(renderer.Context.Reference(drawNode), action));
|
|
}
|
|
|
|
internal enum DrawNodeActionType : byte
|
|
{
|
|
Enter,
|
|
Exit
|
|
}
|
|
}
|