Is there any HLSL in Pascal? I want to create a compiler or translator from Pascal to Shader Assembly. Now I understand Pixel Shaders, I would start with them. Any suggestion for the new compiler/translator?
Is there any HLSL in Pascal? I want to create a compiler or translator from Pascal to Shader Assembly. Now I understand Pixel Shaders, I would start with them. Any suggestion for the new compiler/translator?
IIRC there is/was one on DelphiGL.de.
But I would rather warn: writing compiler is not an easy task. Even more writing optimizing compiler (without knoweledge of GPU's internals) even more hard task!
There are only 10 types of people in this world; those who understand binary and those who don't.
The one on delphigl.com was written by Lars Middendorf and is called fxPascal. Basically it's a high level language for writing OpenGL shaders in Pascal. It then translates them to GL_ARB VPs and FPs (assembly). But since there is glsl now, it's no longer developed.
Bookmarks