Skip to content

Commit

Permalink
Add renderer type comment to examples
Browse files Browse the repository at this point in the history
  • Loading branch information
OndraVoves committed Apr 11, 2024
1 parent 800b8aa commit b5f7dc0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/00-minimal/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,14 @@ pub fn build(b: *std.Build) !void {
},
);

//
// Compile shaders to zig module
//
const zbgfx_module = zbgfx_dep.module("zbgfx");
const shaderc = zbgfx_dep.artifact("shaderc");
const combine_bin_zig = zbgfx_dep.artifact("combine_bin_zig");

const shader_includes = zbgfx_dep.path("shaders");

const fs_cubes_zig = try zbgfx.build_shader.compileBasicBinZig(
b,
target,
Expand Down
3 changes: 3 additions & 0 deletions examples/01-minimal-zgui/src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ pub fn main() anyerror!u8 {
var bgfx_init: bgfx.Init = undefined;
bgfx.initCtor(&bgfx_init);

// This force renderer type.
// bgfx_init.type == .Vulkan

bgfx_init.resolution.width = WIDTH;
bgfx_init.resolution.height = HEIGHT;
bgfx_init.platformData.ndt = null;
Expand Down

0 comments on commit b5f7dc0

Please sign in to comment.