Click or drag to resize
SoGpuBufferObjectSetSize Method

Sets the size in bytes of the buffer object.

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

Parameters

size
Type: SystemUInt64

The size in bytes of the memory to allocate.

Return Value

Type: Boolean

true if allocation succeeded.

Remarks

In other words, a request to allocate size bytes of GPU memory. Returns true if the allocation succeeded. The memory is owned by the buffer object and will be freed when the buffer object is destroyed.

If the requested size is the same as the current size, this method does nothing and returns true. If there is existing memory that is owned by the buffer object, that memory is released. If the requested size is zero, the buffer object is now empty.

See Also