SoCudaBufferObjectSetSize Method |
Sets the size in bytes of the buffer.
Namespace: OIV.Inventor.Devices
The new buffer size in bytes.
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!