[osg-users] Pragmatic shader - a new #pragma directive proposition

Robert Milharcic robert.milharcic at ib-caddy.si
Thu Jan 14 06:56:38 PST 2016


On 14.1.2016 15:20, Robert Osfield wrote:
> Hi Robert M. et. al.
>
> I don't have any answers/recommendations at this stage but one first
> reading the proposal has relative to traditional C/C++ features seems
> a bit out of place.
>
> #pragma(tic) shader composition currently have a very close mapping to
> C macro's, my hope has always been that because of this close mapping
> it'd be quick to pick up and use - this is one of the key reasons why
> I went for this approach to shader composition.
>
> This makes me wonder if C/C++ features itself might be able to inspire
> any proposed extensions to #pragma(tic) shader composition.
>
> Robert.
Hi Robert O.

If I'm not mistaken, the #pragmadirective is used by the C/C++ preprocessor for providing additional information, beyond what the language itself can offer. I thought this was the main inspiration for #pragma(tic) shader composition. Anyway, based on feedback I'm now convinced that my proposition isn't that useful as I thought :)  and on that note, I rest my case.

Cheers
Robert Milharcic
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160114/065eb68b/attachment.htm>


More information about the osg-users mailing list