b8aac3c9bc
Add secondary_cursors field to Editor with insert_char_multi, delete_back_multi, delete_forward_multi methods. Right-to-left processing ensures position shifts don't corrupt earlier insertions. 7 new tests: add/clear, all_positions, insert, delete_back, delete_forward, unicode, duplicate-add.
13 lines
372 B
Plaintext
13 lines
372 B
Plaintext
#version 440
|
|
|
|
layout (local_size_x = 16, local_size_y = 16) in;
|
|
|
|
layout (binding = 0, rgba8) uniform readonly image2D inputImage;
|
|
layout (binding = 1, rgba8) uniform writeonly image2D resultImage;
|
|
|
|
void main()
|
|
{
|
|
vec4 c = imageLoad(inputImage, ivec2(gl_GlobalInvocationID.x, gl_GlobalInvocationID.y));
|
|
imageStore(resultImage, ivec2(gl_GlobalInvocationID.xy), c);
|
|
}
|