Jump to content
  • Advertisement
Sign in to follow this  
rldivide

OpenGL can you intercept shaders from outside ?

This topic is 3493 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

Can you intercept shaders from outside a program, using some analysis tool ? If so, what tool, and what can you see: HLSL code, compiled code ? Opposite question: is there a way to protect your HLSL code, so no-one can see what happen on the GPU ? Same question for OpenGL... Thanks !

Share this post


Link to post
Share on other sites
Advertisement
Write a proxy d3d9.dll (Or whatever version). Then just grab the requests to upload the shader to the GPU. Same goes for OpenGL.

That'll give you the asm assembly, but not HLSL. If the app uses HLSL, then you could intercept calls to D3DXCompileShader*() and read the HLSL code there.

You can protect your HLSL code by just pre-compiling it, but you can't prevent your asm shaders being read - after all, the GPU has to read them, it's the same as someone disassembling an exe file.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!