gfx2d: update to latest mach-ecs API
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
945f69428a
commit
29475c2e57
1 changed files with 2 additions and 2 deletions
|
|
@ -140,7 +140,7 @@ pub fn machSprite2DInit(eng: *Engine) !void {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
sprite2d.initState(.{
|
sprite2d.state = .{
|
||||||
.pipeline = device.createRenderPipeline(&pipeline_descriptor),
|
.pipeline = device.createRenderPipeline(&pipeline_descriptor),
|
||||||
.queue = queue,
|
.queue = queue,
|
||||||
.bind_group = bind_group,
|
.bind_group = bind_group,
|
||||||
|
|
@ -153,7 +153,7 @@ pub fn machSprite2DInit(eng: *Engine) !void {
|
||||||
@as(f32, @floatFromInt(sprite2d.state.texture.getHeight())),
|
@as(f32, @floatFromInt(sprite2d.state.texture.getHeight())),
|
||||||
},
|
},
|
||||||
.texture = sprite2d.state.texture,
|
.texture = sprite2d.state.texture,
|
||||||
});
|
};
|
||||||
shader_module.release();
|
shader_module.release();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue