diff options
Diffstat (limited to 'examples/micscope/build.zig')
| -rw-r--r-- | examples/micscope/build.zig | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/examples/micscope/build.zig b/examples/micscope/build.zig index 0853cdc..2de639d 100644 --- a/examples/micscope/build.zig +++ b/examples/micscope/build.zig @@ -6,19 +6,13 @@ pub fn build(b: *std.Build) void { const optimize = b.standardOptimizeOption(.{}); const sb = sketchbook.init(b, .{ .target = target, .optimize = optimize }); - // The shaders, as SPIR-V for the native host and WGSL for the web; their - // uniform blocks come from the Zig structs in src/layouts.zig. + // The tuner's shaders, as SPIR-V for the native host and WGSL for the + // web; their uniform blocks come from the Zig structs in src/layouts.zig. + // The waveform, spectrogram and spectrum are the scope module's. const layouts = b.createModule(.{ .root_source_file = b.path("src/layouts.zig") }); const shaders = sb.addShaders(.{ - .layouts = .{ .module = layouts, .types = &.{ "SpectrumParams", "WaveParams", "WaveView", "SpectrumView", "SpectrogramParams", "SpectrogramView", "TunerParams" } }, + .layouts = .{ .module = layouts, .types = &.{"TunerParams"} }, .sources = &.{ - b.path("shaders/view.vert"), - b.path("shaders/waveform.comp"), - b.path("shaders/waveform.frag"), - b.path("shaders/spectrogram.comp"), - b.path("shaders/spectrogram.frag"), - b.path("shaders/spectrum.comp"), - b.path("shaders/spectrum.frag"), b.path("shaders/tuner_difference.comp"), b.path("shaders/tuner.comp"), }, @@ -30,6 +24,7 @@ pub fn build(b: *std.Build) void { .imports = &.{ .{ .name = "layouts", .module = layouts }, .{ .name = "shaders", .module = shaders.module }, + .{ .name = "scope", .module = sb.modules.scope }, }, }); const steps = app.addSteps(.{ |
