mirror-ghostty/pkg/opengl
Julia 9c8c53bffb
use main buffer and copy data to fbo texture (opengl) (#5294)
NEEDS REVIEW

continuation of #5037
resolves #4729 

renders all shaders to the default buffer and then copies it to the
designated custom shader texture.

this is a draft pr because:
- it introduces a new shader "pipeline" which doesnt fit in with how the
system was designed to work (which is only rendering to the fbo)
- im not sure if this is the best way to achieve shaders being able to
sample their output while also drawing to the screen. the cusom fbo
(previous implementation) was useful in that it modularized the custom
shader stage in rendering

---------

Co-authored-by: Mitchell Hashimoto <m@mitchellh.com>
2025-01-23 20:57:14 +00:00
..
Buffer.zig pkg/opengl: yeet usingns 2024-08-16 15:28:22 -07:00
Framebuffer.zig pkg/opengl: yeet usingns 2024-08-16 15:28:22 -07:00
Program.zig pkg/opengl: yeet usingns 2024-08-16 15:28:22 -07:00
Shader.zig pkg/opengl: yeet usingns 2024-08-16 15:28:22 -07:00
Texture.zig use main buffer and copy data to fbo texture (opengl) (#5294) 2025-01-23 20:57:14 +00:00
VertexArray.zig pkg/opengl: yeet usingns 2024-08-16 15:28:22 -07:00
build.zig begin 0.13 update process -- very broken 2024-06-24 15:16:22 -07:00
c.zig pkg/opengl: yeet usingns 2024-08-16 15:28:22 -07:00
draw.zig pkg/opengl: yeet usingns 2024-08-16 15:28:22 -07:00
errors.zig pkg/opengl: yeet usingns 2024-08-16 15:28:22 -07:00
extensions.zig pkg/opengl: yeet usingns 2024-08-16 15:28:22 -07:00
glad.zig pkg/opengl: yeet usingns 2024-08-16 15:28:22 -07:00
main.zig pkg/opengl: yeet usingns 2024-08-16 15:28:22 -07:00