Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Bug Custom HLSL Block(dx12,unity 2023.2.0a20)

Discussion in '2023.2 Beta' started by vx4, Jul 3, 2023.

  1. vx4

    vx4

    Joined:
    Dec 11, 2012
    Posts:
    184
    i not able to use RaytracingAccelerationStructure inside Custom HLSL Block.it give an error

    error in '[New VFX] [Simple Loop] Update Particles': unrecognized identifier 'RaytracingAccelerationStructure' at kernel CSMain at node.hlsl(3) (on d3d11)

    here my source file for HLSL block
    Code (CSharp):
    1. #include "UnityRayQuery.cginc"
    2.  
    3. //globe property
    4. //shader.SetGlobalRayTracingAccelerationStructure
    5.  
    6. RaytracingAccelerationStructure g_AccelStruct;
    7. float Distance(in float3 a, in float3 b)
    8. {
    9.     return distance(a, b);
    10. }

    vfx graph
    Custom HLSL Block.png
     
  2. INedelcu

    INedelcu

    Unity Technologies

    Joined:
    Jul 14, 2015
    Posts:
    190
    vx4 likes this.
  3. vx4

    vx4

    Joined:
    Dec 11, 2012
    Posts:
    184
    Last edited: Jul 6, 2023