Sign in to follow this  
Followers 0
sepul

Problem with Sampling TextureArray (Depth format)

0 posts in this topic

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 

 

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0