Does FMT_R32 saves more memory than FMT_R32G32B32A32?

Started by
0 comments, last by ET3D 16 years, 11 months ago
Hi, GRAM is limited, to save the space, I used as few component as possible for the texture formats, e.g., use R32 instead of R32G32B32A32. But in mapped/locked data of the texture, I see more paddings for R32 than R32G32B32A32. paddings are not able to be spared for other resources, right? Similarly, I don't know if R32G32B32 really saves more that R32G32B32A32. Thank you!
Advertisement
R32 should take <= memory than R32G32B32A32. In some cases it will take the same. For example, if the texture is smaller than a memory page (which I think is card dependent), then it will take the same regardless of format. If it rounds up to, say, 16 byte units, then it might need to do that for R32 but not for R32G32B32A32.

Can't say about R32G32B32. There's a possibility that it won't take any less memory than R32G32B32A32 or work more slowly if it does. 3 is typically an uncomfortable number of components for the hardware (same as vertex structures working slightly faster for powers of 2 bytes than other values). But that's just a guess.

This topic is closed to new replies.

Advertisement