Buffer.Argument Class
Namespace: Stride.GraphicsAssembly: Stride.Graphics.dll
Argument buffer helper methods.
System.Object →
Buffer.Argument
Derived from Buffer.Argument:
public static class Argument
Name | Description | |
---|---|---|
Methods | ||
New(GraphicsDevice, Int32, GraphicsResourceUsage) | Creates a new Argument buffer with Default uasge by default. |
|
New<T>(GraphicsDevice, ref T, GraphicsResourceUsage) | Creates a new Argument buffer with Default uasge by default. |
|
New<T>(GraphicsDevice, GraphicsResourceUsage) | Creates a new Argument buffer with Default uasge by default. |
Methods
New(GraphicsDevice, Int32, GraphicsResourceUsage)
Creates a new Argument 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 Argument buffer |
New<T>(GraphicsDevice, ref T, GraphicsResourceUsage)
Creates a new Argument buffer with Default uasge by default.
public static Buffer<T> New<T>(GraphicsDevice device, ref T value, GraphicsResourceUsage usage = GraphicsResourceUsage.Default)
where T : struct
Parameters
Type | Name | Description |
---|---|---|
GraphicsDevice | device | The GraphicsDevice. |
T | value | The value to initialize the Argument buffer. |
GraphicsResourceUsage | usage | The usage of this resource. |
Returns
Type | Description |
---|---|
Buffer<T> | A Argument buffer |
Type Parameters
Name | Description |
---|---|
T | Type of the Argument buffer to get the sizeof from |
New<T>(GraphicsDevice, GraphicsResourceUsage)
Creates a new Argument 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 Argument buffer |
Type Parameters
Name | Description |
---|---|
T | Type of the Argument buffer to get the sizeof from |