cuda layered texture problems

B5262118b588a5a420230bfbef4a2cdf
0
Stainless 151 Dec 06, 2013 at 09:08

I am using a 2D layered texture with six layers

I load in six bitmaps and copy them to a single array in memory, then upload that array to a cuda 3d array which is bound to a layered texture

When I use this in my code tex2Dlayered returns the correct value for layers 4 and 5 but garbage for layers 0-3

Has anyone come across anything like this before?

I’ve searched all over the web and cannot see anything similar

1 Reply

Please log in or register to post a reply.

B5262118b588a5a420230bfbef4a2cdf
1
Stainless 151 Dec 06, 2013 at 10:20

Ok I have fixed it.

Was my bad, the textures I was loading were 32 bit and I was expecting 24

stainless smacks himself in the head