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

org.lwjgl.opengl.NVShaderBufferLoad Maven / Gradle / Ivy

There is a newer version: 2.9.3
Show newest version
/* MACHINE GENERATED FILE, DO NOT EDIT */

package org.lwjgl.opengl;

import org.lwjgl.*;
import java.nio.*;

public final class NVShaderBufferLoad {

	/**
	 *  Accepted by the <pname> parameter of GetBufferParameterui64vNV,
	 *  GetNamedBufferParameterui64vNV:
	 */
	public static final int GL_BUFFER_GPU_ADDRESS_NV = 0x8F1D;

	/**
	 * Returned by the <type> parameter of GetActiveUniform: 
	 */
	public static final int GL_GPU_ADDRESS_NV = 0x8F34;

	/**
	 * Accepted by the <value> parameter of GetIntegerui64vNV: 
	 */
	public static final int GL_MAX_SHADER_BUFFER_ADDRESS_NV = 0x8F35;

	private NVShaderBufferLoad() {}

	public static void glMakeBufferResidentNV(int target, int access) {
		ContextCapabilities caps = GLContext.getCapabilities();
		long function_pointer = caps.glMakeBufferResidentNV;
		BufferChecks.checkFunctionAddress(function_pointer);
		nglMakeBufferResidentNV(target, access, function_pointer);
	}
	static native void nglMakeBufferResidentNV(int target, int access, long function_pointer);

	public static void glMakeBufferNonResidentNV(int target) {
		ContextCapabilities caps = GLContext.getCapabilities();
		long function_pointer = caps.glMakeBufferNonResidentNV;
		BufferChecks.checkFunctionAddress(function_pointer);
		nglMakeBufferNonResidentNV(target, function_pointer);
	}
	static native void nglMakeBufferNonResidentNV(int target, long function_pointer);

	public static boolean glIsBufferResidentNV(int target) {
		ContextCapabilities caps = GLContext.getCapabilities();
		long function_pointer = caps.glIsBufferResidentNV;
		BufferChecks.checkFunctionAddress(function_pointer);
		boolean __result = nglIsBufferResidentNV(target, function_pointer);
		return __result;
	}
	static native boolean nglIsBufferResidentNV(int target, long function_pointer);

	public static void glMakeNamedBufferResidentNV(int buffer, int access) {
		ContextCapabilities caps = GLContext.getCapabilities();
		long function_pointer = caps.glMakeNamedBufferResidentNV;
		BufferChecks.checkFunctionAddress(function_pointer);
		nglMakeNamedBufferResidentNV(buffer, access, function_pointer);
	}
	static native void nglMakeNamedBufferResidentNV(int buffer, int access, long function_pointer);

	public static void glMakeNamedBufferNonResidentNV(int buffer) {
		ContextCapabilities caps = GLContext.getCapabilities();
		long function_pointer = caps.glMakeNamedBufferNonResidentNV;
		BufferChecks.checkFunctionAddress(function_pointer);
		nglMakeNamedBufferNonResidentNV(buffer, function_pointer);
	}
	static native void nglMakeNamedBufferNonResidentNV(int buffer, long function_pointer);

	public static boolean glIsNamedBufferResidentNV(int buffer) {
		ContextCapabilities caps = GLContext.getCapabilities();
		long function_pointer = caps.glIsNamedBufferResidentNV;
		BufferChecks.checkFunctionAddress(function_pointer);
		boolean __result = nglIsNamedBufferResidentNV(buffer, function_pointer);
		return __result;
	}
	static native boolean nglIsNamedBufferResidentNV(int buffer, long function_pointer);

	public static void glGetBufferParameteruNV(int target, int pname, LongBuffer params) {
		ContextCapabilities caps = GLContext.getCapabilities();
		long function_pointer = caps.glGetBufferParameterui64vNV;
		BufferChecks.checkFunctionAddress(function_pointer);
		BufferChecks.checkBuffer(params, 1);
		nglGetBufferParameterui64vNV(target, pname, MemoryUtil.getAddress(params), function_pointer);
	}
	static native void nglGetBufferParameterui64vNV(int target, int pname, long params, long function_pointer);

