Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question How to use ShaderDebugPrint function in URP ?

Discussion in 'Shaders' started by eczb3, Oct 9, 2023.

  1. eczb3

    eczb3

    Joined:
    Apr 26, 2023
    Posts:
    1
    There is a ShaderDebugPrint function
    In Packages/com.unity.render-pipelines.core/ShaderLibrary/ShaderDebugPrint.hlsl.
    In the hlsl file: it notes that
    NOTE: For URP - set ENABLE_SHADER_DEBUG_PRINT in the project to enable CPU-side integration.
    How to enable ENABLE_SHADER_DEBUG_PRINT in the project? Thank you.
    upload_2023-10-9_13-22-18.png