gpu: taked slice child type in writeTexture
This commit is contained in:
parent
6922435110
commit
b5d10fb167
4 changed files with 10 additions and 7 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue