{examples,shaderexp}: make const App public

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-04 21:21:38 -07:00 committed by Stephen Gutekanst
parent 72ea652dca
commit 167f2d3a4f
9 changed files with 9 additions and 9 deletions

View file

@ -16,7 +16,7 @@ const Vec = zm.Vec;
const Mat = zm.Mat;
const Quat = zm.Quat;
const App = @This();
pub const App = @This();
queue: gpu.Queue,
cube: Cube,

View file

@ -12,7 +12,7 @@ particle_bind_groups: [2]gpu.BindGroup,
sim_param_buffer: gpu.Buffer,
frame_counter: usize,
const App = @This();
pub const App = @This();
const num_particle = 1500;

View file

@ -16,7 +16,7 @@ const zm = @import("zmath");
const Vertex = @import("cube_mesh.zig").Vertex;
const vertices = @import("cube_mesh.zig").vertices;
const App = @This();
pub const App = @This();
const UniformBufferObject = struct {
mat: zm.Mat,

View file

@ -18,7 +18,7 @@ vertex_buffer: gpu.Buffer,
uniform_buffer: gpu.Buffer,
bind_group: gpu.BindGroup,
const App = @This();
pub const App = @This();
pub fn init(app: *App, core: *mach.Core) !void {
timer = try mach.Timer.start();

View file

@ -6,7 +6,7 @@ const zm = @import("zmath");
const Vertex = @import("cube_mesh.zig").Vertex;
const vertices = @import("cube_mesh.zig").vertices;
const App = @This();
pub const App = @This();
const UniformBufferObject = struct {
mat: zm.Mat,

View file

@ -21,7 +21,7 @@ bind_group: gpu.BindGroup,
depth_texture: ?gpu.Texture,
depth_texture_view: gpu.TextureView,
const App = @This();
pub const App = @This();
pub fn init(app: *App, core: *mach.Core) !void {
timer = try mach.Timer.start();

View file

@ -2,7 +2,7 @@ const std = @import("std");
const mach = @import("mach");
const gpu = @import("gpu");
const App = @This();
pub const App = @This();
pipeline: gpu.RenderPipeline,
queue: gpu.Queue,

View file

@ -19,7 +19,7 @@ uniform_buffer: gpu.Buffer,
bind_group1: gpu.BindGroup,
bind_group2: gpu.BindGroup,
const App = @This();
pub const App = @This();
pub fn init(app: *App, core: *mach.Core) !void {
timer = try mach.Timer.start();

View file

@ -3,7 +3,7 @@ const mach = @import("mach");
const gpu = @import("gpu");
const glfw = @import("glfw");
const App = @This();
pub const App = @This();
const Vertex = struct {
pos: @Vector(4, f32),