gpu: add StorageTextureBindingLayout
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
19ced8efc6
commit
340739ad44
2 changed files with 9 additions and 7 deletions
|
|
@ -1,10 +1,3 @@
|
||||||
pub const StorageTextureBindingLayout = extern struct {
|
|
||||||
next_in_chain: *const ChainedStruct,
|
|
||||||
access: StorageTextureAccess,
|
|
||||||
format: TextureFormat,
|
|
||||||
view_dimension: TextureViewDimension,
|
|
||||||
};
|
|
||||||
|
|
||||||
pub const WGPUSurfaceDescriptor = extern struct {
|
pub const WGPUSurfaceDescriptor = extern struct {
|
||||||
next_in_chain: *const ChainedStruct,
|
next_in_chain: *const ChainedStruct,
|
||||||
label: ?[*:0]const u8 = null,
|
label: ?[*:0]const u8 = null,
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
const testing = std.testing;
|
const testing = std.testing;
|
||||||
|
const Texture = @import("texture.zig").Texture;
|
||||||
|
const TextureView = @import("texture_view.zig").TextureView;
|
||||||
|
|
||||||
pub const AlphaMode = enum(u32) {
|
pub const AlphaMode = enum(u32) {
|
||||||
premultiplied = 0x00000000,
|
premultiplied = 0x00000000,
|
||||||
|
|
@ -494,6 +496,13 @@ pub const StencilFaceState = extern struct {
|
||||||
pass_op: StencilOperation,
|
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" {
|
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