SoOpenCLBufferObjectSetSize Method |
Sets the size in bytes of the buffer.
Namespace: OIV.Inventor.DevicesAssembly: OIV.Inventor.OpenCL (in OIV.Inventor.OpenCL.dll) Version: 9.9.13.0 (9.9.13.0)
Syntaxpublic override bool SetSize(
ulong size
)
Public Overrides Function SetSize (
size As ULong
) As Boolean
public:
virtual bool SetSize(
unsigned long long size
) override
abstract SetSize :
size : uint64 -> bool
override SetSize :
size : uint64 -> bool
Parameters
- size
- Type: SystemUInt64
The new buffer size in bytes.
Return Value
Type:
Boolean
RemarksNOTES
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