Geeks3D Forums

GeeXLab => GeeXLab - english forum => Topic started by: gtx660 on October 01, 2018, 01:48:05 PM

Title: NVIDIA Bindless Textures Demo
Post by: gtx660 on October 01, 2018, 01:48:05 PM
https://www.geeks3d.com/20120511/nvidia-gtx-680-opengl-bindless-textures-demo/

https://www.geeks3d.com/downloads/201205/GXL_NV_Bindless_Texture_Demo.zip

I would like to translate code from GXL_NV_Bindless_Texture_Demo.xml to standard C/C++ language.

For example instructions like HYP_UniformBuffer.SetArrayElement_u64_BindlessTexture_NV, and their equivalent in GLEW.

Could someone post some tips ?


Title: Re: NVIDIA Bindless Textures Demo
Post by: JeGX on October 01, 2018, 04:53:59 PM
HYP_UniformBuffer.SetArrayElement_u64_BindlessTexture_NV  (really awful function name!!!) has no direct equivalent in OpenGL. Actually the code creates an uniform buffer (GL_UNIFORM_BUFFER) with num_textures entries and set entries with NVIDIA texture handles (which are uint64 or ui64).  Look at the GL_NV_bindless_texture (https://www.khronos.org/registry/OpenGL/extensions/NV/NV_bindless_texture.txt) extension for more details. It's a very old demo and I no longer have all details in mind...