Click or drag to resize
Ab4d.SharpEngine logo

MeshSetDataChannelGpuBuffer Method

Sets the specified GpuBuffer to the data with the specified channel type. If any existing GpuBuffer was already assigned to the channel, then it is disposed.

Namespace: Ab4d.SharpEngine.Meshes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntax
C#
public virtual void SetDataChannelGpuBuffer(
	MeshDataChannelTypes channelType,
	GpuBuffer? gpuBuffer,
	bool disposeExistingGpuBuffer = true
)

Parameters

channelType  MeshDataChannelTypes
MeshDataChannelTypes
gpuBuffer  GpuBuffer
GpuBuffer
disposeExistingGpuBuffer  Boolean  (Optional)
when true (by default) then GpuBuffer that is already assigned to the channel is disposed
See Also