Table of Contents

Class VertexBuffer

Namespace
SharpDX.Direct2D1
Assembly
SharpDX.Direct2D1.dll
[Guid("9b8b1336-00a5-4668-92b7-ced5d8bf9b7b")]
public class VertexBuffer : ComObject
Inheritance
VertexBuffer

Constructors

VertexBuffer(EffectContext, Guid, VertexBufferProperties, CustomVertexBufferProperties)

Initializes a new instance of VertexBuffer class.

public VertexBuffer(EffectContext context, Guid resourceId, VertexBufferProperties vertexBufferProperties, CustomVertexBufferProperties customVertexBufferProperties)

Parameters

context EffectContext

Instance of an effect context

resourceId Guid
vertexBufferProperties VertexBufferProperties
customVertexBufferProperties CustomVertexBufferProperties

VertexBuffer(nint)

public VertexBuffer(nint nativePtr)

Parameters

nativePtr nint

Methods

Map(byte[], int)

Maps the provided data into user memory.

public void Map(byte[] data, int bufferSize)

Parameters

data byte[]

When this method returns, contains the address of a reference to the available buffer.

bufferSize int

The desired size of the buffer.

Remarks

If data is larger than bufferSize, this method fails.

Unmap()

Unmaps the vertex buffer.

public void Unmap()

Remarks

After this method returns, the mapped memory from the vertex buffer is no longer accessible by the effect.

Operators

explicit operator VertexBuffer(nint)

public static explicit operator VertexBuffer(nint nativePtr)

Parameters

nativePtr nint

Returns

VertexBuffer