summaryrefslogtreecommitdiff
path: root/src/Output.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-29 22:05:58 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:17 -0300
commit813a0b2bf3c110f2287d7136f0dfc540c0978cd6 (patch)
tree8250da85fde87d8cc4ccbbceaa304b1bed82be4e /src/Output.zig
parent714da820136ac89d6a79ed0141e7325829ab8204 (diff)
downloadpardes-813a0b2bf3c110f2287d7136f0dfc540c0978cd6.tar.gz
pardes-813a0b2bf3c110f2287d7136f0dfc540c0978cd6.zip
The GUI embeds its shaders' GLSL from shaders/ always: the 14 prebuilt copies, identical to their sources, go, and so does the label saying which was used
shaders/prebuilt/*.glsl were byte-identical to shaders/X.glsl or to prefix.glsl + post/X.glsl (checked with cmp, all 14), kept only so a -Dprebuilt-shaders build could name them; EffectCode and Config then labelled the GUI's shader source as live or prebuilt. The GUI embeds shaderSource (a concatenation, no glslc) either way now; the prebuilt SPIR-V stays, and zig build shaders refreshes only it. Config's report and EffectCode lose their GUI shader source line. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/Output.zig')
-rw-r--r--src/Output.zig7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/Output.zig b/src/Output.zig
index fb8fe7a3..8cf57591 100644
--- a/src/Output.zig
+++ b/src/Output.zig
@@ -19,7 +19,6 @@ const Pane = panes.Pane;
const File = panes.File;
const Builtin = builtins.registry.Builtin();
-const gui_shader_source_mode = effect_sources.guiShaderSourceMode();
const fonts = if (builtins.capabilities.font_picker) @import("fonts.zig") else struct {};
@@ -825,10 +824,6 @@ pub fn openConfig(p: *Pardes, id: usize) !void {
.platform = @tagName(pardes.platform),
.theme_name = p.theme().name,
.compiled_default_shell = config.defaultShell(),
- .gui_shader_source_mode = if (gui_shader_source_mode) |mode|
- mode.label()
- else
- null,
.hover_delay_frames = config.look_preview_delay_frames,
.native_images = p.native_images,
.capabilities = builtins.capabilities,
@@ -882,8 +877,6 @@ pub fn openEffectCode(p: *Pardes, id: usize, argument: []const u8) !void {
var out: std.Io.Writer.Allocating = .init(p.gpa);
errdefer out.deinit();
try out.writer.print("EffectCode {s} ({s})\n", .{ setting.word, @tagName(effect_sources.backend) });
- if (gui_shader_source_mode) |mode|
- try out.writer.print("GUI shader source: {s}\n", .{mode.label()});
try out.writer.writeByte('\n');
for (paths) |path| try out.writer.print("/virtual/{s}\n", .{path});
const content = try out.toOwnedSlice();