Texture buffers with bigger pixels

Started by
0 comments, last by Nik02 11 years, 4 months ago
I am doing something that will be faster if i could have a texture were each pixel has 6 variables, why there aren't still texture formats with more than 4 variables?
Advertisement
The samplers in the hardware generally have a fixed list of formats they can interpret from the GPU cache and/or memory. This list corresponds to the texture formats supported by a given hardware piece.

4 channels is a practical upper limit for the fixed formats, since fetching RGBA colors is overwhelmingly the most common usage scenario for the samplers.

SM4 and up (or D3D10 and up) support integer instructions, so you could easily do custom packing/unpacking of 128-bit texels in pixel shader to introduce your own pixel format. You'd need to do your own filtering if you require it, as the filtering of GPU-supported formats is the responsibility of the samplers.

Niko Suni

This topic is closed to new replies.

Advertisement