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. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

Feature Request URP shaders support for DrawMeshInstancedIndirect API

Discussion in 'Universal Render Pipeline' started by Opeth001, Jul 11, 2021.

  1. Opeth001


    Jan 28, 2017
    Hello Everyone,

    I am creating my own hybrid rendering package based on DOTs + DrawMeshInstancedIndirect API.
    I have a very basic knowledge about shaders and hlsl.

    I am trying to:

    1) create a hybrid renderer that generically overrides materials properties and supports Vulkan/ OpenGLES3.0+ (maximum 4 Compute buffers per stage). (DONE!)

    2) make it support whatever is supported by the URP - SimpleLit Shader. (partially done)
    * the problem i am facing now is, how can i apply overriden properties values ( like BakedLightmaps, LightProbes ..) that ive got from passed ComputeBuffers to the custom simpleLit shader ?

    1) is there a workaround to do it ?
    2) is Unity team planning to support DrawMeshInstancedIndirect API in URP shaders and ShaderGraph ?