VisionWorks Toolkit Reference

September 29, 2015 | 1.0 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Context Object Extensions

Detailed Description

Adds various extensions to the vx_context object.

This section describes different extensions and features to the standard Object: Context.

Enumerations

enum  nvx_context_attribute_e { NVX_CONTEXT_ATTRIBUTE_IMMEDIATE_TARGET_DEVICE = VX_ENUM_BASE(VX_ID_NVIDIA, VX_TYPE_CONTEXT) + 0x0 }
 The extended context attributes list. More...
 

Enumeration Type Documentation

The extended context attributes list.

Enumerator
NVX_CONTEXT_ATTRIBUTE_IMMEDIATE_TARGET_DEVICE 

Preferred target device for the immediate primitive execution mode (use a nvx_device_type_e).

Sets the preferred target device for future primitive execution in immediate mode (vxu<name> or nvxu<name> functions). If there is no implementation of the primitive executed in immediate mode for the given target device type, then the attribute is ignored and the target device assigned automatically.

In a multi-threaded environment, this attribute is shared across threads using the same context. In other words, if a thread sets this attribute, it impacts the immediate execution of primitives in other threads that use the same context.

See also
Resource Control

Definition at line 339 of file nvx.h.