Class BufferData
Content of a GPU buffer (vertex buffer, index buffer, etc...).
[DataContract]
[ContentSerializer(typeof(DataContentSerializerWithReuse<BufferData>))]
public class BufferData- Inheritance
- 
      objectBufferData
- Extension Methods
Constructors
BufferData()
public BufferData()BufferData(BufferFlags, byte[])
public BufferData(BufferFlags bufferFlags, byte[] content)Parameters
- bufferFlagsBufferFlags
- contentbyte[]
Properties
BufferFlags
Buffer flags describing the type of buffer.
public BufferFlags BufferFlags { get; set; }Property Value
Content
Gets or sets the buffer content.
public byte[] Content { get; set; }Property Value
- byte[]
- The buffer content. 
StructureByteStride
The size of the structure (in bytes) when it represents a structured/typed buffer.
public int StructureByteStride { get; set; }Property Value
Usage
Usage of this buffer.
public GraphicsResourceUsage Usage { get; set; }Property Value
Methods
New<T>(BufferFlags, T[])
Creates a new instance of BufferData from a typed buffer.
public static BufferData New<T>(BufferFlags bufferFlags, T[] content) where T : structParameters
- bufferFlagsBufferFlags
- The flags indicating the type of buffer 
- contentT[]
- An array of data 
Returns
- BufferData
- A buffer data. 
Type Parameters
- T
- Type of the element to store in the buffer data.