Buffer.Raw Class
Namespace: Stride.GraphicsAssembly: Stride.Graphics.dll
Raw buffer helper methods.
public static class Raw
Remarks
Example in HLSL: ByteAddressBuffer or RWByteAddressBuffer for raw buffers supporting unordered access.
Name | Description | |
---|---|---|
Methods | ||
New(GraphicsDevice, DataPointer, BufferFlags, GraphicsResourceUsage) | Creates a new Raw buffer with Default uasge by default. |
|
New(GraphicsDevice, Int32, BufferFlags, GraphicsResourceUsage) | Creates a new Raw buffer Default uasge. |
|
New<T>(GraphicsDevice, ref T, BufferFlags, GraphicsResourceUsage) | Creates a new Raw buffer with Default uasge by default. |
|
New<T>(GraphicsDevice, T[], BufferFlags, GraphicsResourceUsage) | Creates a new Raw buffer with Default uasge by default. |
|
New<T>(GraphicsDevice, BufferFlags, GraphicsResourceUsage) | Creates a new Raw buffer with Default uasge by default. |
Methods
New(GraphicsDevice, DataPointer, BufferFlags, GraphicsResourceUsage)
Creates a new Raw buffer with Default uasge by default.
public static Buffer New(GraphicsDevice device, DataPointer value, BufferFlags additionalBindings = BufferFlags.None, GraphicsResourceUsage usage = GraphicsResourceUsage.Default)
Parameters
Type | Name | Description |
---|---|---|
GraphicsDevice | device | The GraphicsDevice. |
DataPointer | value | The value to initialize the Raw buffer. |
BufferFlags | additionalBindings | The additional bindings (for example, to create a combined raw/index buffer, pass IndexBuffer) |
GraphicsResourceUsage | usage | The usage of this resource. |
Returns
Type | Description |
---|---|
Buffer | A Raw buffer |
New(GraphicsDevice, Int32, BufferFlags, GraphicsResourceUsage)
Creates a new Raw buffer Default uasge.
public static Buffer New(GraphicsDevice device, int size, BufferFlags additionalBindings = BufferFlags.None, GraphicsResourceUsage usage = GraphicsResourceUsage.Default)
Parameters
Type | Name | Description |
---|---|---|
GraphicsDevice | device | The GraphicsDevice. |
System.Int32 | size | The size in bytes. |
BufferFlags | additionalBindings | The additional bindings (for example, to create a combined raw/index buffer, pass IndexBuffer) |
GraphicsResourceUsage | usage | The usage. |
Returns
Type | Description |
---|---|
Buffer | A Raw buffer |
New<T>(GraphicsDevice, ref T, BufferFlags, GraphicsResourceUsage)
Creates a new Raw buffer with Default uasge by default.
public static Buffer<T> New<T>(GraphicsDevice device, ref T value, BufferFlags additionalBindings = BufferFlags.None, GraphicsResourceUsage usage = GraphicsResourceUsage.Default)
where T : struct
Parameters
Type | Name | Description |
---|---|---|
GraphicsDevice | device | The GraphicsDevice. |
T | value | The value to initialize the Raw buffer. |
BufferFlags | additionalBindings | The additional bindings (for example, to create a combined raw/index buffer, pass IndexBuffer) |
GraphicsResourceUsage | usage | The usage of this resource. |
Returns
Type | Description |
---|---|
Buffer<T> | A Raw buffer |
Type Parameters
Name | Description |
---|---|
T | Type of the Raw buffer to get the sizeof from |
New<T>(GraphicsDevice, T[], BufferFlags, GraphicsResourceUsage)
Creates a new Raw buffer with Default uasge by default.
public static Buffer<T> New<T>(GraphicsDevice device, T[] value, BufferFlags additionalBindings = BufferFlags.None, GraphicsResourceUsage usage = GraphicsResourceUsage.Default)
where T : struct
Parameters
Type | Name | Description |
---|---|---|
GraphicsDevice | device | The GraphicsDevice. |
T[] | value | The value to initialize the Raw buffer. |
BufferFlags | additionalBindings | The additional bindings (for example, to create a combined raw/index buffer, pass IndexBuffer) |
GraphicsResourceUsage | usage | The usage of this resource. |
Returns
Type | Description |
---|---|
Buffer<T> | A Raw buffer |
Type Parameters
Name | Description |
---|---|
T | Type of the Raw buffer to get the sizeof from |
New<T>(GraphicsDevice, BufferFlags, GraphicsResourceUsage)
Creates a new Raw buffer with Default uasge by default.
public static Buffer<T> New<T>(GraphicsDevice device, BufferFlags additionalBindings = BufferFlags.None, GraphicsResourceUsage usage = GraphicsResourceUsage.Default)
where T : struct
Parameters
Type | Name | Description |
---|---|---|
GraphicsDevice | device | The GraphicsDevice. |
BufferFlags | additionalBindings | The additional bindings (for example, to create a combined raw/index buffer, pass IndexBuffer) |
GraphicsResourceUsage | usage | The usage. |
Returns
Type | Description |
---|---|
Buffer<T> | A Raw buffer |
Type Parameters
Name | Description |
---|---|
T | Type of the Raw buffer to get the sizeof from |