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
sizeInBytesintSize of the buffer in bytes.
bufferFlagsBufferFlagsBuffer flags describing the type of buffer.
usageGraphicsResourceUsageUsage of this buffer.
structureByteStrideintThe 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
otherBufferDescriptionAn 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
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand 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
leftBufferDescriptionThe left.
rightBufferDescriptionThe right.
Returns
- bool
The result of the operator.
operator !=(BufferDescription, BufferDescription)
Implements the operator !=.
public static bool operator !=(BufferDescription left, BufferDescription right)
Parameters
leftBufferDescriptionThe left.
rightBufferDescriptionThe right.
Returns
- bool
The result of the operator.