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

Map the buffer object to any buffer object.

Namespace: OIV.Inventor.Devices
Assembly: OIV.Inventor.Cuda (in OIV.Inventor.Cuda.dll) Version: 9.9.36.0 (9.9.36.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 CUDA 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 CUDA 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 CUDA context.

See Also