PrevUpHomeNext

Texture handle

#include <oglplus/texture_handle.hpp>

#if GL_ARB_bindless_texture

class TextureHandle
{
public:
	TextureHandle(TextureName texture); 1

	TextureHandle(TextureName texture, SamplerName sampler); 2

	void MakeResident(void); 3

	void MakeNonResident(void); 4

	Boolean IsResident(void) const; 5
};

GLuint64 GetGLHandle(TextureHandle th)
noexcept; 6

class ImageHandle
{
public:
	ImageHandle(
		TextureName texture,
		GLint level,
		Boolean layered,
		GLint layer,
		ImageUnitFormat format
	); 7

	void MakeResident(void); 8

	void MakeNonResident(void); 9

	Boolean IsResident(void) const; 10
};

GLuint64 GetGLHandle(ImageHandle ih)
noexcept; 11

#endif

1

Constructs a texture handle from a texture. See glGetTextureHandleARB.

2

Constructs a texture handle from a texture and a sampler. See glGetTextureSamplerHandleARB.

3

Make the texture resident. See glMakeTextureHandleResidentARB.

4

Make the texture non-resident. See glMakeTextureHandleNonResidentARB.

5

Returns true if the texture is resident. See glIsTextureHandleResidentARB.

6

Returns the GL handle value from a TextureHandle.

7

Construction from a texture and additional parameters. See glGetImageHandleARB.

8

Make the image resident. See glMakeImageHandleResidentARB.

9

Make the image non-resident. See glMakeImageHandleNonResidentARB.

10

Returns true if the image is resident. See glIsImageHandleResidentARB.

11

Returns the GL handle value from an ImageHandle.


PrevUpHomeNext