SoCudaBufferObject Class Reference
[CUDA device]

VSG extension CUDA buffer object managment class More...

#include <Inventor/devices/SoCudaBufferObject.h>

Inheritance diagram for SoCudaBufferObject:
SoBufferObject SoRefCounter SoTypedObject

List of all members.

Public Member Functions

 SoCudaBufferObject ()
virtual bool setSize (size_t size)
virtual void memcpy (SoBufferObject *sourceBufferObject, size_t destOffset=0, size_t sourceOffset=0, size_t copySize=SO_BUFFER_SIZE_ALL)
virtual void memcpy (SoCpuBufferObject *sourceBufferObject, size_t destOffset=0, size_t sourceOffset=0, size_t copySize=SO_BUFFER_SIZE_ALL)
virtual void memcpy (SoCudaBufferObject *sourceBufferObject, size_t destOffset=0, size_t sourceOffset=0, size_t copySize=SO_BUFFER_SIZE_ALL)
virtual void memcpy (SoGLBufferObject *sourceBufferObject, size_t destOffset=0, size_t sourceOffset=0, size_t copySize=SO_BUFFER_SIZE_ALL)
virtual void memset (void *value, size_t valueSize=1, size_t offset=0, size_t count=SO_BUFFER_SIZE_ALL)
virtual void map (SoBufferObject *targetBufferObject, AccessMode accessMode, size_t startPosition=0, size_t mappingSize=SO_BUFFER_SIZE_ALL)
virtual void map (SoCudaBufferObject *targetBufferObject, AccessMode accessMode, size_t startPosition=0, size_t mappingSize=SO_BUFFER_SIZE_ALL)
virtual void map (SoCpuBufferObject *targetBufferObject, AccessMode accessMode, size_t startPosition=0, size_t mappingSize=SO_BUFFER_SIZE_ALL)
virtual void map (SoGLBufferObject *targetBufferObject, AccessMode accessMode, size_t startPosition=0, size_t mappingSize=SO_BUFFER_SIZE_ALL)
virtual void unmap (SoBufferObject *bufferObject)
virtual void unmap (SoCudaBufferObject *bufferObject)
virtual void unmap (SoCpuBufferObject *bufferObject)
virtual void unmap (SoGLBufferObject *bufferObject)
virtual void * getLocation ()
virtual SoBufferObjectcreateInstance () const
virtual void clearInstance ()

Detailed Description

VSG extension CUDA buffer object managment class

This class provides management functions for CUDA memory buffers.

NOTES

NOTES

virtual void SoCudaBufferObject::memset ( void *  value,
size_t  valueSize = 1,
size_t  offset = 0,
size_t  count = SO_BUFFER_SIZE_ALL 
) [virtual]

This function sets the contents of (or a portion of) this buffer object to the specified value. The valueSize parameter provides a way to do a memset with float, short, byte, etc values. The number of bytes set in this buffer object is exactly valueSize*count. The first byte changed in this buffer is given by the offset argument.

Parameters:
value is a pointer to the value to set in the buffer.
valueSize The size in bytes of the value. Default is 1 byte.
offset The offset in bytes (where to start setting values). Default is 0.
count The number of values to set. Default is number of bytes in buffer.

EXAMPLE

   unsigned char memset_value = 0;
   buffer->memset( &memset_value );

Implements SoBufferObject.

virtual bool SoCudaBufferObject::setSize ( size_t  size  )  [virtual]

Sets the size in bytes of the buffer.

Parameters:
size The new buffer size in bytes.

NOTES

virtual void SoCudaBufferObject::unmap ( SoGLBufferObject bufferObject  )  [virtual]

Unmap the specified GL buffer object.

It is defined just to speed up the call when the type of the object is known.

See the general unmap function for more information.

virtual void SoCudaBufferObject::unmap ( SoCpuBufferObject bufferObject  )  [virtual]

Unmap the specified CPU buffer object.

It is defined just to speed up the call when the type of the object is known.

See the general unmap function for more information.

Implements SoBufferObject.

virtual void SoCudaBufferObject::unmap ( SoCudaBufferObject bufferObject  )  [virtual]

Unmap the specified CUDA buffer object.

It is defined just to speed up the call when the type of the object is known.

See the general unmap function for more information.

Implements SoBufferObject.

virtual void SoCudaBufferObject::unmap ( SoBufferObject bufferObject  )  [virtual]

Unmap the specified buffer object.


The documentation for this class was generated from the following file:
Open Inventor by FEI reference manual, generated on 19 Aug 2019
Copyright © FEI S.A.S. All rights reserved.
http://www.openinventor.com/