Click or drag to resize
SoOpenCLBufferObjectMap Method (SoBufferObject, SoBufferObjectAccessModes, UInt64, UInt64)

Map the buffer object to any buffer object.

Namespace: OIV.Inventor.Devices
Assembly: OIV.Inventor.OpenCL (in OIV.Inventor.OpenCL.dll) Version: 9.9.13.0 (9.9.13.0)
Syntax
public override void Map(
	SoBufferObject targetBufferObject,
	SoBufferObjectAccessModes accessMode,
	ulong startPosition,
	ulong mappingSize
)

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