Files
osu-framework/osu.Framework/Graphics/Rendering/Deferred/Events/SetTextureEvent.cs
2025-06-17 17:24:12 +09:00

14 lines
577 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 SetTextureEvent(ResourceReference Texture, int Unit)
{
public static RenderEvent Create(DeferredRenderer renderer, INativeTexture? texture, int unit)
=> RenderEvent.Create(new SetTextureEvent(renderer.Context.Reference(texture), unit));
}
}