Top Description Fields Constructors Methods
org.lwjgl.opengl

public Class GLXAMDGPUAssociation

extends Object
Class Inheritance
Imports
java.nio.*, org.lwjgl.system.*

Native bindings to the GLX_AMD_gpu_association extension.

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 OpenGL 1.5, GLX 1.3, EXT_framebuffer_object and GLX_ARB_get_proc_address.

Field Summary

Modifier and TypeField and Description
public static final int
GLX_GPU_CLOCK_AMD

Accepted by the property parameter of GetGPUInfoAMD.

public static final int
GLX_GPU_FASTEST_TARGET_GPUS_AMD

Accepted by the property parameter of GetGPUInfoAMD.

public static final int
GLX_GPU_NUM_PIPES_AMD

Accepted by the property parameter of GetGPUInfoAMD.

public static final int
GLX_GPU_NUM_RB_AMD

Accepted by the property parameter of GetGPUInfoAMD.

public static final int
GLX_GPU_NUM_SIMD_AMD

Accepted by the property parameter of GetGPUInfoAMD.

public static final int
GLX_GPU_NUM_SPI_AMD

Accepted by the property parameter of GetGPUInfoAMD.

public static final int
GLX_GPU_OPENGL_VERSION_STRING_AMD

Accepted by the property parameter of GetGPUInfoAMD.

public static final int
GLX_GPU_RAM_AMD

Accepted by the property parameter of GetGPUInfoAMD.

public static final int
GLX_GPU_RENDERER_STRING_AMD

Accepted by the property parameter of GetGPUInfoAMD.

public static final int
GLX_GPU_VENDOR_AMD

Accepted by the property parameter of GetGPUInfoAMD.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static void
glXBlitContextFramebufferAMD(long dstCtx, int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1, int mask, int filter)

public static long
glXCreateAssociatedContextAMD(int id, long share_list)

Creates an associated context.

public static long
glXCreateAssociatedContextAttribsAMD(int id, long share_context, IntBuffer attribList)

Creates an associated context and requests a specific GL version.

public static long
glXCreateAssociatedContextAttribsAMD(int id, long share_context, int[] attribList)

Array version of: CreateAssociatedContextAttribsAMD

public static boolean
glXDeleteAssociatedContextAMD(long
the GLXContext
ctx
)

Deletes an associated context.

public static int
glXGetContextGPUIDAMD(long
the GLXContext
ctx
)

Determines which GPU a context is attached to.

public static long
glXGetCurrentAssociatedContextAMD()

Queries the crrent associated context.

public static int
glXGetGPUIDsAMD(int maxCount, int ids)

Queries the IDs for available GPUs.

public static int
public static boolean
glXMakeAssociatedContextCurrentAMD(long
the GLXContext
ctx
)

Makes an associated context current in the current thread.

public static long
nglXCreateAssociatedContextAttribsAMD(int id, long share_context, long attribList)

Unsafe version of: CreateAssociatedContextAttribsAMD

public static int
nglXGetGPUInfoAMD(int id, int property, int dataType, int size, long data)

Unsafe version of: GetGPUInfoAMD

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GLX_GPU_CLOCK_AMDback to summary
public static final int GLX_GPU_CLOCK_AMD

Accepted by the property parameter of GetGPUInfoAMD.

GLX_GPU_FASTEST_TARGET_GPUS_AMDback to summary
public static final int GLX_GPU_FASTEST_TARGET_GPUS_AMD

Accepted by the property parameter of GetGPUInfoAMD.

GLX_GPU_NUM_PIPES_AMDback to summary
public static final int GLX_GPU_NUM_PIPES_AMD

Accepted by the property parameter of GetGPUInfoAMD.

GLX_GPU_NUM_RB_AMDback to summary
public static final int GLX_GPU_NUM_RB_AMD

Accepted by the property parameter of GetGPUInfoAMD.

GLX_GPU_NUM_SIMD_AMDback to summary
public static final int GLX_GPU_NUM_SIMD_AMD

Accepted by the property parameter of GetGPUInfoAMD.

