Buffer.StructuredAppend Class
Namespace: Stride.GraphicsAssembly: Stride.Graphics.dll
public static class StructuredAppend
Name | Description | |
---|---|---|
Methods | ||
New(GraphicsDevice, DataPointer, Int32) | Creates a new StructuredAppend buffer Default uasge. |
|
New(GraphicsDevice, Int32, Int32) | Creates a new StructuredAppend buffer accessible as a |
|
New<T>(GraphicsDevice, T[]) | Creates a new StructuredAppend buffer Default uasge. |
|
New<T>(GraphicsDevice, Int32) | Creates a new StructuredAppend buffer accessible as a |
Methods
New(GraphicsDevice, DataPointer, Int32)
Creates a new StructuredAppend buffer Default uasge.
public static Buffer New(GraphicsDevice device, DataPointer value, int elementSize)
Parameters
Type | Name | Description |
---|---|---|
GraphicsDevice | device | The GraphicsDevice. |
DataPointer | value | The value to initialize the StructuredAppend buffer. |
System.Int32 | elementSize | Size of the element. |
Returns
Type | Description |
---|---|
Buffer | A StructuredAppend buffer |
New(GraphicsDevice, Int32, Int32)
Creates a new StructuredAppend buffer accessible as a
public static Buffer New(GraphicsDevice device, int count, int elementSize)
Parameters
Type | Name | Description |
---|---|---|
GraphicsDevice | device | The GraphicsDevice. |
System.Int32 | count | The number of element in this buffer. |
System.Int32 | elementSize | Size of the struct. |
Returns
Type | Description |
---|---|
Buffer | A StructuredAppend buffer |
New<T>(GraphicsDevice, T[])
Creates a new StructuredAppend buffer Default uasge.
public static Buffer<T> New<T>(GraphicsDevice device, T[] value)
where T : struct
Parameters
Type | Name | Description |
---|---|---|
GraphicsDevice | device | The GraphicsDevice. |
T[] | value | The value to initialize the StructuredAppend buffer. |
Returns
Type | Description |
---|---|
Buffer<T> | A StructuredAppend buffer |
Type Parameters
Name | Description |
---|---|
T | Type of the StructuredAppend buffer to get the sizeof from |
New<T>(GraphicsDevice, Int32)
Creates a new StructuredAppend buffer accessible as a
public static Buffer<T> New<T>(GraphicsDevice device, int count)
where T : struct
Parameters
Type | Name | Description |
---|---|---|
GraphicsDevice | device | The GraphicsDevice. |
System.Int32 | count | The number of element in this buffer. |
Returns
Type | Description |
---|---|
Buffer<T> | A Structured buffer |
Type Parameters
Name | Description |
---|---|
T | Type of the element in the structured buffer |