gpu: add Buffer.BindingLayout
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
2890aa48ea
commit
71ed3ad6f7
2 changed files with 8 additions and 7 deletions
|
|
@ -1,4 +1,5 @@
|
|||
const std = @import("std");
|
||||
const ChainedStruct = @import("types.zig").ChainedStruct;
|
||||
|
||||
pub const Buffer = enum(usize) {
|
||||
_,
|
||||
|
|
@ -48,4 +49,11 @@ pub const Buffer = enum(usize) {
|
|||
return @truncate(u10, @bitCast(u32, a)) == @truncate(u10, @bitCast(u32, b));
|
||||
}
|
||||
};
|
||||
|
||||
pub const BindingLayout = extern struct {
|
||||
next_in_chain: *const ChainedStruct,
|
||||
type: BindingType,
|
||||
has_dynamic_offset: bool = false,
|
||||
min_binding_size: u64 = 0,
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue