BufferDescription Struct
Namespace: Stride.GraphicsAssembly: Stride.Graphics.dll
Describes a buffer.
public struct BufferDescription : IEquatable<BufferDescription>
Name | Description | |
---|---|---|
Constructors | ||
BufferDescription(Int32, BufferFlags, GraphicsResourceUsage, Int32) | Initializes a new instance of BufferDescription struct. |
|
Fields | ||
BufferFlags | Buffer flags describing the type of buffer. |
|
SizeInBytes | Size of the buffer in bytes. |
|
StructureByteStride | The size of the structure (in bytes) when it represents a structured/typed buffer. |
|
Usage | Usage of this buffer. |
|
Methods | ||
Equals(BufferDescription) | ||
Equals(Object) | ||
GetHashCode() | ||
Operators | ||
Equality(BufferDescription, BufferDescription) | Implements the operator ==. |
|
Inequality(BufferDescription, BufferDescription) | Implements the operator !=. |
Constructors
BufferDescription(Int32, BufferFlags, GraphicsResourceUsage, Int32)
Initializes a new instance of BufferDescription struct.
public BufferDescription(int sizeInBytes, BufferFlags bufferFlags, GraphicsResourceUsage usage, int structureByteStride = 0)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | sizeInBytes | Size of the buffer in bytes. |
BufferFlags | bufferFlags | Buffer flags describing the type of buffer. |
GraphicsResourceUsage | usage | Usage of this buffer. |
System.Int32 | structureByteStride | 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
Type | Description |
---|---|
BufferFlags |
SizeInBytes
Size of the buffer in bytes.
public int SizeInBytes
Field Value
Type | Description |
---|---|
System.Int32 |
StructureByteStride
The size of the structure (in bytes) when it represents a structured/typed buffer.
public int StructureByteStride
Field Value
Type | Description |
---|---|
System.Int32 |
Usage
Usage of this buffer.
public GraphicsResourceUsage Usage
Field Value
Type | Description |
---|---|
GraphicsResourceUsage |
Methods
Equals(BufferDescription)
public bool Equals(BufferDescription other)
Parameters
Type | Name | Description |
---|---|---|
BufferDescription | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Object)
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
GetHashCode()
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
Operators
Equality(BufferDescription, BufferDescription)
Implements the operator ==.
public static bool operator ==(BufferDescription left, BufferDescription right)
Parameters
Type | Name | Description |
---|---|---|
BufferDescription | left | The left. |
BufferDescription | right | The right. |
Returns
Type | Description |
---|---|
System.Boolean | The result of the operator. |
Inequality(BufferDescription, BufferDescription)
Implements the operator !=.
public static bool operator !=(BufferDescription left, BufferDescription right)
Parameters
Type | Name | Description |
---|---|---|
BufferDescription | left | The left. |
BufferDescription | right | The right. |
Returns
Type | Description |
---|---|
System.Boolean | The result of the operator. |