Page 1 of 1

GX_GetTexBufferSize

Posted: Sun Jul 26, 2009 6:04 pm
by tom34
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.

Re: GX_GetTexBufferSize

Posted: Mon Jul 27, 2009 3:28 pm
by tom34
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.