Changing resource category for textures in d3d12 issue #1225 (#1226)

This commit is contained in:
Hordur Johannsson 2024-08-08 04:58:59 +00:00 committed by GitHub
parent 9148754b76
commit 42d2a57611
Failed to generate hash of commit
6 changed files with 281 additions and 557 deletions

View file

@ -45,11 +45,9 @@ pub const systems = .{
};
fn deinit(
core: *mach.Core.Mod,
sprite_pipeline: *gfx.SpritePipeline.Mod,
) !void {
sprite_pipeline.schedule(.deinit);
core.schedule(.deinit);
}
fn init(
@ -268,7 +266,6 @@ fn loadTexture(core: *mach.Core.Mod, allocator: std.mem.Allocator) !*gpu.Texture
.usage = .{
.texture_binding = true,
.copy_dst = true,
.render_attachment = true,
},
});
const data_layout = gpu.Texture.DataLayout{