Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pbuffer internalFormat




Kenneth Dyke wrote:

The internal format in this case really just means how the pbuffer's data will be treated with regard to the texture environment. I.e., will the data be treated as having alpha or not.

The real data format of the pbuffer will be inherited from the pixel format of the context(s) attaching to it. So if you attach a context with a pixel format that is set up for ARGB 1555, that's what the data format of the pbuffer will be.

-Ken

So, after looking at the pixel format attribute documentaion, I'm a little confused. Under CGL it appears that I can only specify a single color size via kCGLPFAColorSize (under GLX you can specify a size for each channel, I believe). What I if I wanted a RGB format of <8,8,0> (no blue channel) or <16,0,0> (only a half float red channel). I'm interested in doing some gpgpu (http://gpgpu.org/) work with CGL, and there are times are you only want a single channel (or even a two channel) pbuffer.

If I specify a colorsize of 16 couldn't it mean <R,G,B> = <5,6,5> or <8,8,0> or <16,0,0>. How can you disambiguate between the different possibilities, or is it not possible?

thanks!
-j
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden

This email sent to email@hidden
References: 
 >pbuffer internalFormat (From: Justin Hensley <email@hidden>)
 >Re: pbuffer internalFormat (From: Kenneth Dyke <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.