Class Buffer.Argument
Argument buffer helper methods.
public static class Buffer.Argument
- Inheritance
-
Buffer.Argument
Methods
New(GraphicsDevice, int, GraphicsResourceUsage)
Creates a new Argument buffer with Default uasge by default.
public static Buffer New(GraphicsDevice device, int size, GraphicsResourceUsage usage = GraphicsResourceUsage.Default)
Parameters
device
GraphicsDeviceThe GraphicsDevice.
size
intThe size in bytes.
usage
GraphicsResourceUsageThe usage.
Returns
- Buffer
A Argument buffer
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 : unmanaged
Parameters
device
GraphicsDeviceThe GraphicsDevice.
usage
GraphicsResourceUsageThe usage.
Returns
- Buffer<T>
A Argument buffer
Type Parameters
T
Type of the Argument buffer to get the sizeof from
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 : unmanaged
Parameters
device
GraphicsDeviceThe GraphicsDevice.
value
TThe value to initialize the Argument buffer.
usage
GraphicsResourceUsageThe usage of this resource.
Returns
- Buffer<T>
A Argument buffer
Type Parameters
T
Type of the Argument buffer to get the sizeof from