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
meshBufferIBoneSkinMeshBufferModelThe mesh buffer.
structSizeintSize of the structure.
Properties
CanPreCompute
public bool CanPreCompute { get; }
Property Value
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
contextDeviceContextProxyThe context.
vertexBufferStartSlotintThe vertex buffer start slot.
deviceResourcesIDeviceResourcesThe device resources.
Returns
BindSkinnedVertexBufferToOutput(DeviceContextProxy)
Binds the skinned vertex buffer to output.
public void BindSkinnedVertexBufferToOutput(DeviceContextProxy context)
Parameters
contextDeviceContextProxyThe context.
CopySkinnedToArray(DeviceContextProxy, Vector3[])
Copies the skinned to array.
public int CopySkinnedToArray(DeviceContextProxy context, Vector3[] array)
Parameters
contextDeviceContextProxyThe context.
arrayVector3[]The array.
Returns
- int
Number of vertex has been copied.
OnDispose(bool)
Disposes of object resources.
protected override void OnDispose(bool disposeManagedResources)
Parameters
disposeManagedResourcesboolIf 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
contextDeviceContextProxyThe context.
UnBindSkinnedVertexBufferToOutput(DeviceContextProxy)
Uns the bind skinned vertex buffer to gs stream output.
public void UnBindSkinnedVertexBufferToOutput(DeviceContextProxy context)
Parameters
contextDeviceContextProxyThe context.
UpdateBuffers(DeviceContextProxy, IDeviceResources?)
Updates the buffers.
public bool UpdateBuffers(DeviceContextProxy context, IDeviceResources? deviceResources)
Parameters
contextDeviceContextProxyThe context.
deviceResourcesIDeviceResourcesThe device resources.