Added additional config to CompilePass in IShaderCompiler

This commit is contained in:
2025-12-27 15:14:06 +09:00
parent f988c34b3d
commit c9be05fc60
5 changed files with 48 additions and 26 deletions

View File

@@ -33,7 +33,7 @@ public struct GraphicsCompiledResult : IDisposable
}
}
public ref struct CompilerConfig
public ref struct ShaderCompilationConfig
{
public ReadOnlySpan<string> defines;
public string? include;
@@ -143,7 +143,7 @@ public readonly struct ShaderReflectionData
public interface IShaderCompiler : IDisposable
{
Result<ShaderCompileResult> Compile(ref readonly CompilerConfig config, Allocator allocator);
Result<GraphicsCompiledResult> CompilePass(IPassDescriptor descriptor, string? generatedCodePath);
Result<ShaderCompileResult> Compile(ref readonly ShaderCompilationConfig config, Allocator allocator);
Result<GraphicsCompiledResult> CompilePass(IPassDescriptor descriptor, ref readonly ShaderCompilationConfig additionalConfig, string? generatedCodePath);
Result<GraphicsCompiledResult, ErrorStatus> LoadCompiledCache(ShaderPassKey key);
}