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$
$\endgroup$
3
-
$\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$– ThomasCommented 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$– Nicol BolasCommented Mar 16, 2022 at 15:45
-
$\begingroup$ Between multiple separate programs $\endgroup$– RavindraCommented Mar 20, 2022 at 6:49
Add a comment
|