MariFX Shader Suite

Re: MariFX Shader Suite

Postby Rachael » Tue Jul 02, 2019 4:56 am

Marisa Kirisame wrote:Why would each vendor have different glsl syntax?

They all write their own compilers and they want to be like Microsoft, inventing their own standards as they go along.
User avatar
Rachael
Webmaster
 
Joined: 13 Jan 2004
Location: This post
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: MariFX Shader Suite

Postby Graf Zahl » Tue Jul 02, 2019 5:23 am

The main problem is incompetence. The standard was poorly defined so everybody did the needed extensions their own way.
Fortunately for Vulkan saner heads prevailed and the defined an assembly-like representation with a reference compiler. In general, when compiling shaders, it is strongly recommended to test them with the Vulkan backend. If that works, it should work everywhere, if that doesn't work on some OpenGL driver it's a compiler bug that needs to be reported.

Regarding Microsoft, the biggest problem they were facing over the years was that they needed compiler extensions to handle native Windows features, like structured exception handling. Good luck getting that into a compiler like GCC or Clang. Combine such a problem with a CEO like Steve Ballmer and the result is inevitably problematic. Their more recent compilers are magnitudes better in terms of compliance than what they had been producing in the two decades before.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: MariFX Shader Suite

Postby Remaker » Wed Jul 03, 2019 3:20 pm

Code: Select allExpand view
Execution could not continue.
Compile Shader 'shaders/glsl/mfx_borderblur.fp':
ERROR: 0:7: ']' : syntax error: syntax error


I can't tell for sure if there's more...
User avatar
Remaker
OMG A BARREL WATCH YOUR SHOTS
 
Joined: 01 Apr 2017
Location: Burger land.
Operating System: Mac OS X 10.8 or later
Graphics Processor: Intel (Modern GZDoom)

Re: MariFX Shader Suite

Postby Marisa Kirisame » Thu Jul 04, 2019 2:20 pm

Looks like a typo, I patched it up.
User avatar
Marisa Kirisame
ZScript Crimester
 
 
 
Joined: 08 Feb 2008
Location: Vigo, Galicia
Discord: 霧雨魔理沙#1666
Twitch ID: magusmarisa
Github ID: OrdinaryMagician
Operating System: Other Linux 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: MariFX Shader Suite

Postby Remaker » Thu Jul 04, 2019 3:22 pm

Marisa Kirisame wrote:Looks like a typo, I patched it up.

Thank you so much, Marisa! It worked! :thumb:
User avatar
Remaker
OMG A BARREL WATCH YOUR SHOTS
 
Joined: 01 Apr 2017
Location: Burger land.
Operating System: Mac OS X 10.8 or later
Graphics Processor: Intel (Modern GZDoom)

Previous

Return to Shaders

Who is online

Users browsing this forum: No registered users and 0 guests