gpu: add StorageTextureBindingLayout

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-16 20:09:48 -07:00 committed by Stephen Gutekanst
parent 19ced8efc6
commit 340739ad44
2 changed files with 9 additions and 7 deletions

View file

@ -1,5 +1,7 @@
const std = @import("std");
const testing = std.testing;
const Texture = @import("texture.zig").Texture;
const TextureView = @import("texture_view.zig").TextureView;
pub const AlphaMode = enum(u32) {
premultiplied = 0x00000000,
@ -494,6 +496,13 @@ pub const StencilFaceState = extern struct {
pass_op: StencilOperation,
};
pub const StorageTextureBindingLayout = extern struct {
next_in_chain: *const ChainedStruct,
access: StorageTextureAccess,
format: Texture.Format,
view_dimension: TextureView.Dimension,
};
test "BackendType name" {
try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name());
}