core: examples: update import path style
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
78edb10446
commit
07d9855f73
47 changed files with 216 additions and 93 deletions
|
|
@ -1,8 +1,10 @@
|
|||
/// A port of Austin Eng's "computeBoids" webgpu sample.
|
||||
/// https://github.com/austinEng/webgpu-samples/blob/main/src/sample/computeBoids/main.ts
|
||||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
title_timer: core.Timer,
|
||||
timer: core.Timer,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
const renderer = @import("renderer.zig");
|
||||
|
||||
pub const App = @This();
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
pub const Renderer = @This();
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
|
||||
const zm = @import("zmath");
|
||||
const zigimg = @import("zigimg");
|
||||
const Vertex = @import("cube_mesh.zig").Vertex;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
const m3d = @import("model3d");
|
||||
const zm = @import("zmath");
|
||||
const assets = @import("assets");
|
||||
|
|
|
|||
|
|
@ -9,8 +9,11 @@
|
|||
//! for opengl
|
||||
|
||||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
const zm = @import("zmath");
|
||||
const Vertex = @import("cube_mesh.zig").Vertex;
|
||||
const vertices = @import("cube_mesh.zig").vertices;
|
||||
|
|
|
|||
|
|
@ -7,10 +7,12 @@
|
|||
// move camera with arrows or wasd
|
||||
|
||||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
const zm = @import("zmath");
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
const zm = @import("zmath");
|
||||
const Vec = zm.Vec;
|
||||
const Mat = zm.Mat;
|
||||
const Quat = zm.Quat;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
const zigimg = @import("zigimg");
|
||||
const assets = @import("assets");
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
const zigimg = @import("zigimg");
|
||||
const assets = @import("assets");
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
const zm = @import("zmath");
|
||||
const Vertex = @import("cube_mesh.zig").Vertex;
|
||||
const vertices = @import("cube_mesh.zig").vertices;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
pub const App = @This();
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
const m3d = @import("model3d");
|
||||
const zm = @import("zmath");
|
||||
const assets = @import("assets");
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
const zm = @import("zmath");
|
||||
|
||||
const Vertex = @import("cube_mesh.zig").Vertex;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
const renderer = @import("renderer.zig");
|
||||
|
||||
pub const App = @This();
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
const zm = @import("zmath");
|
||||
const primitives = @import("procedural-primitives.zig");
|
||||
const Primitive = primitives.Primitive;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
const Vertex = extern struct {
|
||||
pos: @Vector(2, f32),
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
const zm = @import("zmath");
|
||||
const Vertex = @import("cube_mesh.zig").Vertex;
|
||||
const vertices = @import("cube_mesh.zig").vertices;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
const zm = @import("zmath");
|
||||
const zigimg = @import("zigimg");
|
||||
const assets = @import("assets");
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
/// A port of Austin Eng's "computeBoids" webgpu sample.
|
||||
/// https://github.com/austinEng/webgpu-samples/blob/main/src/sample/computeBoids/main.ts
|
||||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
title_timer: core.Timer,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const renderer = @import("renderer.zig");
|
||||
|
||||
pub const App = @This();
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
pub const Renderer = @This();
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
const zm = @import("zmath");
|
||||
const zigimg = @import("zigimg");
|
||||
const Vertex = @import("cube_mesh.zig").Vertex;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
const m3d = @import("model3d");
|
||||
const zm = @import("zmath");
|
||||
const assets = @import("assets");
|
||||
|
|
|
|||
|
|
@ -9,8 +9,11 @@
|
|||
//! for opengl
|
||||
|
||||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
const zm = @import("zmath");
|
||||
const Vertex = @import("cube_mesh.zig").Vertex;
|
||||
const vertices = @import("cube_mesh.zig").vertices;
|
||||
|
|
|
|||
|
|
@ -7,10 +7,12 @@
|
|||
// move camera with arrows or wasd
|
||||
|
||||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
const zm = @import("zmath");
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
const zm = @import("zmath");
|
||||
const Vec = zm.Vec;
|
||||
const Mat = zm.Mat;
|
||||
const Quat = zm.Quat;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
const zigimg = @import("zigimg");
|
||||
const assets = @import("assets");
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
const zigimg = @import("zigimg");
|
||||
const assets = @import("assets");
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
const zm = @import("zmath");
|
||||
const Vertex = @import("cube_mesh.zig").Vertex;
|
||||
const vertices = @import("cube_mesh.zig").vertices;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
pub const App = @This();
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
const m3d = @import("model3d");
|
||||
const zm = @import("zmath");
|
||||
const assets = @import("assets");
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
const zm = @import("zmath");
|
||||
|
||||
const Vertex = @import("cube_mesh.zig").Vertex;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
const renderer = @import("renderer.zig");
|
||||
|
||||
pub const App = @This();
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
const zm = @import("zmath");
|
||||
const primitives = @import("procedural-primitives.zig");
|
||||
const Primitive = primitives.Primitive;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
const Vertex = extern struct {
|
||||
pos: @Vector(2, f32),
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
const zm = @import("zmath");
|
||||
const Vertex = @import("cube_mesh.zig").Vertex;
|
||||
const vertices = @import("cube_mesh.zig").vertices;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
const zm = @import("zmath");
|
||||
const zigimg = @import("zigimg");
|
||||
const assets = @import("assets");
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
const zm = @import("zmath");
|
||||
const zigimg = @import("zigimg");
|
||||
const Vertex = @import("cube_mesh.zig").Vertex;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
const zigimg = @import("zigimg");
|
||||
const assets = @import("assets");
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
pub const App = @This();
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
pub const App = @This();
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const zm = @import("zmath");
|
||||
const Vertex = @import("cube_mesh.zig").Vertex;
|
||||
const vertices = @import("cube_mesh.zig").vertices;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
const zm = @import("zmath");
|
||||
const zigimg = @import("zigimg");
|
||||
const Vertex = @import("cube_mesh.zig").Vertex;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
const zigimg = @import("zigimg");
|
||||
const assets = @import("assets");
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
pub const App = @This();
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
pub const App = @This();
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
const zm = @import("zmath");
|
||||
const Vertex = @import("cube_mesh.zig").Vertex;
|
||||
const vertices = @import("cube_mesh.zig").vertices;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
const std = @import("std");
|
||||
const core = @import("mach").core;
|
||||
const gpu = core.gpu;
|
||||
|
||||
const mach = @import("mach");
|
||||
const core = mach.core;
|
||||
const gpu = mach.gpu;
|
||||
|
||||
pub const App = @This();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue