Table of Contents

Class Buffer.Argument

Namespace
Stride.Graphics
Assembly
Stride.Graphics.dll

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 GraphicsDevice

The GraphicsDevice.

size int

The size in bytes.

usage GraphicsResourceUsage

The 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 GraphicsDevice

The GraphicsDevice.

usage GraphicsResourceUsage

The 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 GraphicsDevice

The GraphicsDevice.

value T

The value to initialize the Argument buffer.

usage GraphicsResourceUsage

The usage of this resource.

Returns

Buffer<T>

A Argument buffer

Type Parameters

T

Type of the Argument buffer to get the sizeof from