List of usage examples for org.lwjgl.opengl ARBBindlessTexture glMakeImageHandleNonResidentARB
public static native void glMakeImageHandleNonResidentARB(@NativeType("GLuint64") long handle);
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(); }