Buffer.Index Class
Namespace: Stride.GraphicsAssembly: Stride.Graphics.dll
Index buffer helper methods.
public static class Index
Name | Description | |
---|---|---|
Methods | ||
New(GraphicsDevice, DataPointer, GraphicsResourceUsage) | Creates a new index buffer with Immutable uasge by default. |
|
New(GraphicsDevice, Byte[], Boolean, GraphicsResourceUsage) | Creates a new index buffer with Immutable uasge by default. |
|
New(GraphicsDevice, Int32, GraphicsResourceUsage) | Creates a new index buffer with Default uasge by default. |
|
New<T>(GraphicsDevice, ref T, GraphicsResourceUsage) | Creates a new index buffer with Immutable uasge by default. |
|
New<T>(GraphicsDevice, T[], GraphicsResourceUsage) | Creates a new index buffer with Immutable uasge by default. |
|
New<T>(GraphicsDevice, GraphicsResourceUsage) | Creates a new index buffer with Default uasge by default. |
Methods
New(GraphicsDevice, DataPointer, GraphicsResourceUsage)
Creates a new index 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 index buffer. |
GraphicsResourceUsage | usage | The usage of this resource. |
Returns
Type | Description |
---|---|
Buffer | A index buffer |
New(GraphicsDevice, Byte[], Boolean, GraphicsResourceUsage)
Creates a new index buffer with Immutable uasge by default.
public static Buffer New(GraphicsDevice device, byte[] value, bool is32BitIndex, GraphicsResourceUsage usage = GraphicsResourceUsage.Immutable)
Parameters
Type | Name | Description |
---|---|---|
GraphicsDevice | device | The GraphicsDevice. |
System.Byte[] | value | The value to initialize the index buffer. |
System.Boolean | is32BitIndex | Set to true if the buffer is using a 32 bit index or false for 16 bit index. |
GraphicsResourceUsage | usage | The usage of this resource. |
Returns
Type | Description |
---|---|
Buffer | A index buffer |
New(GraphicsDevice, Int32, GraphicsResourceUsage)
Creates a new index buffer with Default uasge by default.
public static Buffer New(GraphicsDevice device, int size, GraphicsResourceUsage usage = GraphicsResourceUsage.Default)
Parameters
Type | Name | Description |
---|---|---|
GraphicsDevice | device | The GraphicsDevice. |
System.Int32 | size | The size in bytes. |
GraphicsResourceUsage | usage | The usage. |
Returns
Type | Description |
---|---|
Buffer | A index buffer |
New<T>(GraphicsDevice, ref T, GraphicsResourceUsage)
Creates a new index 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 index buffer. |
GraphicsResourceUsage | usage | The usage of this resource. |
Returns
Type | Description |
---|---|
Buffer<T> | A index buffer |
Type Parameters
Name | Description |
---|---|
T | Type of the index buffer to get the sizeof from |
New<T>(GraphicsDevice, T[], GraphicsResourceUsage)
Creates a new index 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 index buffer. |
GraphicsResourceUsage | usage | The usage of this resource. |
Returns
Type | Description |
---|---|
Buffer<T> | A index buffer |
Type Parameters
Name | Description |
---|---|
T | Type of the index buffer to get the sizeof from |
New<T>(GraphicsDevice, GraphicsResourceUsage)
Creates a new index 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 index buffer |
Type Parameters
Name | Description |
---|---|
T | Type of the index buffer to get the sizeof from |