GraphicsAPI reference
Struct BufferDescription
Namespace: MicroEngine.Graphics.Devices
Assembly: MicroEngine.Graphics.dll
Guide: The graphics device
A buffer, available on every tier (tier 0: device-owned CPU memory submitted to the backend’s geometry call; tier 1: GPU memory). Contents are written only by UpdateBuffer and are undefined until written.
public readonly struct BufferDescription : IEquatable<BufferDescription>Implements
Constructors
BufferDescription(int, BufferUsage, string?)
A buffer, available on every tier (tier 0: device-owned CPU memory submitted to the backend’s geometry call; tier 1: GPU memory). Contents are written only by UpdateBuffer and are undefined until written.
public BufferDescription(int SizeInBytes, BufferUsage Usage, string? Name = null)Parameters
SizeInBytes int
Size, at least 1.
Usage BufferUsage
Vertex and/or index.
Name string?
Debug name.
Properties
Name
Debug name.
public string? Name { get; init; }Property Value
SizeInBytes
Size, at least 1.
public int SizeInBytes { get; init; }Property Value
Usage
Vertex and/or index.
public BufferUsage Usage { get; init; }Property Value
Methods
Deconstruct(out int, out BufferUsage, out string?)
public void Deconstruct(out int SizeInBytes, out BufferUsage Usage, out string? Name)Parameters
SizeInBytes int
Usage BufferUsage
Name string?
Equals(object)
public override bool Equals(object obj)Parameters
obj object
Returns
Equals(BufferDescription)
public bool Equals(BufferDescription other)Parameters
other BufferDescription
Returns
GetHashCode()
public override int GetHashCode()Returns
ToString()
public override string ToString()Returns
Operators
operator ==(BufferDescription, BufferDescription)
public static bool operator ==(BufferDescription left, BufferDescription right)Parameters
left BufferDescription
right BufferDescription
Returns
operator !=(BufferDescription, BufferDescription)
public static bool operator !=(BufferDescription left, BufferDescription right)Parameters
left BufferDescription
right BufferDescription