diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-05 10:46:03 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-05 15:12:36 -0300 |
| commit | 11204e1206f7f7ffeaa861c1a442a312e563d3ed (patch) | |
| tree | f788736bf5b6a56694563b664b5db73bc54bff72 /src/file_watch.zig | |
| parent | c9b9dad8469f5d654c31d688d7e2d93da8325f39 (diff) | |
| download | pardes-11204e1206f7f7ffeaa861c1a442a312e563d3ed.tar.gz pardes-11204e1206f7f7ffeaa861c1a442a312e563d3ed.zip | |
effects out, the post chain: Crt, Bloom, Vignette, Grain, Shader and ShaderAnimation go with src/gui/Post.zig, src/ShaderBuild.zig (the run-time glslc spawn and its watched files), shaders/post/, post.vert, bloom-down and bloom-up and their prebuilt .spv, the window's scene texture and its post-chain-only redraw (level A), the disable_scene_effects tape site and Pardes.disableSceneEffects; EffectCode goes with src/effect_sources.zig, which only embedded the effects' sources (/virtual keeps src/); the corner-click test keeps its point without a chain, the window monkey loses its Bloom axis; macOS's post-processor (ScenePostprocessor.swift, crt.ci.metal, pardes_scene) is a change of its own
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/file_watch.zig')
| -rw-r--r-- | src/file_watch.zig | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/file_watch.zig b/src/file_watch.zig index ea8115bc..a75383e1 100644 --- a/src/file_watch.zig +++ b/src/file_watch.zig @@ -71,11 +71,7 @@ pub const Watch = struct { /// Sharing the table also shares directory descriptors correctly when a user /// happens to open that .zon as an ordinary document. pub const theme_slot = pardes.MAX_PANES; -/// After it, one slot a post chain file (ShaderBuild.zig): marked only so -/// a save there wakes the host, which has the files read again; no -/// generation of theirs is kept here. -pub const shader_slot = theme_slot + 1; -pub const Table = [shader_slot + pardes.config.Runtime.Post.max]?Watch; +pub const Table = [theme_slot + 1]?Watch; /// Whether this OS has a watcher at all. Off it every entry point below /// returns the inert answer: `watchPane` installs nothing, so `watches` stays @@ -424,13 +420,6 @@ pub fn unwatchAll(fd: c_int, watches: *Table) void { for (0..pardes.MAX_PANES) |id| watchPane(fd, watches, @intCast(id), null, 0, .{ .text = 0 }); } -/// Mark the post chain files' directories, one slot each, dropping the -/// marks of files no longer in it. -pub fn watchShaders(fd: c_int, watches: *Table, paths: []const []const u8) void { - for (0..pardes.config.Runtime.Post.max) |i| - watchPane(fd, watches, shader_slot + i, if (i < paths.len) paths[i] else null, 0, .{ .text = 0 }); -} - /// Reconcile one marked pane. A true result requests an immediate second pass: /// the PDF pathname changed between the stat before MuPDF reopened it and the /// stat after, so committing either identity would lose a generation. |