GLX_GPU_NUM_SPI_AMDback to summary
public static final int GLX_GPU_NUM_SPI_AMD

Accepted by the property parameter of GetGPUInfoAMD.

GLX_GPU_OPENGL_VERSION_STRING_AMDback to summary
public static final int GLX_GPU_OPENGL_VERSION_STRING_AMD

Accepted by the property parameter of GetGPUInfoAMD.

GLX_GPU_RAM_AMDback to summary
public static final int GLX_GPU_RAM_AMD

Accepted by the property parameter of GetGPUInfoAMD.

GLX_GPU_RENDERER_STRING_AMDback to summary
public static final int GLX_GPU_RENDERER_STRING_AMD

Accepted by the property parameter of GetGPUInfoAMD.

GLX_GPU_VENDOR_AMDback to summary
public static final int GLX_GPU_VENDOR_AMD

Accepted by the property parameter of GetGPUInfoAMD.

Constructor Detail

GLXAMDGPUAssociationback to summary
protected GLXAMDGPUAssociation()

Method Detail

glXBlitContextFramebufferAMDback to summary
public static void glXBlitContextFramebufferAMD(long dstCtx, int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1, int mask, int filter)
glXCreateAssociatedContextAMDback to summary
public static long glXCreateAssociatedContextAMD(int id, long share_list)

Creates an associated context.

Annotations
@NativeType:GLXContext
glXCreateAssociatedContextAttribsAMDback to summary
public static long glXCreateAssociatedContextAttribsAMD(int id, long share_context, IntBuffer attribList)

Creates an associated context and requests a specific GL version.

Annotations
@NativeType:GLXContext
glXCreateAssociatedContextAttribsAMDback to summary
public static long glXCreateAssociatedContextAttribsAMD(int id, long share_context, int[] attribList)

Array version of: CreateAssociatedContextAttribsAMD

Annotations
@NativeType:GLXContext
glXDeleteAssociatedContextAMDback to summary
public static boolean glXDeleteAssociatedContextAMD(long ctx)

Deletes an associated context.

Parameters
ctx:long

the GLXContext

Annotations
@NativeType:Bool
glXGetContextGPUIDAMDback to summary
public static int glXGetContextGPUIDAMD(long ctx)

Determines which GPU a context is attached to.

Parameters
ctx:long

the GLXContext

Annotations
@NativeType:unsigned int
glXGetCurrentAssociatedContextAMDback to summary
public static long glXGetCurrentAssociatedContextAMD()

Queries the crrent associated context.

Annotations
@NativeType:GLXContext
glXGetGPUIDsAMDback to summary
public static int glXGetGPUIDsAMD(int maxCount, int ids)

Queries the IDs for available GPUs.

Annotations
@NativeType:unsigned int
glXGetGPUInfoAMDback to summary
public static int glXGetGPUInfoAMD(int id, int property, int dataType, ByteBuffer data)

Queries GPU properties.

Parameters
property:int

one of:

GPU_VENDOR_AMDGPU_RENDERER_STRING_AMDGPU_OPENGL_VERSION_STRING_AMDGPU_FASTEST_TARGET_GPUS_AMD
GPU_RAM_AMDGPU_CLOCK_AMDGPU_NUM_PIPES_AMDGPU_NUM_SIMD_AMD
GPU_NUM_RB_AMDGPU_NUM_SPI_AMD
glXMakeAssociatedContextCurrentAMDback to summary
public static boolean glXMakeAssociatedContextCurrentAMD(long ctx)

Makes an associated context current in the current thread.

Parameters
ctx:long

the GLXContext

Annotations
@NativeType:Bool
nglXCreateAssociatedContextAttribsAMDback to summary
public static long nglXCreateAssociatedContextAttribsAMD(int id, long share_context, long attribList)

Unsafe version of: CreateAssociatedContextAttribsAMD

nglXGetGPUInfoAMDback to summary
public static int nglXGetGPUInfoAMD(int id, int property, int dataType, int size, long data)

Unsafe version of: GetGPUInfoAMD