imageLoad/Store in GLSL TOP / MAT ?

Hello!
Some weird question: is there any way to utilise GLSL 4.2 imageLoad / imageStore functions in GLSL TOP or MAT? (actually attaching texture as image buffer somehow)

Thanks!

I’m using imageStore() in a GLSL MAT to render fragments directly into a 3D texture :smiley:, then retrieving it via imageLoad() in a GLSL TOP compute shader. It’s a bit buggy right now (buffer doesn’t clear every frame, just writes into itself. Also you have to force cook the render TOP and GLSL TOP by wiring their outputs and inputs in specific ways) but with a bit of love from Derivative i’m sure this can be worked out.

p.s. I’m on Windows 10, TD 099 64-Bit Build 2017.12740

The use on imageStore()/imageLoad() on a texture in a GLSL shader requires some specific function calls to setup. I’m not doing these calls when a MAT is in use. I’m not 100% sure how you are able to do anything with imageStore() in a MAT right, but you are likely just getting lucky with the default OpenGL state. So this is a missing feature right now.