Files
GhostEngine/Ghost.Graphics/RHI/IPipelineLibrary.cs
2025-11-12 20:31:37 +09:00

26 lines
612 B
C#

using Ghost.Core.Graphics;
namespace Ghost.Graphics.RHI;
public interface IShaderPipeline
{
/// <summary>
/// Pipeline type
/// </summary>
PipelineType Type
{
get;
}
}
public interface IPipelineLibrary
{
/// <summary>
/// Load pipeline library from disk.
/// </summary>
/// <param name="filePath">File path. If null, load default library.</param>
void InitializeLibrary(string? filePath);
void SaveLibraryToDisk(string filePath);
GraphicsPipelineKey CompilePassPSO(IPassDescriptor descriptor, ReadOnlySpan<TextureFormat> rtvs, TextureFormat dsv);
}