adding base blit
This commit is contained in:
@@ -11,11 +11,7 @@ pub const SoftImageView = @import("../SoftImageView.zig");
|
||||
|
||||
const Self = @This();
|
||||
|
||||
blit_mutex: std.Thread.Mutex,
|
||||
|
||||
pub const init: Self = .{
|
||||
.blit_mutex = .{},
|
||||
};
|
||||
pub const init: Self = .{};
|
||||
|
||||
pub fn clear(self: *Self, pixel: vk.ClearValue, format: vk.Format, dest: *SoftImage, view_format: vk.Format, range: vk.ImageSubresourceRange, area: ?vk.Rect2D) VkError!void {
|
||||
const dst_format = base.format.fromAspect(view_format, range.aspect_mask);
|
||||
@@ -104,3 +100,9 @@ fn fastClear(self: *Self, clear_value: vk.ClearValue, clear_format: vk.Format, d
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
pub fn blitRegion(_: *Self, src: *const SoftImage, dst: *SoftImage, region: vk.ImageBlit) VkError!void {
|
||||
_ = src;
|
||||
_ = dst;
|
||||
_ = region;
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ const SoftDescriptorSet = @import("../SoftDescriptorSet.zig");
|
||||
const SoftDevice = @import("../SoftDevice.zig");
|
||||
const SoftPipeline = @import("../SoftPipeline.zig");
|
||||
|
||||
const Blitter = @import("Blitter.zig");
|
||||
const ComputeRoutines = @import("ComputeRoutines.zig");
|
||||
const PipelineState = @import("PipelineState.zig");
|
||||
|
||||
@@ -13,6 +14,8 @@ const VkError = base.VkError;
|
||||
|
||||
const Self = @This();
|
||||
|
||||
blitter: Blitter,
|
||||
|
||||
compute_routines: ComputeRoutines,
|
||||
|
||||
/// .graphics = 0
|
||||
@@ -20,6 +23,7 @@ compute_routines: ComputeRoutines,
|
||||
pipeline_states: [2]PipelineState,
|
||||
|
||||
pub const init: Self = .{
|
||||
.blitter = .init,
|
||||
.compute_routines = undefined,
|
||||
.pipeline_states = undefined,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user