Top Description Fields Constructors Methods
org.lwjgl.opengl

public Class NVQueryResource

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

Native bindings to the NV_query_resource extension.

OpenGL implementations manage the residence of textures, shaders, and other graphical objects in GPU accessible memory (whether in on-board video memory or addressable system memory is implementation dependent). With more insight into OpenGL's memory usage 1) applications could make educated decisions on better utilizing the limited GPU resources, 2) users could better optimize their workflow when working with multiple tools, and 3) administrators can make better decisions regarding resource allocation and system configurations.

The purpose of this extension is to return a more detailed breakdown of memory usage in terms of the OpenGL objects residing in memory (textures, render buffers, buffer objects, system reserved objects, ...). This extension differs from GL_NVX_gpu_memory_info in that this extension returns detailed memory usage at the object level for video memory while the other extension only reports total vidmem usage.

For the purposes of this specification the term vidmem refers to video memory resident on the graphics card that is directly accessible to the GPU at the highest performance level.

Requires OpenGL 2.0.

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final int
public static final int
public static final int
GL_QUERY_RESOURCE_TEXTURE_NV

New enums defined.

public static final int
GL_QUERY_RESOURCE_TYPE_VIDMEM_ALLOC_NV

Accepted by the queryType parameter of QueryResourceNV.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static int
glQueryResourceNV(int queryType, int pname, IntBuffer buffer)

public static int
glQueryResourceNV(int queryType, int pname, int[] buffer)

Array version of: QueryResourceNV

public static native int
nglQueryResourceNV(int queryType, int pname, int bufSize, long buffer)

Unsafe version of: QueryResourceNV

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GL_QUERY_RESOURCE_BUFFEROBJECT_NVback to summary
public static final int GL_QUERY_RESOURCE_BUFFEROBJECT_NV

New enums defined.

GL_QUERY_RESOURCE_MEMTYPE_VIDMEM_NVback to summary
public static final int GL_QUERY_RESOURCE_MEMTYPE_VIDMEM_NV

New enums defined.

GL_QUERY_RESOURCE_RENDERBUFFER_NVback to summary
public static final int GL_QUERY_RESOURCE_RENDERBUFFER_NV

New enums defined.

GL_QUERY_RESOURCE_SYS_RESERVED_NVback to summary
public static final int GL_QUERY_RESOURCE_SYS_RESERVED_NV

New enums defined.

GL_QUERY_RESOURCE_TEXTURE_NVback to summary
public static final int GL_QUERY_RESOURCE_TEXTURE_NV

New enums defined.

GL_QUERY_RESOURCE_TYPE_VIDMEM_ALLOC_NVback to summary
public static final int GL_QUERY_RESOURCE_TYPE_VIDMEM_ALLOC_NV

Accepted by the queryType parameter of QueryResourceNV.

Constructor Detail

NVQueryResourceback to summary
protected NVQueryResource()

Method Detail

glQueryResourceNVback to summary
public static int glQueryResourceNV(int queryType, int pname, IntBuffer buffer)
Parameters
queryType:int

must be:

QUERY_RESOURCE_TYPE_VIDMEM_ALLOC_NV
Annotations
@NativeType:GLint
glQueryResourceNVback to summary
public static int glQueryResourceNV(int queryType, int pname, int[] buffer)

Array version of: QueryResourceNV

Annotations
@NativeType:GLint
nglQueryResourceNVback to summary
public static native int nglQueryResourceNV(int queryType, int pname, int bufSize, long buffer)

Unsafe version of: QueryResourceNV