gpu: make all next_in_chain fields optional, default to null
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
9fccd0806c
commit
41fe42e366
23 changed files with 44 additions and 44 deletions
|
|
@ -215,21 +215,21 @@ pub const TextureUsageFlags = packed struct {
|
|||
};
|
||||
|
||||
pub const TextureBindingLayout = extern struct {
|
||||
next_in_chain: *const ChainedStruct,
|
||||
next_in_chain: ?*const ChainedStruct = null,
|
||||
sample_type: TextureSampleType = .undef,
|
||||
view_dimension: TextureViewDimension = .dimension_undef,
|
||||
multisampled: bool = false,
|
||||
};
|
||||
|
||||
pub const TextureDataLayout = extern struct {
|
||||
next_in_chain: *const ChainedStruct,
|
||||
next_in_chain: ?*const ChainedStruct = null,
|
||||
offset: u64 = 0,
|
||||
bytes_per_row: u32 = copy_stride_undefined,
|
||||
rows_per_image: u32 = copy_stride_undefined,
|
||||
};
|
||||
|
||||
pub const TextureDescriptor = extern struct {
|
||||
next_in_chain: *const ChainedStruct,
|
||||
next_in_chain: ?*const ChainedStruct = null,
|
||||
label: ?[*:0]const u8 = null,
|
||||
usage: TextureUsageFlags,
|
||||
dimension: TextureDimension = .dimension_2d,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue