renderer: add custom shader cursor uniforms

Based on / supersedes PR #6912, implements discussion #6901

Co-authored-by: Krone Corylus <ahustinkrone@gmail.com>
This commit is contained in:
Qwerasd
2025-06-22 10:28:39 -06:00
parent c7a7474be0
commit bb576d1340
6 changed files with 75 additions and 5 deletions

View File

@@ -33,6 +33,8 @@ pub const cellpkg = @import("metal/cell.zig");
pub const imagepkg = @import("metal/image.zig");
pub const custom_shader_target: shadertoy.Target = .msl;
// The fragCoord for Metal shaders is +Y = down.
pub const custom_shader_y_is_down = true;
/// Triple buffering.
pub const swap_chain_count = 3;