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