Compile shaders in build.zig

This commit is contained in:
2026-08-30 00:48:43 +02:00
parent 40fcba9323
commit 8d5a2db342
6 changed files with 47 additions and 17 deletions

View File

@@ -96,10 +96,10 @@ pub const ObjectUniforms = extern struct {
material: Materials.Id,
};
pub const equirect_to_cube_comp_spv align(4) = @embedFile("shaders/equirect_to_cube_comp.spv").*;
pub const gui_box_vert_spv align(4) = @embedFile("shaders/gui_box_vert.spv").*;
pub const gui_box_frag_spv align(4) = @embedFile("shaders/gui_box_frag.spv").*;
pub const main_vert_spv align(4) = @embedFile("shaders/main_vert.spv").*;
pub const main_frag_spv align(4) = @embedFile("shaders/main_frag.spv").*;
pub const skybox_vert_spv align(4) = @embedFile("shaders/skybox_vert.spv").*;
pub const skybox_frag_spv align(4) = @embedFile("shaders/skybox_frag.spv").*;
pub const equirect_to_cube_comp_spv align(4) = @embedFile("shaders/equirect_to_cube.comp").*;
pub const gui_box_vert_spv align(4) = @embedFile("shaders/gui_box.vert").*;
pub const gui_box_frag_spv align(4) = @embedFile("shaders/gui_box.frag").*;
pub const main_vert_spv align(4) = @embedFile("shaders/main.vert").*;
pub const main_frag_spv align(4) = @embedFile("shaders/main.frag").*;
pub const skybox_vert_spv align(4) = @embedFile("shaders/skybox.vert").*;
pub const skybox_frag_spv align(4) = @embedFile("shaders/skybox.frag").*;