Table of Contents

Struct BufferDescription

Namespace
Stride.Graphics
Assembly
Stride.Graphics.dll

Describes a buffer.

public struct BufferDescription : IEquatable<BufferDescription>
Implements
Inherited Members

Constructors

BufferDescription(int, BufferFlags, GraphicsResourceUsage, int)

Initializes a new instance of BufferDescription struct.

public BufferDescription(int sizeInBytes, BufferFlags bufferFlags, GraphicsResourceUsage usage, int structureByteStride = 0)

Parameters

sizeInBytes int

Size of the buffer in bytes.

bufferFlags BufferFlags

Buffer flags describing the type of buffer.

usage GraphicsResourceUsage

Usage of this buffer.

structureByteStride int

The size of the structure (in bytes) when it represents a structured/typed buffer. Default = 0.

Fields

BufferFlags

Buffer flags describing the type of buffer.

public BufferFlags BufferFlags

Field Value

BufferFlags

SizeInBytes

Size of the buffer in bytes.

public int SizeInBytes

Field Value

int

StructureByteStride

The size of the structure (in bytes) when it represents a structured/typed buffer.

public int StructureByteStride

Field Value

int

Usage

Usage of this buffer.

public GraphicsResourceUsage Usage

Field Value

GraphicsResourceUsage

Methods

Equals(BufferDescription)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(BufferDescription other)

Parameters

other BufferDescription

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

Operators

operator ==(BufferDescription, BufferDescription)

Implements the operator ==.

public static bool operator ==(BufferDescription left, BufferDescription right)

Parameters

left BufferDescription

The left.

right BufferDescription

The right.

Returns

bool

The result of the operator.

operator !=(BufferDescription, BufferDescription)

Implements the operator !=.

public static bool operator !=(BufferDescription left, BufferDescription right)

Parameters

left BufferDescription

The left.

right BufferDescription

The right.

Returns

bool

The result of the operator.