fixing image layers and mipmaps
Test / build_and_test (push) Successful in 26s
Build / build (push) Successful in 59s

This commit is contained in:
2026-05-24 13:22:16 +02:00
parent fe6b0b3b23
commit bd2774b7f9
2 changed files with 2 additions and 5 deletions
+1 -3
View File
@@ -797,9 +797,7 @@ pub fn pipelineBarrier(interface: *Interface, src_stage: vk.PipelineStageFlags,
const CommandImpl = struct { const CommandImpl = struct {
const Impl = @This(); const Impl = @This();
pub fn execute(_: *anyopaque, _: *ExecutionDevice) VkError!void { pub fn execute(_: *anyopaque, _: *ExecutionDevice) VkError!void {}
// TODO: implement synchronization for rasterization stages
}
}; };
const cmd = allocator.create(CommandImpl) catch return VkError.OutOfHostMemory; const cmd = allocator.create(CommandImpl) catch return VkError.OutOfHostMemory;
+1 -2
View File
@@ -281,8 +281,7 @@ pub fn copy(
.mip_level = image_subresource.mip_level, .mip_level = image_subresource.mip_level,
.array_layer = image_subresource.base_array_layer, .array_layer = image_subresource.base_array_layer,
}); });
const image_size = try self.interface.getTotalSizeForAspect(image_subresource.aspect_mask); const image_map = try self.mapAsSliceWithAddedOffset(u8, image_texel_offset, vk.WHOLE_SIZE);
const image_map = try self.mapAsSliceWithAddedOffset(u8, image_texel_offset, image_size);
var src_memory = if (is_source) base_src_memory orelse return VkError.InvalidDeviceMemoryDrv else image_map; var src_memory = if (is_source) base_src_memory orelse return VkError.InvalidDeviceMemoryDrv else image_map;
var dst_memory = if (is_source) image_map else base_dst_memory orelse return VkError.InvalidDeviceMemoryDrv; var dst_memory = if (is_source) image_map else base_dst_memory orelse return VkError.InvalidDeviceMemoryDrv;