Skip to content

Class ShaderCompilerOptions

Namespace: Apogee.Graphics.Shaders
Assembly: Apogee.Graphics.dll

public sealed class ShaderCompilerOptions

Inheritance

object ← ShaderCompilerOptions

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Properties

Backend

What to compile to: SPIR-V for Vulkan (the default), or Metal shading language source text for Metal.

public ShaderBackend Backend { get; set; }

Property Value

ShaderBackend

CacheDirectory

Where compiled code is kept between runs; null for no cache.

public string? CacheDirectory { get; set; }

Property Value

string?

DebugInfo

0 none, 1 minimal, 2 standard (line tables for RenderDoc), 3 maximal.

public int DebugInfo { get; set; }

Property Value

int

Defines

public IReadOnlyDictionary<string, string> Defines { get; set; }

Property Value

IReadOnlyDictionary<string, string>

Optimization

0 none, 1 default, 2 high, 3 maximal.

public int Optimization { get; set; }

Property Value

int

SearchPaths

Directories searched for import and #include.

public IReadOnlyList<string> SearchPaths { get; set; }

Property Value

IReadOnlyList<string>