PDA

View Full Version : HLSL in Pascal



cronodragon
16-10-2005, 07:53 PM
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? 8)

Clootie
17-10-2005, 07:24 PM
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!

Sascha Willems
17-10-2005, 07:56 PM
The one on delphigl.com was written by Lars Middendorf and is called fxPascal (http://sourceforge.net/projects/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.