	/** Overloads glGetBufferParameterui64vNV. */
	public static long glGetBufferParameteruNV(int target, int pname) {
		ContextCapabilities caps = GLContext.getCapabilities();
		long function_pointer = caps.glGetBufferParameterui64vNV;
		BufferChecks.checkFunctionAddress(function_pointer);
		LongBuffer params = APIUtil.getBufferLong(caps);
		nglGetBufferParameterui64vNV(target, pname, MemoryUtil.getAddress(params), function_pointer);
		return params.get(0);
	}

	public static void glGetNamedBufferParameteruNV(int buffer, int pname, LongBuffer params) {
		ContextCapabilities caps = GLContext.getCapabilities();
		long function_pointer = caps.glGetNamedBufferParameterui64vNV;
		BufferChecks.checkFunctionAddress(function_pointer);
		BufferChecks.checkBuffer(params, 1);
		nglGetNamedBufferParameterui64vNV(buffer, pname, MemoryUtil.getAddress(params), function_pointer);
	}
	static native void nglGetNamedBufferParameterui64vNV(int buffer, int pname, long params, long function_pointer);

	/** Overloads glGetNamedBufferParameterui64vNV. */
	public static long glGetNamedBufferParameteruNV(int buffer, int pname) {
		ContextCapabilities caps = GLContext.getCapabilities();
		long function_pointer = caps.glGetNamedBufferParameterui64vNV;
		BufferChecks.checkFunctionAddress(function_pointer);
		LongBuffer params = APIUtil.getBufferLong(caps);
		nglGetNamedBufferParameterui64vNV(buffer, pname, MemoryUtil.getAddress(params), function_pointer);
		return params.get(0);
	}

	public static void glGetIntegeruNV(int value, LongBuffer result) {
		ContextCapabilities caps = GLContext.getCapabilities();
		long function_pointer = caps.glGetIntegerui64vNV;
		BufferChecks.checkFunctionAddress(function_pointer);
		BufferChecks.checkBuffer(result, 1);
		nglGetIntegerui64vNV(value, MemoryUtil.getAddress(result), function_pointer);
	}
	static native void nglGetIntegerui64vNV(int value, long result, long function_pointer);

	/** Overloads glGetIntegerui64vNV. */
	public static long glGetIntegeruNV(int value) {
		ContextCapabilities caps = GLContext.getCapabilities();
		long function_pointer = caps.glGetIntegerui64vNV;
		BufferChecks.checkFunctionAddress(function_pointer);
		LongBuffer result = APIUtil.getBufferLong(caps);
		nglGetIntegerui64vNV(value, MemoryUtil.getAddress(result), function_pointer);
		return result.get(0);
	}

	public static void glUniformui64NV(int location, long value) {
		ContextCapabilities caps = GLContext.getCapabilities();
		long function_pointer = caps.glUniformui64NV;
		BufferChecks.checkFunctionAddress(function_pointer);
		nglUniformui64NV(location, value, function_pointer);
	}
	static native void nglUniformui64NV(int location, long value, long function_pointer);

	public static void glUniformuNV(int location, LongBuffer value) {
		ContextCapabilities caps = GLContext.getCapabilities();
		long function_pointer = caps.glUniformui64vNV;
		BufferChecks.checkFunctionAddress(function_pointer);
		BufferChecks.checkDirect(value);
		nglUniformui64vNV(location, value.remaining(), MemoryUtil.getAddress(value), function_pointer);
	}
	static native void nglUniformui64vNV(int location, int value_count, long value, long function_pointer);

	public static void glGetUniformuNV(int program, int location, LongBuffer params) {
		NVGpuShader5.glGetUniformuNV(program, location, params);
	}

	public static void glProgramUniformui64NV(int program, int location, long value) {
		ContextCapabilities caps = GLContext.getCapabilities();
		long function_pointer = caps.glProgramUniformui64NV;
		BufferChecks.checkFunctionAddress(function_pointer);
		nglProgramUniformui64NV(program, location, value, function_pointer);
	}
	static native void nglProgramUniformui64NV(int program, int location, long value, long function_pointer);

	public static void glProgramUniformuNV(int program, int location, LongBuffer value) {
		ContextCapabilities caps = GLContext.getCapabilities();
		long function_pointer = caps.glProgramUniformui64vNV;
		BufferChecks.checkFunctionAddress(function_pointer);
		BufferChecks.checkDirect(value);
		nglProgramUniformui64vNV(program, location, value.remaining(), MemoryUtil.getAddress(value), function_pointer);
	}
	static native void nglProgramUniformui64vNV(int program, int location, int value_count, long value, long function_pointer);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy