- Joined
- Jan 2, 2020
- Messages
- 1,414
Toying around with shaders and Mojo2 graphics to see if I can learn something and I found something interesting and would like to ask about some details. I basically changed the shader example a bit and then mojo2 graphics, to look if I could understand anything.
I'basically come up with the shortest "flush" code that could restore the graphics for a managed image.
You only need to see one line for this, it's line 2935
_active = Self
What does that do? When executed, shaders can read managed images without any problem of updating them with flush.
If you also add line 2936 then graphics is updated everywhere as a normal flush (not only readable for shaders).
If this is interesting then I might post more content if I find useful solutions.
I'basically come up with the shortest "flush" code that could restore the graphics for a managed image.
You only need to see one line for this, it's line 2935
_active = Self
What does that do? When executed, shaders can read managed images without any problem of updating them with flush.
If you also add line 2936 then graphics is updated everywhere as a normal flush (not only readable for shaders).
If this is interesting then I might post more content if I find useful solutions.