There currently is no way for applications to efficiently use GPU resources in systems that contain more than one GPU. Vendors have provided methods that attempt to split the workload for an application among the available GPU resources. This has proven to be very inefficient because most applications were never written with these sorts of optimizations in mind.
This extension provides a mechanism for applications to explicitly use the GPU resources on a given system individually. By providing this functionality, a driver allows applications to make appropriate decisions regarding where and when to distribute rendering tasks.
Requires WGL_ARB_extensions_string and EXT_framebuffer_object.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | WGL_GPU_CLOCK_AMD
Accepted by the |
| public static final int | WGL_GPU_FASTEST_TARGET_GPUS_AMD
Accepted by the |
| public static final int | WGL_GPU_NUM_PIPES_AMD
Accepted by the |
| public static final int | WGL_GPU_NUM_RB_AMD
Accepted by the |
| public static final int | WGL_GPU_NUM_SIMD_AMD
Accepted by the |
| public static final int | WGL_GPU_NUM_SPI_AMD
Accepted by the |
| public static final int | WGL_GPU_OPENGL_VERSION_STRING_AMD
Accepted by the |
| public static final int | WGL_GPU_RAM_AMD
Accepted by the |
| public static final int | WGL_GPU_RENDERER_STRING_AMD
Accepted by the |
| public static final int | WGL_GPU_VENDOR_AMD
Accepted by the |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description | ||||
|---|---|---|---|---|---|
| public static long | nwglCreateAssociatedContextAttribsAMD(int id, long shareContext, long attribList)
Unsafe version of: | ||||
| public static int | nwglGetGPUIDsAMD(int
the max number of IDs that can be returned maxCount, long ids)Unsafe version of: | ||||
| public static int | nwglGetGPUInfoAMD(int id, int property, int dataType, int
the size of the size, long data)data bufferUnsafe version of: | ||||
| public static void | wglBlitContextFramebufferAMD(long
the context handle for the write context dstCtx, int the source x0 coordinate srcX0, int the source Y0 coordinate srcY0, int the source X1 coordinate srcX1, int the source Y1 coordinate srcY1, int the destination X0 coordinate dstX0, int the destination Y0 coordinate dstY0, int the destination X1 coordinate dstX1, int the destination Y1 coordinate dstY1, int the bitwise OR of a number of values indicating which buffers are to be copied. One or more of: mask, int filter)
Blits data from one context to another. | ||||
| public static long | |||||
| public static long | wglCreateAssociatedContextAttribsAMD(int
a valid GPU id id, long must either be shareContext, IntBuffer NULL or that of an associated context created with the same GPU ID as ida 0-terminated list of attributes for the context attribList)Create an associated context with a specific GL version. | ||||
| public static long | wglCreateAssociatedContextAttribsAMD(int id, long shareContext, int[] attribList)
Array version of: | ||||
| public static boolean | wglDeleteAssociatedContextAMD(long
a valid associated context created by calling hglrc)CreateAssociatedContextAMDDeletes an associated context. | ||||
| public static int | wglGetContextGPUIDAMD(long
the context for which the GPU id will be returned hglrc)Determine which GPU a context is attached to. | ||||
| public static long | |||||
| public static int | |||||
| public static int | |||||
| public static int | wglGetGPUInfoAMD(int
a GPU id obtained from calling id, int property, int GetGPUIDsAMDthe data type to be returned. One of: dataType, ByteBuffer
the buffer which will be filled with the requested information data)Each GPU in a system may have different properties, performance characteristics and different supported OpenGL versions. | ||||
| public static int | wglGetGPUInfoAMD(int
a GPU id obtained from calling id, int property, int GetGPUIDsAMDthe data type to be returned. One of: dataType, IntBuffer
the buffer which will be filled with the requested information data)Each GPU in a system may have different properties, performance characteristics and different supported OpenGL versions. | ||||
| public static int | wglGetGPUInfoAMD(int
a GPU id obtained from calling id, int property, int GetGPUIDsAMDthe data type to be returned. One of: dataType, FloatBuffer
the buffer which will be filled with the requested information data)Each GPU in a system may have different properties, performance characteristics and different supported OpenGL versions. | ||||
| public static int | |||||
| public static int | |||||
| public static boolean | wglMakeAssociatedContextCurrentAMD(long
a context handle created by calling hglrc)CreateAssociatedContextAMDMakes an associated context current in the current thread. |
| WGL_GPU_CLOCK_AMD | back to summary |
|---|---|
| public static final int WGL_GPU_CLOCK_AMD Accepted by the | |
| WGL_GPU_FASTEST_TARGET_GPUS_AMD | back to summary |
|---|---|
| public static final int WGL_GPU_FASTEST_TARGET_GPUS_AMD Accepted by the | |
| WGL_GPU_NUM_PIPES_AMD | back to summary |
|---|---|
| public static final int WGL_GPU_NUM_PIPES_AMD Accepted by the | |
| WGL_GPU_NUM_RB_AMD | back to summary |
|---|---|
| public static final int WGL_GPU_NUM_RB_AMD Accepted by the | |
| WGL_GPU_NUM_SIMD_AMD | back to summary |
|---|---|
| public static final int WGL_GPU_NUM_SIMD_AMD Accepted by the | |
| WGL_GPU_NUM_SPI_AMD | back to summary |
|---|---|
| public static final int WGL_GPU_NUM_SPI_AMD Accepted by the | |
| WGL_GPU_OPENGL_VERSION_STRING_AMD | back to summary |
|---|---|
| public static final int WGL_GPU_OPENGL_VERSION_STRING_AMD Accepted by the | |
| WGL_GPU_RAM_AMD | back to summary |
|---|---|
| public static final int WGL_GPU_RAM_AMD Accepted by the | |
| WGL_GPU_RENDERER_STRING_AMD | back to summary |
|---|---|
| public static final int WGL_GPU_RENDERER_STRING_AMD Accepted by the | |
| WGL_GPU_VENDOR_AMD | back to summary |
|---|---|
| public static final int WGL_GPU_VENDOR_AMD Accepted by the | |
| WGLAMDGPUAssociation | back to summary |
|---|---|
| protected WGLAMDGPUAssociation() | |
| nwglCreateAssociatedContextAttribsAMD | back to summary |
|---|---|
| public static long nwglCreateAssociatedContextAttribsAMD(int id, long shareContext, long attribList) Unsafe version of: | |
| nwglGetGPUIDsAMD | back to summary |
|---|---|
| public static int nwglGetGPUIDsAMD(int maxCount, long ids) Unsafe version of:
| |
| nwglGetGPUInfoAMD | back to summary |
|---|---|
| public static int nwglGetGPUInfoAMD(int id, int property, int dataType, int size, long data) Unsafe version of:
| |
| wglBlitContextFramebufferAMD | back to summary | |||||
|---|---|---|---|---|---|---|
| public static void wglBlitContextFramebufferAMD(long dstCtx, int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1, int mask, int filter) Blits data from one context to another. This facilitates high performance data communication between multiple contexts.
| ||||||
| wglCreateAssociatedContextAMD | back to summary |
|---|---|
| public static long wglCreateAssociatedContextAMD(int id) Creates an associated context. Upon successful creation, no pixel format is tied to an associated context.
| |
| wglCreateAssociatedContextAttribsAMD | back to summary |
|---|---|
| public static long wglCreateAssociatedContextAttribsAMD(int id, long shareContext, IntBuffer attribList) Create an associated context with a specific GL version. All capabilities and limitations of
| |
| wglCreateAssociatedContextAttribsAMD | back to summary |
|---|---|
| public static long wglCreateAssociatedContextAttribsAMD(int id, long shareContext, int[] attribList) Array version of:
| |
| wglDeleteAssociatedContextAMD | back to summary |
|---|---|
| public static boolean wglDeleteAssociatedContextAMD(long hglrc) Deletes an associated context. An associated context cannot be deleted by calling
| |
| wglGetContextGPUIDAMD | back to summary |
|---|---|
| public static int wglGetContextGPUIDAMD(long hglrc) Determine which GPU a context is attached to. Unassociated contexts are created by calling
| |
| wglGetCurrentAssociatedContextAMD | back to summary |
|---|---|
| public static long wglGetCurrentAssociatedContextAMD() Returns the current associated context in the current thread.
| |
| wglGetGPUIDsAMD | back to summary |
|---|---|
| public static int wglGetGPUIDsAMD(IntBuffer ids) Returns the IDs for available GPUs. If the function succeeds, the return value is the number of total GPUs available. The value 0 is returned if no GPUs are available or if the call has
failed. The ID 0 is reserved and will not be retuned as a valid GPU ID. If the array
| |
| wglGetGPUIDsAMD | back to summary |
|---|---|
| public static int wglGetGPUIDsAMD(int[] ids) Array version of:
| |
| wglGetGPUInfoAMD | back to summary | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| public static int wglGetGPUInfoAMD(int id, int property, int dataType, ByteBuffer data) Each GPU in a system may have different properties, performance characteristics and different supported OpenGL versions. Use this function to determine which GPU is best suited for a specific task. For a string,
| |||||||||||||||
| wglGetGPUInfoAMD | back to summary | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| public static int wglGetGPUInfoAMD(int id, int property, int dataType, IntBuffer data) Each GPU in a system may have different properties, performance characteristics and different supported OpenGL versions. Use this function to determine which GPU is best suited for a specific task. For a string,
| |||||||||||||||
| wglGetGPUInfoAMD | back to summary | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| public static int wglGetGPUInfoAMD(int id, int property, int dataType, FloatBuffer data) Each GPU in a system may have different properties, performance characteristics and different supported OpenGL versions. Use this function to determine which GPU is best suited for a specific task. For a string,
| |||||||||||||||
| wglGetGPUInfoAMD | back to summary |
|---|---|
| public static int wglGetGPUInfoAMD(int id, int property, int dataType, int[] data) Array version of: | |
| wglGetGPUInfoAMD | back to summary |
|---|---|
| public static int wglGetGPUInfoAMD(int id, int property, int dataType, float[] data) Array version of: | |
| wglMakeAssociatedContextCurrentAMD | back to summary |
|---|---|
| public static boolean wglMakeAssociatedContextCurrentAMD(long hglrc) Makes an associated context current in the current thread.
| |