Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


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: 2875

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