Skip to content

Struct ShaderCode

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

One shader stage: the compiled code for the device's (SPIR-V for Vulkan, Metal shading language source for Metal) and the entry point in it to run. A compute shader also says its size.

public readonly record struct ShaderCode : IEquatable<ShaderCode>

Implements

IEquatable<ShaderCode>

Inherited Members

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

Constructors

ShaderCode(ShaderBackend, byte[], string, ThreadGroupSize?)

One shader stage: the compiled code for the device's (SPIR-V for Vulkan, Metal shading language source for Metal) and the entry point in it to run. A compute shader also says its size.

public ShaderCode(ShaderBackend Backend, byte[] Code, string EntryPoint, ThreadGroupSize? Group = null)

Parameters

Backend ShaderBackend

Code byte[]

EntryPoint string

Group ThreadGroupSize?

Properties

Backend

public ShaderBackend Backend { get; init; }

Property Value

ShaderBackend

Code

public byte[] Code { get; init; }

Property Value

byte[]

EntryPoint

public string EntryPoint { get; init; }

Property Value

string

Group

public ThreadGroupSize? Group { get; init; }

Property Value

ThreadGroupSize?