Search Unity

Question Custom dynamic shader loading at runtime DX12

Discussion in 'Universal Render Pipeline' started by YourWaifu, Jul 23, 2022.

  1. YourWaifu

    YourWaifu

    Joined:
    Oct 4, 2015
    Posts:
    45
    I need to load a compiled shader (for example, compiled by unityshadercompiler tool) in runtime for DX12 (or maybe vulkan)
    Since the option of loading via new Material(shaderCode) is deprecated, so is how to do it now?

    Do not suggest AssetBundle variant
    Native Unity Render Plugin, the documentation says it is only suitable for DX11