SoCpuContext Class Reference
[CPU device]

VSG extension CPU device context managment class More...

#include <Inventor/devices/SoCpuContext.h>

Inheritance diagram for SoCpuContext:
SoDeviceContext SoRefCounter

List of all members.

Public Member Functions

 SoCpuContext (SoCpuDevice *device=NULL)
virtual void bind ()
virtual void unbind ()
virtual bool isCompatible (SoDeviceContext *) const
virtual bool isCurrent () const

Static Public Member Functions

static SoCpuContextgetCurrent ()

Detailed Description

VSG extension CPU device context managment class

This class provides functions to manage CPU device contexts.

See related examples:

ComputeBatch, ComputeSlice


Constructor & Destructor Documentation

SoCpuContext::SoCpuContext ( SoCpuDevice device = NULL  ) 

Default constructor.

Parameters:
device The SoCpuDevice on which to create the context.

Member Function Documentation

virtual void SoCpuContext::bind (  )  [virtual]

Bind this context to the current thread.

Implements SoDeviceContext.

static SoCpuContext* SoCpuContext::getCurrent (  )  [static]

Returns the currently bound context (if any) for the current thread.

Returns:
The current CPU context.
virtual bool SoCpuContext::isCompatible ( SoDeviceContext  )  const [virtual]

Query if the specified context and this one are compatible.


Compatible means that using a buffer from one of these contexts inside the other will not require copying the data.

Returns:
Returns true if the two contexts are compatible, false otherwise.
virtual bool SoCpuContext::isCurrent (  )  const [inline, virtual]

Query if the context is valid and currently active.

Implements SoDeviceContext.

virtual void SoCpuContext::unbind (  )  [virtual]

Unbind this context from the current thread.

Implements SoDeviceContext.


The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/