Click or drag to resize
SoOpenCLBufferObjectSetSize Method

Sets the size in bytes of the buffer.

Namespace: OIV.Inventor.Devices
Assembly: OIV.Inventor.OpenCL (in OIV.Inventor.OpenCL.dll) Version: 9.9.13.0 (9.9.13.0)
Syntax
public override bool SetSize(
	ulong size
)

Parameters

size
Type: SystemUInt64

The new buffer size in bytes.

Return Value

Type: Boolean
Remarks

NOTES

  • If the context is not valid, SoError is called.

  • If the current context is not the one active when the constructor was called, then SoError is called.

  • If the buffer is already allocated, the memory is freed and re-allocated with the new size. Therefore if you increase the size of the buffer, the original data is lost!

See Also