Example usage for org.lwjgl.opengl ARBBindlessTexture glMakeTextureHandleNonResidentARB

List of usage examples for org.lwjgl.opengl ARBBindlessTexture glMakeTextureHandleNonResidentARB

Introduction

In this page you can find the example usage for org.lwjgl.opengl ARBBindlessTexture glMakeTextureHandleNonResidentARB.

Prototype

public static native void glMakeTextureHandleNonResidentARB(@NativeType("GLuint64") long handle);

Source Link

Document

Makes a texture handle inaccessible to shaders.

Usage

From source file:org.lwjgl.demo.opengl.raytracing.PhotonMappingBindlessDemo.java

License:Open Source License

/**
 * Recreate the photon map texture.// w  w w . ja va 2  s . c om
 */
private void recreatePhotonMapTexture() {
    for (int i = 0; i < photonMapTextures.length; i++) {
        TextureInfo info = photonMapTextures[i];
        if (info != null) {
            ARBBindlessTexture.glMakeImageHandleNonResidentARB(info.bindlessImageHandle);
            ARBBindlessTexture.glMakeTextureHandleNonResidentARB(info.bindlessTextureAndSamplerHandle);
            glDeleteTextures(info.openGlHandle);
        }
    }
    createPhotonMapTextures();
}