Class VertexBuffer
[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
EffectContextInstance of an effect context
resourceId
GuidvertexBufferProperties
VertexBufferPropertiescustomVertexBufferProperties
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
intThe 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