PDA

View Full Version : Bindless 3D texture with sampler object



ssteinberg
10-28-2015, 02:37 AM
Hi,
Bindless textures worked perfectly, until recently when I had use for a bindless 3D texture. glGetTextureHandleARB works, while glGetTextureSamplerHandleARB gives me an "GL_INVALID_OPERATION: Not a valid texture".
Same sampler with a bindless 2D texture works. Any ideas?

Thanks

Alfonse Reinheart
10-28-2015, 05:40 AM
Maybe the texture object is invalid, like the error message says. Or maybe one of the settings for the sampler object is not appropriate for 3D textures.

ssteinberg
10-28-2015, 06:34 AM
Well, it works with glGetTextureHandleARB so clearly the texture is fine. Maybe the sampler is at fault. I specify linear interpolation, repeat wrapping over s and clamping over r and t.