• Advertisement

Archived

This topic is now archived and is closed to further replies.

Pixel/Vertex Shader Programs

This topic is 5065 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

  • Advertisement