Table of Contents

Class BoneSkinPreComputeBufferModel

Namespace
HelixToolkit.SharpDX.Core
Assembly
HelixToolkit.SharpDX.dll
public sealed class BoneSkinPreComputeBufferModel : DisposeObject, IAttachableBufferModel, IGUID, IDisposable, IBoneSkinPreComputehBufferModel
Inheritance
BoneSkinPreComputeBufferModel
Implements
Inherited Members

Constructors

BoneSkinPreComputeBufferModel(IBoneSkinMeshBufferModel, int)

Initializes a new instance of the BoneSkinPreComputeBufferModel class.

public BoneSkinPreComputeBufferModel(IBoneSkinMeshBufferModel meshBuffer, int structSize)

Parameters

meshBuffer IBoneSkinMeshBufferModel

The mesh buffer.

structSize int

Size of the structure.

Properties

CanPreCompute

public bool CanPreCompute { get; }

Property Value

bool

GUID

Gets the unique identifier.

public Guid GUID { get; }

Property Value

Guid

The unique identifier.

IndexBuffer

Gets the index buffer.

public IElementsBufferProxy? IndexBuffer { get; }

Property Value

IElementsBufferProxy

The index buffer.

Topology

Gets or sets the topology.

public PrimitiveTopology Topology { get; set; }

Property Value

PrimitiveTopology

The topology.

VertexBuffer

Gets the vertex buffer.

public IElementsBufferProxy?[] VertexBuffer { get; }

Property Value

IElementsBufferProxy[]

The vertex buffer.

VertexStructSize

Gets the size of the vertex structure.

public IEnumerable<int> VertexStructSize { get; }

Property Value

IEnumerable<int>

The size of the vertex structure.

Methods

AttachBuffers(DeviceContextProxy, ref int, IDeviceResources?)

Attaches the buffers.

public bool AttachBuffers(DeviceContextProxy context, ref int vertexBufferStartSlot, IDeviceResources? deviceResources)

Parameters

context DeviceContextProxy

The context.

vertexBufferStartSlot int

The vertex buffer start slot.

deviceResources IDeviceResources

The device resources.

Returns

bool

BindSkinnedVertexBufferToOutput(DeviceContextProxy)

Binds the skinned vertex buffer to output.

public void BindSkinnedVertexBufferToOutput(DeviceContextProxy context)

Parameters

context DeviceContextProxy

The context.

CopySkinnedToArray(DeviceContextProxy, Vector3[])

Copies the skinned to array.

public int CopySkinnedToArray(DeviceContextProxy context, Vector3[] array)

Parameters

context DeviceContextProxy

The context.

array Vector3[]

The array.

Returns

int

Number of vertex has been copied.

OnDispose(bool)

Disposes of object resources.

protected override void OnDispose(bool disposeManagedResources)

Parameters

disposeManagedResources bool

If true, managed resources should be disposed of in addition to unmanaged resources.

ResetSkinnedVertexBuffer(DeviceContextProxy)

Resets the skinned vertex buffer.

public void ResetSkinnedVertexBuffer(DeviceContextProxy context)

Parameters

context DeviceContextProxy

The context.

UnBindSkinnedVertexBufferToOutput(DeviceContextProxy)

Uns the bind skinned vertex buffer to gs stream output.

public void UnBindSkinnedVertexBufferToOutput(DeviceContextProxy context)

Parameters

context DeviceContextProxy

The context.

UpdateBuffers(DeviceContextProxy, IDeviceResources?)

Updates the buffers.

public bool UpdateBuffers(DeviceContextProxy context, IDeviceResources? deviceResources)

Parameters

context DeviceContextProxy

The context.

deviceResources IDeviceResources

The device resources.

Returns

bool