Texture pipeline, pixel-art shader

This commit is contained in:
2025-11-11 19:47:16 +01:00
parent f2eff70179
commit 3379717cf5
9 changed files with 218 additions and 15 deletions

View File

@@ -27,6 +27,8 @@ pub fn build(b: *std.Build) !void {
});
sokol_dep.artifact("sokol_clib").addIncludePath(cimgui_dep.path(cimgui_conf.include_dir));
const zstbi_dep = b.dependency("zstbi", .{});
const sokol_mod = sokol_dep.module("sokol");
const shdc_dep = sokol_dep.builder.dependency("shdc", .{});
@@ -41,9 +43,12 @@ pub fn build(b: *std.Build) !void {
},
});
const zstbi_mod = zstbi_dep.module("root");
exe_mod.addImport("cimgui", cimgui_dep.module(cimgui_conf.module_name));
exe_mod.addImport("shaders", shaders_mod);
exe_mod.addImport("sokol", sokol_mod);
exe_mod.addImport("zstbi", zstbi_mod);
const exe = b.addExecutable(.{
.name = "voxel-game",