Struct BufferDescription
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
intSize of the buffer in bytes.
bufferFlags
BufferFlagsBuffer flags describing the type of buffer.
usage
GraphicsResourceUsageUsage of this buffer.
structureByteStride
intThe 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
SizeInBytes
Size of the buffer in bytes.
public int SizeInBytes
Field Value
StructureByteStride
The size of the structure (in bytes) when it represents a structured/typed buffer.
public int StructureByteStride
Field Value
Usage
Usage of this buffer.
public GraphicsResourceUsage Usage
Field Value
Methods
Equals(BufferDescription)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(BufferDescription other)
Parameters
other
BufferDescriptionAn object to compare with this object.
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
obj
objectThe 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
BufferDescriptionThe left.
right
BufferDescriptionThe right.
Returns
- bool
The result of the operator.
operator !=(BufferDescription, BufferDescription)
Implements the operator !=.
public static bool operator !=(BufferDescription left, BufferDescription right)
Parameters
left
BufferDescriptionThe left.
right
BufferDescriptionThe right.
Returns
- bool
The result of the operator.