Files
sbox-public/engine/Sandbox.Engine/Systems/Render/CommandList/RenderTargetHandle.cs
s&box team 71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00

41 lines
935 B
C#

namespace Sandbox.Rendering;
/// <summary>
/// A render target handle used with CommandLists
/// </summary>
public ref struct RenderTargetHandle
{
public string Name { get; internal set; }
/// <summary>
/// Reference to the color texture of this target
/// </summary>
public readonly ColorTextureRef ColorTexture => new ColorTextureRef { Name = Name };
/// <summary>
/// Reference to the index of the color texture of this target
/// </summary>
public readonly ColorIndexRef ColorIndex => new ColorIndexRef { Name = Name };
/// <summary>
/// Reference to the size of the texture
/// </summary>
public readonly SizeHandle Size => new SizeHandle { Name = Name };
public ref struct ColorTextureRef
{
public string Name { get; internal set; }
}
public ref struct ColorIndexRef
{
public string Name { get; internal set; }
}
public ref struct SizeHandle
{
public string Name { get; internal set; }
}
}