SoGpuBufferObjectSetSize Method |
Sets the size in bytes of the buffer object.
Namespace: OIV.Inventor.Devices
The size in bytes of the memory to allocate.
true if allocation succeeded.
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.