SoOpenCLBufferObjectMap Method (SoBufferObject, SoBufferObjectAccessModes, UInt64, UInt64) |
Map the buffer object to any buffer object.
Namespace: OIV.Inventor.DevicesAssembly: OIV.Inventor.OpenCL (in OIV.Inventor.OpenCL.dll) Version: 9.9.13.0 (9.9.13.0)
Syntaxpublic override void Map(
SoBufferObject targetBufferObject,
SoBufferObjectAccessModes accessMode,
ulong startPosition,
ulong mappingSize
)
Public Overrides Sub Map (
targetBufferObject As SoBufferObject,
accessMode As SoBufferObjectAccessModes,
startPosition As ULong,
mappingSize As ULong
)
public:
virtual void Map(
SoBufferObject^ targetBufferObject,
SoBufferObjectAccessModes accessMode,
unsigned long long startPosition,
unsigned long long mappingSize
) override
abstract Map :
targetBufferObject : SoBufferObject *
accessMode : SoBufferObjectAccessModes *
startPosition : uint64 *
mappingSize : uint64 -> unit
override Map :
targetBufferObject : SoBufferObject *
accessMode : SoBufferObjectAccessModes *
startPosition : uint64 *
mappingSize : uint64 -> unit
Parameters
- targetBufferObject
- Type: OIV.Inventor.DevicesSoBufferObject
The target buffer object which receives the mapping from the OpenCL buffer.
- accessMode
- Type: OIV.Inventor.DevicesSoBufferObjectAccessModes
The access mode used for the mapping.
- startPosition
- Type: SystemUInt64
Offset in source buffer to map from.
- mappingSize
- Type: SystemUInt64
Number of bytes to map, if SO_BUFFER_SIZE_ALL then the whole buffer is mapped.
Remarks
It can be called from any context, the function binds the correct context when it's called!
If the target buffer is another OpenCL buffer object, the map function copies the data according to the context. It does a copy of the source buffer in a temp buffer if the two buffers don't use the same OpenCL context.
See Also