Buffer.Vertex Class
Namespace: Stride.GraphicsAssembly: Stride.Graphics.dll
Vertex buffer helper methods.
public static class Vertex
Name | Description | |
---|---|---|
Methods | ||
New(GraphicsDevice, DataPointer, GraphicsResourceUsage) | Creates a new Vertex buffer with Immutable uasge by default. |
|
New(GraphicsDevice, Int32, GraphicsResourceUsage, BufferFlags) | Creates a new Vertex buffer with Default uasge by default. |
|
New<T>(GraphicsDevice, ref T, GraphicsResourceUsage) | Creates a new Vertex buffer with Immutable uasge by default. |
|
New<T>(GraphicsDevice, T[], GraphicsResourceUsage) | Creates a new Vertex buffer with Immutable uasge by default. |
|
New<T>(GraphicsDevice, GraphicsResourceUsage) | Creates a new Vertex buffer with Default uasge by default. |
|
New<T>(GraphicsDevice, Int32, GraphicsResourceUsage) | Creates a new Vertex buffer with Default usage by default. |
Methods
New(GraphicsDevice, DataPointer, GraphicsResourceUsage)
Creates a new Vertex buffer with Immutable uasge by default.
public static Buffer New(GraphicsDevice device, DataPointer value, GraphicsResourceUsage usage = GraphicsResourceUsage.Immutable)
Parameters
Type | Name | Description |
---|---|---|
GraphicsDevice | device | The GraphicsDevice. |
DataPointer | value | The value to initialize the Vertex buffer. |
GraphicsResourceUsage | usage | The usage of this resource. |
Returns
Type | Description |
---|---|
Buffer | A Vertex buffer |
New(GraphicsDevice, Int32, GraphicsResourceUsage, BufferFlags)
Creates a new Vertex buffer with Default uasge by default.
public static Buffer New(GraphicsDevice device, int size, GraphicsResourceUsage usage = GraphicsResourceUsage.Default, BufferFlags bindFlags = BufferFlags.VertexBuffer)
Parameters
Type | Name | Description |
---|---|---|
GraphicsDevice | device | The GraphicsDevice. |
System.Int32 | size | The size in bytes. |
GraphicsResourceUsage | usage | The usage. |
BufferFlags | bindFlags | The bind flags, can be combined with StreamOutput to use the buffer as a stream output target. |
Returns
Type | Description |
---|---|
Buffer | A Vertex buffer |
New<T>(GraphicsDevice, ref T, GraphicsResourceUsage)
Creates a new Vertex buffer with Immutable uasge by default.
public static Buffer<T> New<T>(GraphicsDevice device, ref T value, GraphicsResourceUsage usage = GraphicsResourceUsage.Immutable)
where T : struct
Parameters
Type | Name | Description |
---|---|---|
GraphicsDevice | device | The GraphicsDevice. |
T | value | The value to initialize the Vertex buffer. |
GraphicsResourceUsage | usage | The usage of this resource. |
Returns
Type | Description |
---|---|
Buffer<T> | A Vertex buffer |
Type Parameters
Name | Description |
---|---|
T | Type of the Vertex buffer to get the sizeof from |
New<T>(GraphicsDevice, T[], GraphicsResourceUsage)
Creates a new Vertex buffer with Immutable uasge by default.
public static Buffer<T> New<T>(GraphicsDevice device, T[] value, GraphicsResourceUsage usage = GraphicsResourceUsage.Immutable)
where T : struct
Parameters
Type | Name | Description |
---|---|---|
GraphicsDevice | device | The GraphicsDevice. |
T[] | value | The value to initialize the Vertex buffer. |
GraphicsResourceUsage | usage | The usage of this resource. |
Returns
Type | Description |
---|---|
Buffer<T> | A Vertex buffer |
Type Parameters
Name | Description |
---|---|
T | Type of the Vertex buffer to get the sizeof from |
New<T>(GraphicsDevice, GraphicsResourceUsage)
Creates a new Vertex buffer with Default uasge by default.
public static Buffer<T> New<T>(GraphicsDevice device, GraphicsResourceUsage usage = GraphicsResourceUsage.Default)
where T : struct
Parameters
Type | Name | Description |
---|---|---|
GraphicsDevice | device | The GraphicsDevice. |
GraphicsResourceUsage | usage | The usage. |
Returns
Type | Description |
---|---|
Buffer<T> | A Vertex buffer |
Type Parameters
Name | Description |
---|---|
T | Type of the Vertex buffer to get the sizeof from |
New<T>(GraphicsDevice, Int32, GraphicsResourceUsage)
Creates a new Vertex buffer with Default usage by default.
public static Buffer<T> New<T>(GraphicsDevice device, int vertexBufferCount, GraphicsResourceUsage usage = GraphicsResourceUsage.Default)
where T : struct
Parameters
Type | Name | Description |
---|---|---|
GraphicsDevice | device | The GraphicsDevice. |
System.Int32 | vertexBufferCount | Number of vertex in this buffer with the sizeof(T). |
GraphicsResourceUsage | usage | The usage. |
Returns
Type | Description |
---|---|
Buffer<T> | A Vertex buffer |
Type Parameters
Name | Description |
---|---|
T | Type of the Vertex buffer to get the sizeof from |