Move and change shader module name; in preparation for asset pipeline

This commit is contained in:
2025-11-10 00:46:17 +01:00
parent 67a0c4e417
commit f2eff70179
4 changed files with 22 additions and 23 deletions

View File

@@ -30,10 +30,10 @@ pub fn build(b: *std.Build) !void {
const sokol_mod = sokol_dep.module("sokol");
const shdc_dep = sokol_dep.builder.dependency("shdc", .{});
const shader_mod = try sokol.shdc.createModule(b, "shader", sokol_mod, .{
const shaders_mod = try sokol.shdc.createModule(b, "shaders", sokol_mod, .{
.shdc_dep = shdc_dep,
.input = "src/shader.glsl",
.output = "shader.zig",
.input = "assets/shaders.glsl",
.output = "shaders.zig",
.slang = .{
.glsl430 = true,
.hlsl5 = true,
@@ -42,7 +42,7 @@ pub fn build(b: *std.Build) !void {
});
exe_mod.addImport("cimgui", cimgui_dep.module(cimgui_conf.module_name));
exe_mod.addImport("shader", shader_mod);
exe_mod.addImport("shaders", shaders_mod);
exe_mod.addImport("sokol", sokol_mod);
const exe = b.addExecutable(.{