{gfx,examples}: update all to new mach.Core module API
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
ac4fe65eb2
commit
d045b34f70
13 changed files with 910 additions and 689 deletions
|
|
@ -38,10 +38,10 @@ fn deinit(glyphs: *Mod) !void {
|
|||
}
|
||||
|
||||
fn init(
|
||||
engine: *mach.Engine.Mod,
|
||||
core: *mach.Core.Mod,
|
||||
glyphs: *Mod,
|
||||
) !void {
|
||||
const device = engine.state().device;
|
||||
const device = core.state().device;
|
||||
const allocator = gpa.allocator();
|
||||
|
||||
// rgba32_pixels
|
||||
|
|
@ -77,11 +77,11 @@ fn init(
|
|||
}
|
||||
|
||||
fn prepare(
|
||||
engine: *mach.Engine.Mod,
|
||||
core: *mach.Core.Mod,
|
||||
glyphs: *Mod,
|
||||
codepoints: []const u21,
|
||||
) !void {
|
||||
const device = engine.state().device;
|
||||
const device = core.state().device;
|
||||
const queue = device.getQueue();
|
||||
var s = glyphs.state();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue