Skip to content

Class ShaderAbi

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

What compiled shaders assume about the engine: the bindless descriptor layout and the push-constant size every pipeline shares (). A bundle remembers the version it was made for and is refused by an engine with another, so a mod's old shader fails with a message instead of a driver crash. Bump it when BindlessHeap's layout changes, on any backend: version 2 added the Metal code and the shaders' bindless parameter block (argument buffer 1; push constants are buffer 0).

public static class ShaderAbi

Inheritance

object ← ShaderAbi

Inherited Members

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

Fields

Version

public const int Version = 2

Field Value

int