diff options
| author | s-ol <s+removethis@s-ol.nu> | 2026-04-10 17:08:15 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2026-04-10 22:22:45 +0000 |
| commit | 5d3f9aef90bed7713ce07614fdd154d50223ba61 (patch) | |
| tree | c6cfdc75e645773de14bf4cad8bbb89f60f267d6 /src/tsv.zig | |
| parent | more TSV logging (diff) | |
| download | glsl-view-5d3f9aef90bed7713ce07614fdd154d50223ba61.tar.gz glsl-view-5d3f9aef90bed7713ce07614fdd154d50223ba61.zip | |
support arrays of uniforms, remove finished sources
Diffstat (limited to 'src/tsv.zig')
| -rw-r--r-- | src/tsv.zig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tsv.zig b/src/tsv.zig index a199b90..fb5db96 100644 --- a/src/tsv.zig +++ b/src/tsv.zig @@ -47,6 +47,7 @@ pub const TSVSource = struct { self.* = .{ .source = .{ .texture = gl.Texture.create(texture_type), + .update_fn = update_source, .deinit_fn = deinit, }, .stream = .{}, @@ -61,6 +62,12 @@ pub const TSVSource = struct { return &self.source; } + fn update_source(source: *src.Source) !bool { + const self: *TSVSource = @fieldParentPtr("source", source); + if (self.thread.has_quit) return true; + return false; + } + fn deinit(source: *const src.Source, allocator: std.mem.Allocator) void { const self: *const TSVSource = @fieldParentPtr("source", source); |
