Added helper functions to BindGroupLayout.Entry (#213)
* gpu: Added helper functions to BindGroupLayout.Entry * gpu: Changed default values for *.BindingLayout structures. Added comments for helpers.
This commit is contained in:
parent
a943fbed3e
commit
9ed6f6ca8b
5 changed files with 91 additions and 13 deletions
|
|
@ -103,9 +103,9 @@ pub const BindingType = enum(u32) {
|
|||
|
||||
pub const BindingLayout = extern struct {
|
||||
reserved: ?*anyopaque = null,
|
||||
type: BindingType,
|
||||
has_dynamic_offset: bool,
|
||||
min_binding_size: u64,
|
||||
type: BindingType = .uniform,
|
||||
has_dynamic_offset: bool = false,
|
||||
min_binding_size: u64 = 0,
|
||||
};
|
||||
|
||||
pub const MapAsyncStatus = enum(u32) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue