gpu: add ImageCopyBuffer
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
9b615f212d
commit
326d66127e
2 changed files with 7 additions and 6 deletions
|
|
@ -1,9 +1,3 @@
|
||||||
pub const ImageCopyBuffer = extern struct {
|
|
||||||
next_in_chain: *const ChainedStruct,
|
|
||||||
layout: TextureDataLayout,
|
|
||||||
buffer: Buffer
|
|
||||||
};
|
|
||||||
|
|
||||||
pub const ImageCopyTexture = extern struct {
|
pub const ImageCopyTexture = extern struct {
|
||||||
next_in_chain: *const ChainedStruct,
|
next_in_chain: *const ChainedStruct,
|
||||||
texture: Texture,
|
texture: Texture,
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ const std = @import("std");
|
||||||
const testing = std.testing;
|
const testing = std.testing;
|
||||||
const Texture = @import("texture.zig").Texture;
|
const Texture = @import("texture.zig").Texture;
|
||||||
const TextureView = @import("texture_view.zig").TextureView;
|
const TextureView = @import("texture_view.zig").TextureView;
|
||||||
|
const Buffer = @import("buffer.zig").Buffer;
|
||||||
|
|
||||||
pub const AlphaMode = enum(u32) {
|
pub const AlphaMode = enum(u32) {
|
||||||
premultiplied = 0x00000000,
|
premultiplied = 0x00000000,
|
||||||
|
|
@ -534,6 +535,12 @@ pub const DepthStencilState = extern struct {
|
||||||
depth_bias_clamp: f32,
|
depth_bias_clamp: f32,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const ImageCopyBuffer = extern struct {
|
||||||
|
next_in_chain: *const ChainedStruct,
|
||||||
|
layout: Texture.DataLayout,
|
||||||
|
buffer: Buffer,
|
||||||
|
};
|
||||||
|
|
||||||
test "BackendType name" {
|
test "BackendType name" {
|
||||||
try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name());
|
try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue