gpu: add Texture.BindingLayout
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
9ee22aeaa8
commit
54b0ffdcc6
2 changed files with 9 additions and 7 deletions
|
|
@ -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,
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue