Interface IAttachableBufferModel
- Namespace
- HelixToolkit.SharpDX
- Assembly
- HelixToolkit.SharpDX.dll
public interface IAttachableBufferModel : IGUID, IDisposable
- Inherited Members
Properties
IndexBuffer
Gets the index buffer.
IElementsBufferProxy? IndexBuffer { get; }
Property Value
- IElementsBufferProxy
The index buffer.
Topology
Gets or sets the topology.
PrimitiveTopology Topology { get; set; }
Property Value
- PrimitiveTopology
The topology.
VertexBuffer
Gets the vertex buffer.
IElementsBufferProxy?[] VertexBuffer { get; }
Property Value
- IElementsBufferProxy[]
The vertex buffer.
VertexStructSize
Gets the size of the vertex structure.
IEnumerable<int> VertexStructSize { get; }
Property Value
- IEnumerable<int>
The size of the vertex structure.
Methods
AttachBuffers(DeviceContextProxy, ref int, IDeviceResources?)
Attaches the buffers.
bool AttachBuffers(DeviceContextProxy context, ref int vertexBufferStartSlot, IDeviceResources? deviceResources)
Parameters
contextDeviceContextProxyThe context.
vertexBufferStartSlotintThe vertex buffer slot. It will be changed to next available slot after binding.
deviceResourcesIDeviceResources
Returns
UpdateBuffers(DeviceContextProxy, IDeviceResources?)
Updates the buffers.
bool UpdateBuffers(DeviceContextProxy context, IDeviceResources? deviceResources)
Parameters
contextDeviceContextProxyThe context.
deviceResourcesIDeviceResourcesThe device resources.
Returns
- bool
True if buffer updated.