Example usage for org.lwjgl.opengl ARBBindlessTexture glMakeImageHandleNonResidentARB

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

Introduction

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

Prototype

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

Source Link

Document

Makes an image handle inaccessible to shaders.

Usage

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

License:Open Source License

/**
 * Recreate the photon map texture./*from   w  w  w  . ja  v  a  2s  .c o m*/
 */
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();
}