Click or drag to resize
Ab4d.SharpEngine logo

MeshSetDataChannel(MeshDataChannelTypes, Object, GpuBuffer, Boolean) Method

SetDataChannel method sets the specified data and the GpuBuffer to the specified channel.

Namespace: Ab4d.SharpEngine.Meshes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
Syntax
C#
public virtual void SetDataChannel(
	MeshDataChannelTypes channelType,
	Object? data,
	GpuBuffer? gpuBuffer,
	bool disposeExistingGpuBuffer = true
)

Parameters

channelType  MeshDataChannelTypes
channel type
data  Object
data to set to the channel; when null, then the specified channelType is removed
gpuBuffer  GpuBuffer
GpuBuffer created for the channel data
disposeExistingGpuBuffer  Boolean  (Optional)
when true (by default) then GpuBuffer that is already assigned to the channel is disposed
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Meshes.Mesh.SetDataChannel(Ab4d.SharpEngine.Meshes.MeshDataChannelTypes,System.Object,Ab4d.SharpEngine.Core.GpuBuffer,System.Boolean)"]

See Also