Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


Texture buffers with bigger pixels


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 lomateron   Members   -  Reputation: 363

Like
0Likes
Like

Posted 27 November 2012 - 04:32 PM

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?

Sponsor:

#2 Nik02   Crossbones+   -  Reputation: 2925

Like
3Likes
Like

Posted 28 November 2012 - 05:16 AM

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





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS