gpu: taked slice child type in writeTexture

This commit is contained in:
Ali Chraghi 2022-05-23 11:43:11 +04:30 committed by Stephen Gutekanst
parent 6922435110
commit b5d10fb167
4 changed files with 10 additions and 7 deletions

View file

@ -78,9 +78,10 @@ pub fn init(app: *App, engine: *mach.Engine) !void {
queue.writeTexture(
&.{ .texture = texture },
texture_atlas_data.data,
&data_layout,
&.{ .width = texture_atlas_data.size, .height = texture_atlas_data.size },
zigimg.color.Rgba32,
texture_atlas_data.data,
);
app.vertices = try std.ArrayList(draw.Vertex).initCapacity(engine.allocator, 9);