Search Unity

Question No SRP present, no compute shader support, or running with -nographics. Hybrid Renderer disabled

Discussion in 'Editor & General Support' started by Wrymnn, Sep 11, 2022.

  1. Wrymnn

    Wrymnn

    Joined:
    Sep 24, 2014
    Posts:
    384
    Trying to use Unity ECS DOTS, but getting following message in a console:

    "No SRP present, no compute shader support, or running with -nographics. Hybrid Renderer disabled"

    When creating an entity with mesh from the code, I see no cube. But the Entity with valid components is present:

    upload_2022-9-12_13-48-39.png

    Code (CSharp):
    1.  
    2. public class Creator : MonoBehaviour
    3. {
    4.     public Mesh mesh;
    5.     public Material material;
    6.    
    7.     private void Start()
    8.     {
    9.         EntityManager entityManager = World.DefaultGameObjectInjectionWorld.EntityManager;
    10.         EntityArchetype archetype = entityManager.CreateArchetype(
    11.             typeof(Transform),
    12.             typeof(Rotation),
    13.             typeof(RenderMesh),
    14.             typeof(RenderBounds),
    15.             typeof(LocalToWorld)
    16.         );
    17.         Entity entity = entityManager.CreateEntity(archetype);
    18.         entityManager.AddComponentData(entity, new Translation()
    19.         {
    20.             Value = new float3(2, 0, 4)
    21.         });
    22.         entityManager.SetSharedComponentData(entity, new RenderMesh()
    23.         {
    24.             mesh = mesh,
    25.             material = material
    26.         });
    27.     }
    28. }
    29.  
    Yes mesh and material variables are set correctly.

    I also tried to create a simple scriptable render pipeline asset and assign it in Graphics settings via this tutorial, but no help. Any idea what could be the issue?
     

    Attached Files:

    Last edited: Sep 12, 2022
  2. sammtan

    sammtan

    Joined:
    Jul 2, 2019
    Posts:
    14
    im here to help. i feel bad for you, seems like none of unity helper will come into this post to explain about hybrid renderer. what a shame.

    have you installed some kind of rendering pipelines? like URP, HDRP, or somewhat. if there is no SRP, then you won't be able to use hybrid renderer. Hybrid works with DOTS for SRP, which is why Built-in RP is not supported.