Class BoneUploaderCore
- Namespace
- HelixToolkit.SharpDX.Core
- Assembly
- HelixToolkit.SharpDX.dll
public sealed class BoneUploaderCore : RenderCore, IDisposable, IGUID, IThrowingShadow
- Inheritance
-
BoneUploaderCore
- Implements
- Inherited Members
Constructors
BoneUploaderCore()
public BoneUploaderCore()
Fields
boneSkinSB
public StructuredBufferProxy? boneSkinSB
Field Value
Properties
BoneMatrices
public Matrix4x4[]? BoneMatrices { get; set; }
Property Value
BoneSkinSB
public StructuredBufferProxy? BoneSkinSB { get; }
Property Value
Methods
BindBuffer(DeviceContextProxy, int)
public void BindBuffer(DeviceContextProxy deviceContext, int slot)
Parameters
deviceContextDeviceContextProxyslotint
InvalidateBoneMatrices()
public void InvalidateBoneMatrices()
OnAttach(IRenderTechnique?)
During attatching render core. Create all local resources. Use Collect(resource) to let object be released automatically during Detach().
protected override bool OnAttach(IRenderTechnique? technique)
Parameters
techniqueIRenderTechnique
Returns
OnDetach()
On detaching, default is to release all resources
protected override void OnDetach()
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.
OnUpdate(RenderContext, DeviceContextProxy)
Only used for running compute shader such as in particle system.
protected override void OnUpdate(RenderContext context, DeviceContextProxy deviceContext)
Parameters
contextRenderContextdeviceContextDeviceContextProxy
Render(RenderContext, DeviceContextProxy)
Render routine
public override void Render(RenderContext context, DeviceContextProxy deviceContext)
Parameters
contextRenderContextdeviceContextDeviceContextProxy
Events
BoneChanged
public event EventHandler? BoneChanged