• Advertisement
Sign in to follow this  

Problem with Sampling TextureArray (Depth format)

This topic is 1784 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm rather a GL newbie, trying to port my d3d code to GL, but so far my experiment was far from pleasant..

My new problem is accessing depth (internal format) texture array in the shader and writing it to some output.

My hardware is GL4.2 (AMD 5750) 

And here is the screenshot of the whole thing in PerfStudio frame debugger:

 

texarr-shot1.png

 

As you can see, in the fragment shader, FS[0] (the only texture binded) is is GL_DEPTH_COMPONENT binded to sampler2DArray, I just fetch the first array slice and put it in first RT (RT[0]) but the result is always zero. I even tried fetching texture with texelFetch and the result is the same. I also included the shot of the source texture array info. the shots are pretty self explanatory.

 

texarr-shot2.png

 

What am I doing wrong here ?

thx 

 

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement