gpu: add Texture.BindingLayout

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-16 20:22:57 -07:00 committed by Stephen Gutekanst
parent 9ee22aeaa8
commit 54b0ffdcc6
2 changed files with 9 additions and 7 deletions

View file

@ -1,10 +1,3 @@
pub const WGPUTextureBindingLayout = extern struct {
next_in_chain: *const ChainedStruct,
sample_type: TextureSampleType,
view_dimension: TextureViewDimension,
multisampled: bool,
};
pub const WGPUTextureDataLayout = extern struct {
next_in_chain: *const ChainedStruct,
offset: u64,

View file

@ -1,4 +1,6 @@
const std = @import("std");
const ChainedStruct = @import("types.zig").ChainedStruct;
const TextureView = @import("texture_view.zig").TextureView;
pub const Texture = enum(usize) {
_,
@ -158,4 +160,11 @@ pub const Texture = enum(usize) {
return @truncate(u6, @bitCast(u32, a)) == @truncate(u6, @bitCast(u32, b));
}
};
pub const BindingLayout = extern struct {
next_in_chain: *const ChainedStruct,
sample_type: SampleType,
view_dimension: TextureView.Dimension,
multisampled: bool,
};
};