gpu: add ImageCopyBuffer

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-16 20:45:38 -07:00 committed by Stephen Gutekanst
parent 9b615f212d
commit 326d66127e
2 changed files with 7 additions and 6 deletions

View file

@ -1,9 +1,3 @@
pub const ImageCopyBuffer = extern struct {
next_in_chain: *const ChainedStruct,
layout: TextureDataLayout,
buffer: Buffer
};
pub const ImageCopyTexture = extern struct {
next_in_chain: *const ChainedStruct,
texture: Texture,

View file

@ -2,6 +2,7 @@ const std = @import("std");
const testing = std.testing;
const Texture = @import("texture.zig").Texture;
const TextureView = @import("texture_view.zig").TextureView;
const Buffer = @import("buffer.zig").Buffer;
pub const AlphaMode = enum(u32) {
premultiplied = 0x00000000,
@ -534,6 +535,12 @@ pub const DepthStencilState = extern struct {
depth_bias_clamp: f32,
};
pub const ImageCopyBuffer = extern struct {
next_in_chain: *const ChainedStruct,
layout: Texture.DataLayout,
buffer: Buffer,
};
test "BackendType name" {
try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name());
}