Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
OndraVoves committed Apr 11, 2024
1 parent 2873297 commit 800b8aa
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

When [zig](https://github.com/ziglang/zig) meets [bgfx](https://github.com/bkaradzic/bgfx).

REMEMBER: This is only zig bindig for BGFX. For BGFX stuff goto [bgfx](https://github.com/bkaradzic/bgfx).
REMEMBER: This is only zig binding for BGFX. For BGFX stuff goto [bgfx](https://github.com/bkaradzic/bgfx).

## Features

Expand All @@ -25,11 +25,11 @@ REMEMBER: This is only zig bindig for BGFX. For BGFX stuff goto [bgfx](https://g

- On retina/hidpi display imgui rendering is broken but is probably simple to fix. (WIP)
- If you build shaders/app and see something like `run shaderc (shader.bin.h) stderr`.
Remember is not "true" error but only in debug build shaderc print some stuff to stderr and zig build catch it.
Remember is not "true" error but only in debug build shader print some stuff to stderr and zig build catch it.

## Zig version

Minimal is `0.12.0`. But you know.. try your version and belive.
Minimal is `0.12.0`. But you know.. try your version and believe.
I am open to make some backward compatibility changes but not older version then `0.12.0`.

## Getting started
Expand Down
2 changes: 1 addition & 1 deletion build.zig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const std = @import("std");
const zbgfx = @import("src/zbgfx.zig");

pub const buidl_shader = zbgfx.build;
pub const build_shader = zbgfx.build;

pub fn build(b: *std.Build) !void {
const target = b.standardTargetOptions(.{});
Expand Down
4 changes: 2 additions & 2 deletions examples/00-minimal/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub fn build(b: *std.Build) !void {
const combine_bin_zig = zbgfx_dep.artifact("combine_bin_zig");

const shader_includes = zbgfx_dep.path("shaders");
const fs_cubes_zig = try zbgfx.buidl_shader.compileBasicBinZig(
const fs_cubes_zig = try zbgfx.build_shader.compileBasicBinZig(
b,
target,
shaderc,
Expand All @@ -58,7 +58,7 @@ pub fn build(b: *std.Build) !void {
.includes = &.{shader_includes},
},
);
const vs_cubes_zig = try zbgfx.buidl_shader.compileBasicBinZig(
const vs_cubes_zig = try zbgfx.build_shader.compileBasicBinZig(
b,
target,
shaderc,
Expand Down
2 changes: 1 addition & 1 deletion src/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -201,14 +201,14 @@ pub fn compileBasicBinH(
return combine_step;
}

// Basic build use these to map it to platform
const basic_profiles = [_]shader.Profile{
.glsl_120,
.es_100,
.spirv,
.metal,
.s_5_0,
};

const LazyPathList = std.ArrayList(std.Build.LazyPath);
pub fn compileBasic(
b: *std.Build,
Expand Down

0 comments on commit 800b8aa

Please sign in to comment.