working on commands
This commit is contained in:
@@ -10,6 +10,7 @@ pub const CommandType = enum {
|
||||
ClearColorImage,
|
||||
CopyBuffer,
|
||||
CopyImage,
|
||||
CopyImageToBuffer,
|
||||
Draw,
|
||||
DrawIndexed,
|
||||
DrawIndexedIndirect,
|
||||
@@ -43,6 +44,12 @@ pub const CommandCopyImage = struct {
|
||||
dst_layout: vk.ImageLayout,
|
||||
regions: []const vk.ImageCopy,
|
||||
};
|
||||
pub const CommandCopyImageToBuffer = struct {
|
||||
src: *Image,
|
||||
src_layout: vk.ImageLayout,
|
||||
dst: *Buffer,
|
||||
regions: []const vk.BufferImageCopy,
|
||||
};
|
||||
pub const CommandDraw = struct {
|
||||
vertex_count: u32,
|
||||
instance_count: u32,
|
||||
@@ -81,6 +88,7 @@ pub const Command = union(CommandType) {
|
||||
ClearColorImage: CommandClearColorImage,
|
||||
CopyBuffer: CommandCopyBuffer,
|
||||
CopyImage: CommandCopyImage,
|
||||
CopyImageToBuffer: CommandCopyImageToBuffer,
|
||||
Draw: CommandDraw,
|
||||
DrawIndexed: CommandDrawIndexed,
|
||||
DrawIndexedIndirect: CommandDrawIndexedIndirect,
|
||||
|
||||
Reference in New Issue
Block a user