gpu: add Texture.DataLayout
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
54b0ffdcc6
commit
2a50f3c3bd
2 changed files with 7 additions and 7 deletions
|
|
@ -1,10 +1,3 @@
|
|||
pub const WGPUTextureDataLayout = extern struct {
|
||||
next_in_chain: *const ChainedStruct,
|
||||
offset: u64,
|
||||
bytes_per_row: u32,
|
||||
rows_per_image: u32,
|
||||
};
|
||||
|
||||
pub const WGPUTextureViewDescriptor = extern struct {
|
||||
next_in_chain: *const ChainedStruct,
|
||||
label: ?[*:0]const u8 = null,
|
||||
|
|
|
|||
|
|
@ -167,4 +167,11 @@ pub const Texture = enum(usize) {
|
|||
view_dimension: TextureView.Dimension,
|
||||
multisampled: bool,
|
||||
};
|
||||
|
||||
pub const DataLayout = extern struct {
|
||||
next_in_chain: *const ChainedStruct,
|
||||
offset: u64,
|
||||
bytes_per_row: u32,
|
||||
rows_per_image: u32,
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue