ShaderEditor icon indicating copy to clipboard operation
ShaderEditor copied to clipboard

Request: Support for read+write variable pairs

Open Asmageddon opened this issue 2 years ago • 2 comments

Even if it were to be something unwieldy like separate buffer0_in and buffer0_out variables, I would very, very much so like to request that. For both textures and other data types.

Asmageddon avatar Apr 17 '23 07:04 Asmageddon

What exactly do you mean by that?

Something like this?

uniform sampler2D backbuffer; // [bind = fragColor]
uniform sampler2D backbuffer2; // [bind = somethingElse]

out vec4 fragColor; // [output]
out vec2 somethingElse;

Or are you asking for a feature like ShaderToy's passes?

AntonPieper avatar Jul 12 '23 14:07 AntonPieper

Yes, exactly. Something that allows the transfer of information from one frame to the next.

Multiple passes would also be great to have, but that's not my current request.

Asmageddon avatar Jul 13 '23 11:07 Asmageddon