How do I write a code to facilitate common shared memory for communication between multiple shaders as well as processes within them in python?

  • $\begingroup$ You can use "Shader Storage Buffer Object" (SSBO). This is GPU memory, which can be accessed by any shader. You can load this buffer to CPU as well (glGetBufferSubData()). $\endgroup$
    – Thomas
    Mar 16, 2022 at 7:53
  • 1
    $\begingroup$ When you say "between multiple shaders", do you mean between multiple separate programs or multiple invocations in the same dispatch call? $\endgroup$ Mar 16, 2022 at 15:45
  • $\begingroup$ Between multiple separate programs $\endgroup$
    – Ravindra
    Mar 20, 2022 at 6:49


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.