All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lwjgl.opengles.AMDPerformanceMonitor Maven / Gradle / Ivy

Go to download

A royalty-free, cross-platform API for full-function 2D and 3D graphics on embedded systems - including consoles, phones, appliances and vehicles.

There is a newer version: 3.3.4
Show newest version
/*
 * Copyright LWJGL. All rights reserved.
 * License terms: https://www.lwjgl.org/license
 * MACHINE GENERATED FILE, DO NOT EDIT
 */
package org.lwjgl.opengles;

import java.nio.*;

import org.lwjgl.system.*;

import static org.lwjgl.system.Checks.*;
import static org.lwjgl.system.JNI.*;
import static org.lwjgl.system.MemoryStack.*;
import static org.lwjgl.system.MemoryUtil.*;

/**
 * Native bindings to the AMD_performance_monitor extension.
 * 
 * 

This extension enables the capture and reporting of performance monitors. Performance monitors contain groups of counters which hold arbitrary counted * data. Typically, the counters hold information on performance-related counters in the underlying hardware. The extension is general enough to allow the * implementation to choose which counters to expose and pick the data type and range of the counters. The extension also allows counting to start and end * on arbitrary boundaries during rendering.

*/ public class AMDPerformanceMonitor { /** Accepted by the {@code pame} parameter of GetPerfMonitorCounterInfoAMD. */ public static final int GL_COUNTER_TYPE_AMD = 0x8BC0, GL_COUNTER_RANGE_AMD = 0x8BC1; /** Returned as a valid value in {@code data} parameter of GetPerfMonitorCounterInfoAMD if {@code pname} = COUNTER_TYPE_AMD. */ public static final int GL_UNSIGNED_INT64_AMD = 0x8BC2, GL_PERCENTAGE_AMD = 0x8BC3; /** Accepted by the {@code pname} parameter of GetPerfMonitorCounterDataAMD. */ public static final int GL_PERFMON_RESULT_AVAILABLE_AMD = 0x8BC4, GL_PERFMON_RESULT_SIZE_AMD = 0x8BC5, GL_PERFMON_RESULT_AMD = 0x8BC6; protected AMDPerformanceMonitor() { throw new UnsupportedOperationException(); } static boolean isAvailable(GLESCapabilities caps) { return checkFunctions( caps.glGetPerfMonitorGroupsAMD, caps.glGetPerfMonitorCountersAMD, caps.glGetPerfMonitorGroupStringAMD, caps.glGetPerfMonitorCounterStringAMD, caps.glGetPerfMonitorCounterInfoAMD, caps.glGenPerfMonitorsAMD, caps.glDeletePerfMonitorsAMD, caps.glSelectPerfMonitorCountersAMD, caps.glBeginPerfMonitorAMD, caps.glEndPerfMonitorAMD, caps.glGetPerfMonitorCounterDataAMD ); } // --- [ glGetPerfMonitorGroupsAMD ] --- public static void nglGetPerfMonitorGroupsAMD(long numGroups, int groupsSize, long groups) { long __functionAddress = GLES.getCapabilities().glGetPerfMonitorGroupsAMD; if ( CHECKS ) checkFunctionAddress(__functionAddress); callPPV(__functionAddress, numGroups, groupsSize, groups); } public static void glGetPerfMonitorGroupsAMD(IntBuffer numGroups, IntBuffer groups) { if ( CHECKS ) checkBufferSafe(numGroups, 1); nglGetPerfMonitorGroupsAMD(memAddressSafe(numGroups), remainingSafe(groups), memAddressSafe(groups)); } // --- [ glGetPerfMonitorCountersAMD ] --- public static void nglGetPerfMonitorCountersAMD(int group, long numCounters, long maxActiveCounters, int counterSize, long counters) { long __functionAddress = GLES.getCapabilities().glGetPerfMonitorCountersAMD; if ( CHECKS ) checkFunctionAddress(__functionAddress); callPPPV(__functionAddress, group, numCounters, maxActiveCounters, counterSize, counters); } public static void glGetPerfMonitorCountersAMD(int group, IntBuffer numCounters, IntBuffer maxActiveCounters, IntBuffer counters) { if ( CHECKS ) { checkBuffer(numCounters, 1); checkBuffer(maxActiveCounters, 1); } nglGetPerfMonitorCountersAMD(group, memAddress(numCounters), memAddress(maxActiveCounters), counters.remaining(), memAddress(counters)); } // --- [ glGetPerfMonitorGroupStringAMD ] --- public static void nglGetPerfMonitorGroupStringAMD(int group, int bufSize, long length, long groupString) { long __functionAddress = GLES.getCapabilities().glGetPerfMonitorGroupStringAMD; if ( CHECKS ) checkFunctionAddress(__functionAddress); callPPV(__functionAddress, group, bufSize, length, groupString); } public static void glGetPerfMonitorGroupStringAMD(int group, IntBuffer length, ByteBuffer groupString) { if ( CHECKS ) checkBuffer(length, 1); nglGetPerfMonitorGroupStringAMD(group, groupString.remaining(), memAddress(length), memAddress(groupString)); } // --- [ glGetPerfMonitorCounterStringAMD ] --- public static void nglGetPerfMonitorCounterStringAMD(int group, int counter, int bufSize, long length, long counterString) { long __functionAddress = GLES.getCapabilities().glGetPerfMonitorCounterStringAMD; if ( CHECKS ) checkFunctionAddress(__functionAddress); callPPV(__functionAddress, group, counter, bufSize, length, counterString); } public static void glGetPerfMonitorCounterStringAMD(int group, int counter, IntBuffer length, ByteBuffer counterString) { if ( CHECKS ) checkBufferSafe(length, 1); nglGetPerfMonitorCounterStringAMD(group, counter, remainingSafe(counterString), memAddressSafe(length), memAddressSafe(counterString)); } // --- [ glGetPerfMonitorCounterInfoAMD ] --- public static void nglGetPerfMonitorCounterInfoAMD(int group, int counter, int pname, long data) { long __functionAddress = GLES.getCapabilities().glGetPerfMonitorCounterInfoAMD; if ( CHECKS ) checkFunctionAddress(__functionAddress); callPV(__functionAddress, group, counter, pname, data); } public static void glGetPerfMonitorCounterInfoAMD(int group, int counter, int pname, ByteBuffer data) { if ( CHECKS ) checkBuffer(data, 4); nglGetPerfMonitorCounterInfoAMD(group, counter, pname, memAddress(data)); } public static void glGetPerfMonitorCounterInfoAMD(int group, int counter, int pname, IntBuffer data) { if ( CHECKS ) checkBuffer(data, 4 >> 2); nglGetPerfMonitorCounterInfoAMD(group, counter, pname, memAddress(data)); } public static void glGetPerfMonitorCounterInfoAMD(int group, int counter, int pname, FloatBuffer data) { if ( CHECKS ) checkBuffer(data, 4 >> 2); nglGetPerfMonitorCounterInfoAMD(group, counter, pname, memAddress(data)); } // --- [ glGenPerfMonitorsAMD ] --- public static void nglGenPerfMonitorsAMD(int n, long monitors) { long __functionAddress = GLES.getCapabilities().glGenPerfMonitorsAMD; if ( CHECKS ) checkFunctionAddress(__functionAddress); callPV(__functionAddress, n, monitors); } public static void glGenPerfMonitorsAMD(IntBuffer monitors) { nglGenPerfMonitorsAMD(monitors.remaining(), memAddress(monitors)); } public static int glGenPerfMonitorsAMD() { MemoryStack stack = stackGet(); int stackPointer = stack.getPointer(); try { IntBuffer monitors = stack.callocInt(1); nglGenPerfMonitorsAMD(1, memAddress(monitors)); return monitors.get(0); } finally { stack.setPointer(stackPointer); } } // --- [ glDeletePerfMonitorsAMD ] --- public static void nglDeletePerfMonitorsAMD(int n, long monitors) { long __functionAddress = GLES.getCapabilities().glDeletePerfMonitorsAMD; if ( CHECKS ) checkFunctionAddress(__functionAddress); callPV(__functionAddress, n, monitors); } public static void glDeletePerfMonitorsAMD(IntBuffer monitors) { nglDeletePerfMonitorsAMD(monitors.remaining(), memAddress(monitors)); } public static void glDeletePerfMonitorsAMD(int monitor) { MemoryStack stack = stackGet(); int stackPointer = stack.getPointer(); try { IntBuffer monitors = stack.ints(monitor); nglDeletePerfMonitorsAMD(1, memAddress(monitors)); } finally { stack.setPointer(stackPointer); } } // --- [ glSelectPerfMonitorCountersAMD ] --- public static void nglSelectPerfMonitorCountersAMD(int monitor, boolean enable, int group, int numCounters, long counterList) { long __functionAddress = GLES.getCapabilities().glSelectPerfMonitorCountersAMD; if ( CHECKS ) checkFunctionAddress(__functionAddress); callPV(__functionAddress, monitor, enable, group, numCounters, counterList); } public static void glSelectPerfMonitorCountersAMD(int monitor, boolean enable, int group, IntBuffer counterList) { nglSelectPerfMonitorCountersAMD(monitor, enable, group, counterList.remaining(), memAddress(counterList)); } // --- [ glBeginPerfMonitorAMD ] --- public static void glBeginPerfMonitorAMD(int monitor) { long __functionAddress = GLES.getCapabilities().glBeginPerfMonitorAMD; if ( CHECKS ) checkFunctionAddress(__functionAddress); callV(__functionAddress, monitor); } // --- [ glEndPerfMonitorAMD ] --- public static void glEndPerfMonitorAMD(int monitor) { long __functionAddress = GLES.getCapabilities().glEndPerfMonitorAMD; if ( CHECKS ) checkFunctionAddress(__functionAddress); callV(__functionAddress, monitor); } // --- [ glGetPerfMonitorCounterDataAMD ] --- public static void nglGetPerfMonitorCounterDataAMD(int monitor, int pname, int dataSize, long data, long bytesWritten) { long __functionAddress = GLES.getCapabilities().glGetPerfMonitorCounterDataAMD; if ( CHECKS ) checkFunctionAddress(__functionAddress); callPPV(__functionAddress, monitor, pname, dataSize, data, bytesWritten); } public static void glGetPerfMonitorCounterDataAMD(int monitor, int pname, IntBuffer data, IntBuffer bytesWritten) { if ( CHECKS ) checkBufferSafe(bytesWritten, 1); nglGetPerfMonitorCounterDataAMD(monitor, pname, data.remaining(), memAddress(data), memAddressSafe(bytesWritten)); } /** Array version of: {@link #glGetPerfMonitorGroupsAMD GetPerfMonitorGroupsAMD} */ public static void glGetPerfMonitorGroupsAMD(int[] numGroups, int[] groups) { long __functionAddress = GLES.getCapabilities().glGetPerfMonitorGroupsAMD; if ( CHECKS ) { checkFunctionAddress(__functionAddress); checkBufferSafe(numGroups, 1); } callPPV(__functionAddress, numGroups, lengthSafe(groups), groups); } /** Array version of: {@link #glGetPerfMonitorCountersAMD GetPerfMonitorCountersAMD} */ public static void glGetPerfMonitorCountersAMD(int group, int[] numCounters, int[] maxActiveCounters, int[] counters) { long __functionAddress = GLES.getCapabilities().glGetPerfMonitorCountersAMD; if ( CHECKS ) { checkFunctionAddress(__functionAddress); checkBuffer(numCounters, 1); checkBuffer(maxActiveCounters, 1); } callPPPV(__functionAddress, group, numCounters, maxActiveCounters, counters.length, counters); } /** Array version of: {@link #glGetPerfMonitorGroupStringAMD GetPerfMonitorGroupStringAMD} */ public static void glGetPerfMonitorGroupStringAMD(int group, int[] length, ByteBuffer groupString) { long __functionAddress = GLES.getCapabilities().glGetPerfMonitorGroupStringAMD; if ( CHECKS ) { checkFunctionAddress(__functionAddress); checkBuffer(length, 1); } callPPV(__functionAddress, group, groupString.remaining(), length, memAddress(groupString)); } /** Array version of: {@link #glGetPerfMonitorCounterStringAMD GetPerfMonitorCounterStringAMD} */ public static void glGetPerfMonitorCounterStringAMD(int group, int counter, int[] length, ByteBuffer counterString) { long __functionAddress = GLES.getCapabilities().glGetPerfMonitorCounterStringAMD; if ( CHECKS ) { checkFunctionAddress(__functionAddress); checkBufferSafe(length, 1); } callPPV(__functionAddress, group, counter, remainingSafe(counterString), length, memAddressSafe(counterString)); } /** Array version of: {@link #glGetPerfMonitorCounterInfoAMD GetPerfMonitorCounterInfoAMD} */ public static void glGetPerfMonitorCounterInfoAMD(int group, int counter, int pname, int[] data) { long __functionAddress = GLES.getCapabilities().glGetPerfMonitorCounterInfoAMD; if ( CHECKS ) { checkFunctionAddress(__functionAddress); checkBuffer(data, 4 >> 2); } callPV(__functionAddress, group, counter, pname, data); } /** Array version of: {@link #glGetPerfMonitorCounterInfoAMD GetPerfMonitorCounterInfoAMD} */ public static void glGetPerfMonitorCounterInfoAMD(int group, int counter, int pname, float[] data) { long __functionAddress = GLES.getCapabilities().glGetPerfMonitorCounterInfoAMD; if ( CHECKS ) { checkFunctionAddress(__functionAddress); checkBuffer(data, 4 >> 2); } callPV(__functionAddress, group, counter, pname, data); } /** Array version of: {@link #glGenPerfMonitorsAMD GenPerfMonitorsAMD} */ public static void glGenPerfMonitorsAMD(int[] monitors) { long __functionAddress = GLES.getCapabilities().glGenPerfMonitorsAMD; if ( CHECKS ) checkFunctionAddress(__functionAddress); callPV(__functionAddress, monitors.length, monitors); } /** Array version of: {@link #glDeletePerfMonitorsAMD DeletePerfMonitorsAMD} */ public static void glDeletePerfMonitorsAMD(int[] monitors) { long __functionAddress = GLES.getCapabilities().glDeletePerfMonitorsAMD; if ( CHECKS ) checkFunctionAddress(__functionAddress); callPV(__functionAddress, monitors.length, monitors); } /** Array version of: {@link #glSelectPerfMonitorCountersAMD SelectPerfMonitorCountersAMD} */ public static void glSelectPerfMonitorCountersAMD(int monitor, boolean enable, int group, int[] counterList) { long __functionAddress = GLES.getCapabilities().glSelectPerfMonitorCountersAMD; if ( CHECKS ) checkFunctionAddress(__functionAddress); callPV(__functionAddress, monitor, enable, group, counterList.length, counterList); } /** Array version of: {@link #glGetPerfMonitorCounterDataAMD GetPerfMonitorCounterDataAMD} */ public static void glGetPerfMonitorCounterDataAMD(int monitor, int pname, int[] data, int[] bytesWritten) { long __functionAddress = GLES.getCapabilities().glGetPerfMonitorCounterDataAMD; if ( CHECKS ) { checkFunctionAddress(__functionAddress); checkBufferSafe(bytesWritten, 1); } callPPV(__functionAddress, monitor, pname, data.length, data, bytesWritten); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy