Search Unity

Use precompiled HLSL shaders?

Discussion in 'Shaders' started by techmage, Dec 6, 2020.

  1. techmage

    techmage

    Joined:
    Oct 31, 2009
    Posts:
    2,133
    I am shipping a project for which I am trying to find a way to make it difficult to see the code in one shader.

    This project is Windows and D3D11 only. So the shader can be restricted to only HLSL.

    Was wondering, is there a way for me to do something like, precompile the HLSL shader to it's binary format, then use that in a Unity .shader file?