3b20c53088
- Refactored DirectRendering class to support new IDirectRendering interface and manage textures directly. - Enhanced ImmediateMode to utilize ImmediateVertex struct for immediate rendering calls. - Updated Image class to use IDirectRendering for texture creation. - Modified test application to demonstrate immediate mode rendering with new structures. - Removed obsolete code related to previous rendering abstractions.
22 lines
629 B
C#
22 lines
629 B
C#
using System.Collections.Immutable;
|
|
|
|
namespace Dashboard.Drawing
|
|
{
|
|
/// <summary>
|
|
/// Base interface for creating shader pipelines.
|
|
/// </summary>
|
|
public interface IShaderCreateInfo
|
|
{
|
|
}
|
|
|
|
public readonly record struct ShaderMappingProperty(string Name, int Index);
|
|
|
|
public interface IShader : IDisposable
|
|
{
|
|
public ImmutableList<ShaderMappingProperty> Attributes { get; }
|
|
public ImmutableList<ShaderMappingProperty> Uniforms { get; }
|
|
public ImmutableList<ShaderMappingProperty> Blocks { get; }
|
|
public ImmutableList<ShaderMappingProperty> Textures { get; }
|
|
}
|
|
}
|