Pixel/Vertex Shader Programs

Started by
3 comments, last by Wintermute2004 19 years, 10 months ago
Hi everyone, I have a quick question about Shaders. While in DirectX you can precompile a shader into pure bytecode, I have only found glProgramStringARB where you have to supply the ascii cleartext Version of the Shader. Is there a command to supply the precompiled ByteCode to OpenGL ? Thx, Wintermute
Advertisement
quote:Original post by Wintermute2004
Is there a command to supply the precompiled ByteCode to OpenGL?

No. (It might be added in future by some extension but I see no reason for it.)


You should never let your fears become the boundaries of your dreams.
You should never let your fears become the boundaries of your dreams.
I confirm that. The reasoning is that (1) it makes harder for the compiler to optimize and (2) it''s all but portable.
All in all, I think they could actually do like in EXT_vertex_shader in which everything is done using symbolic constants.
Probably there''s not enough request for that.

Previously "Krohm"

So, can I then use generated code from, for example, Glslang and upload it into a DirectX Driver ? Or are they all too different ?

Thx,
Wintermute
quote:Original post by Wintermute2004
So, can I then use generated code from, for example, Glslang and upload it into a DirectX Driver ? Or are they all too different ?

There is no way you can do that.


You should never let your fears become the boundaries of your dreams.
You should never let your fears become the boundaries of your dreams.

This topic is closed to new replies.

Advertisement