GX_GetTexBufferSize

Post Reply
tom34
Posts: 8
Joined: Wed Jul 15, 2009 9:11 am

GX_GetTexBufferSize

Post by tom34 » Sun Jul 26, 2009 6:04 pm

Hello,

I'm not sure it's a bug, but :

GX_GetTexBufferSize(512, 512, GX_TF_RGBA8, GX_TRUE, 4)
returns 1392640 which equals : (512x512 + 256x256 + 128x128 + 64x64) * 4

Isn't it supposed to add 32x32 too ? The first LOD is 0, and the max LOD is 4, so we should have 5 LODs, shouldn't we?

Thanks.

tom34
Posts: 8
Joined: Wed Jul 15, 2009 9:11 am

Re: GX_GetTexBufferSize

Post by tom34 » Mon Jul 27, 2009 3:28 pm

Hello again,
I've tried to put a different pic in LOD 4 (32x32), and used GX_InitTexObjLOD to set max LOD 4.0.
It displayed my 32x32 pic.
So i'd say yes, it is a bug in GX_GetTexBufferSize, it should have summed 5 LOD from 512x512 to 32x32.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests