Move and change shader module name; in preparation for asset pipeline
This commit is contained in:
@@ -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(.{
|
||||
|
||||
Reference in New Issue
Block a user