Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question How do you read an append buffer in compute shader?

Discussion in 'Shaders' started by JSmithIR, Dec 3, 2023.

  1. JSmithIR

    JSmithIR

    Joined:
    Apr 13, 2023
    Posts:
    111
    I want to have two compute shaders: the first one appends to an append buffer. Then I want another compute shader to immediately read from it. I dont think the same compute shader that appends can also read from it.

    How do I set this up? I have seen fragment shaders read from append buffer using DrawProceduralIndirect, I just have not seen a compute shader access an append buffer before.

    can anyone point me to the proper setup, if this is possible? Tha k you!