gpu: Add default values for some structs (taken from the spec). (#218)

Helps hexops/mach#182
This commit is contained in:
Michal Ziulek 2022-04-12 21:09:48 +02:00 committed by GitHub
parent 02e357ab44
commit fe8e0e7c98
Failed to generate hash of commit
3 changed files with 43 additions and 42 deletions

View file

@ -218,7 +218,7 @@ pub const BindingLayout = extern struct {
pub const DataLayout = extern struct {
reserved: ?*anyopaque = null,
offset: u64,
offset: u64 = 0,
bytes_per_row: u32,
rows_per_image: u32,
};