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