On systems with more than one GPU it is desirable to be able to select which GPU(s) in the system become the target for OpenGL rendering commands. This extension introduces the concept of a GPU affinity mask. OpenGL rendering commands are directed to the GPU(s) specified by the affinity mask. GPU affinity is immutable. Once set, it cannot be changed.
This extension also introduces the concept called affinity-DC. An affinity-DC is a device context with a GPU affinity mask embedded in it. This restricts the device context to only allow OpenGL commands to be sent to the GPU(s) in the affinity mask.
Requires WGL_ARB_extensions_string.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ERROR_INCOMPATIBLE_AFFINITY_MASKS_NV
New error code set by wglShareLists, wglMakeCurrent and |
| public static final int | ERROR_MISSING_AFFINITY_MASK_NV
New error code set by |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static long | |
| public static int | |
| public static int | nwglEnumGpusFromAffinityDCNV(long affinityDC, int gpuIndex, long gpu)
Unsafe version of: |
| public static int | |
| public static long | wglCreateAffinityDCNV(PointerBuffer
a gpuList)NULL-terminated array of GPU handles to which the affinity-DC will be restrictedCreates an affinity-DC. |
| public static boolean | |
| public static boolean | wglEnumGpuDevicesNV(long
a handle to the GPU to query gpu, int an index value that specifies a display device, supported by deviceIndex, GPU_DEVICE gpu, to query. The first display device will be index 0.a gpuDevice)GPU_DEVICE structure which will receive information about the display device at index deviceIndex.Retrieve information about the display devices supported by a GPU. |
| public static boolean | wglEnumGpusFromAffinityDCNV(long
a handle of the affinity-DC to query affinityDC, int an index value of the GPU handle in the affinity mask of gpuIndex, PointerBuffer affinityDC to queryreturns a handle for GPU number gpu)gpuIndex. The first GPU will be at index 0.Retrieves a list of GPU handles that make up the affinity-mask of an affinity-DC. |
| public static boolean | wglEnumGpusNV(int
an index value that specifies a GPU gpuIndex, PointerBuffer returns a handle for GPU number gpu)gpuIndex. The first GPU will be index 0.Returns the handles for all GPUs in a system. |
| ERROR_INCOMPATIBLE_AFFINITY_MASKS_NV | back to summary |
|---|---|
| public static final int ERROR_INCOMPATIBLE_AFFINITY_MASKS_NV New error code set by wglShareLists, wglMakeCurrent and | |
| ERROR_MISSING_AFFINITY_MASK_NV | back to summary |
|---|---|
| public static final int ERROR_MISSING_AFFINITY_MASK_NV New error code set by | |
| WGLNVGPUAffinity | back to summary |
|---|---|
| protected WGLNVGPUAffinity() | |
| nwglCreateAffinityDCNV | back to summary |
|---|---|
| public static long nwglCreateAffinityDCNV(long gpuList) Unsafe version of: | |
| nwglEnumGpuDevicesNV | back to summary |
|---|---|
| public static int nwglEnumGpuDevicesNV(long gpu, int deviceIndex, long gpuDevice) Unsafe version of: | |
| nwglEnumGpusFromAffinityDCNV | back to summary |
|---|---|
| public static int nwglEnumGpusFromAffinityDCNV(long affinityDC, int gpuIndex, long gpu) Unsafe version of: | |
| nwglEnumGpusNV | back to summary |
|---|---|
| public static int nwglEnumGpusNV(int gpuIndex, long gpu) Unsafe version of: | |
| wglCreateAffinityDCNV | back to summary |
|---|---|
| public static long wglCreateAffinityDCNV(PointerBuffer gpuList) Creates an affinity-DC. Affinity-DCs, a new type of DC, can be used to direct OpenGL commands to a specific GPU or set of GPUs. An affinity-DC is a
device context with a GPU affinity mask embedded in it. This restricts the device context to only allow OpenGL commands to be sent to the GPU(s) in the
affinity mask. An affinity-DC can be created directly, using the new function If successful, the function returns an affinity-DC handle. If it fails,
| |
| wglDeleteDCNV | back to summary |
|---|---|
| public static boolean wglDeleteDCNV(long hdc) Deletes an affinity-DC.
| |
| wglEnumGpuDevicesNV | back to summary |
|---|---|
| public static boolean wglEnumGpuDevicesNV(long gpu, int deviceIndex, GPU_DEVICE gpuDevice) Retrieve information about the display devices supported by a GPU.
| |
| wglEnumGpusFromAffinityDCNV | back to summary |
|---|---|
| public static boolean wglEnumGpusFromAffinityDCNV(long affinityDC, int gpuIndex, PointerBuffer gpu) Retrieves a list of GPU handles that make up the affinity-mask of an affinity-DC. By looping over
| |
| wglEnumGpusNV | back to summary |
|---|---|
| public static boolean wglEnumGpusNV(int gpuIndex, PointerBuffer gpu) Returns the handles for all GPUs in a system. By looping over
| |