GraphicsAPI reference
Struct ShaderCode
Namespace: MicroEngine.Graphics.Devices
Assembly: MicroEngine.Graphics.dll
Guide: The graphics device
Bytecode (or MSL source) of one shader in one format, with its entry point.
public readonly struct ShaderCode : IEquatable<ShaderCode>Implements
Constructors
ShaderCode(ReadOnlyMemory<byte>, string)
Bytecode (or MSL source) of one shader in one format, with its entry point.
public ShaderCode(ReadOnlyMemory<byte> Bytes, string EntryPoint)Parameters
Bytes ReadOnlyMemory<byte>
The code as Code takes it.
EntryPoint string
Entry point name (“main”; “main0” for MSL generated by SPIRV-Cross).
Properties
Bytes
The code as Code takes it.
public ReadOnlyMemory<byte> Bytes { get; init; }Property Value
EntryPoint
Entry point name (“main”; “main0” for MSL generated by SPIRV-Cross).
public string EntryPoint { get; init; }Property Value
Methods
Deconstruct(out ReadOnlyMemory<byte>, out string)
public void Deconstruct(out ReadOnlyMemory<byte> Bytes, out string EntryPoint)Parameters
Bytes ReadOnlyMemory<byte>
EntryPoint string
Equals(object)
public override bool Equals(object obj)Parameters
obj object
Returns
Equals(ShaderCode)
public bool Equals(ShaderCode other)Parameters
other ShaderCode
Returns
GetHashCode()
public override int GetHashCode()Returns
ToString()
public override string ToString()Returns
Operators
operator ==(ShaderCode, ShaderCode)
public static bool operator ==(ShaderCode left, ShaderCode right)Parameters
left ShaderCode
right ShaderCode
Returns
operator !=(ShaderCode, ShaderCode)
public static bool operator !=(ShaderCode left, ShaderCode right)Parameters
left ShaderCode
right ShaderCode