Re: Formatting integer value
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