Scripting API

Scripting API

CompiledShader

Record struct in Abyss.Core, from Abyss.Core.

What one variant of a shader compiled to.

public readonly record struct CompiledShader

Remarks

Laid out to match the engine's own CompiledShader, twelve bytes.

Constructors

CompiledShader

public CompiledShader(uint Bytes, uint Packed, float Milliseconds)

What one variant of a shader compiled to.

Parameters

  • Bytes: How long its SPIR-V is.
  • Packed: How long it is packed with LZ4, as a built game's pack will hold it.
  • Milliseconds: How long composing, checking and writing it took.

Laid out to match the engine's own CompiledShader, twelve bytes.

Properties

Bytes

public uint Bytes { get; init; }

How long its SPIR-V is.

Packed

public uint Packed { get; init; }

How long it is packed with LZ4, as a built game's pack will hold it.

Milliseconds

public float Milliseconds { get; init; }

How long composing, checking and writing it took.