I have images of arbitrary size and I need to calculate the exact amount of VRAM they will occupy when loaded. My tests using AvailVidMem() show that it's not simply a case of "width*height*bitdepth".
I thought that maybe the image width/height were being taken to the nearest ^2 for some reason (like textures) but this doesn't seem to be the case. However, I'm pretty sure there's some ^2 related sizing going on - I just can't seem to nail it down.
Ideas, anyone?
P.S. For reasons I won't bore you with, I can't do the "check VRAM, load image, check VRAM again" method to find the size.
I thought that maybe the image width/height were being taken to the nearest ^2 for some reason (like textures) but this doesn't seem to be the case. However, I'm pretty sure there's some ^2 related sizing going on - I just can't seem to nail it down.
Ideas, anyone?
P.S. For reasons I won't bore you with, I can't do the "check VRAM, load image, check VRAM again" method to find the size.