mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-01-13 16:59:38 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
41 lines
935 B
C#
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; }
|
|
}
|
|
|
|
}
|