Remember me

Lost Password?

Register now!
Who's Online
55 user(s) are online (44 user(s) are browsing Forums)

Members: 0
Guests: 55

Support us!
Recent OS4 Files
Report message:*

Re: SDL2

Subject: Re: SDL2
by Raziel on 2019/3/23 21:24:58


I don't understand that whole #version tag thing.
Shaders are not .c, .cpp if i'm not mistaken?

Could i probably add an ifdef __amigaos4__ to add that tag (to not interfere with other plattforms)?
As i said, i don't like local workarounds, i'd rather have them in the original code, so that they don't bite me later on.

What does that tag do?
Tell the program to compile the shader with a version below 1.30 (i.e.) on runtime?
And if so, what would happen if there are functions inside the shader that are 1.31 and above? Would it still work or refuse to or even crash or send all the butterflies to jupiter?

Sorry, but i'm a noob when it comes to coding but with shaders i know exactly as much as i know about brain surgery...
Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project