• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Formatting integer value
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Formatting integer value


  • Subject: Re: Formatting integer value
  • From: Guy English <email@hidden>
  • Date: Tue, 15 Feb 2005 10:50:59 -0500

On Tue, 15 Feb 2005 13:42:16 +0000, Andy Armstrong <email@hidden> wrote:
> What next? "I want to multiply two numbers together and maybe add a
> third to them - can anyone tell me if there's an API for this kind of
> thing?"
ARB_vertex_program can do this for you. See the MAD opcode. Batch your
integers into a vertex stream and the GPU will multiply and add for
you. Getting the results is a pain in the ass: you'll likely need a
matching fragment program and call go glReadPixels. Beware of
precision problems though. But don't lose hope Andy, it can be done,
albeit in a slightly convoluted manner.

Guy

(It may be possible that the integer unit on the PPC can do something
similar but it's as deep dark pool to me)
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Formatting integer value
      • From: Andy Armstrong <email@hidden>
References: 
 >Formatting integer value (From: RenĂ© Korthaus <email@hidden>)
 >Re: Formatting integer value (From: Charlton Wilbur <email@hidden>)
 >Re: Formatting integer value (From: Andreas Mayer <email@hidden>)
 >Re: Formatting integer value (From: Andy Armstrong <email@hidden>)

  • Prev by Date: Re: OT: "metric" time
  • Next by Date: Re: Formatting integer value
  • Previous by thread: Re: Formatting integer value
  • Next by thread: Re: Formatting integer value
  • Index(es):
    • Date
    • Thread