gpu: add Texture.BindingLayout
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
9ee22aeaa8
commit
54b0ffdcc6
2 changed files with 9 additions and 7 deletions
|
|
@ -1,10 +1,3 @@
|
||||||
pub const WGPUTextureBindingLayout = extern struct {
|
|
||||||
next_in_chain: *const ChainedStruct,
|
|
||||||
sample_type: TextureSampleType,
|
|
||||||
view_dimension: TextureViewDimension,
|
|
||||||
multisampled: bool,
|
|
||||||
};
|
|
||||||
|
|
||||||
pub const WGPUTextureDataLayout = extern struct {
|
pub const WGPUTextureDataLayout = extern struct {
|
||||||
next_in_chain: *const ChainedStruct,
|
next_in_chain: *const ChainedStruct,
|
||||||
offset: u64,
|
offset: u64,
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
|
const ChainedStruct = @import("types.zig").ChainedStruct;
|
||||||
|
const TextureView = @import("texture_view.zig").TextureView;
|
||||||
|
|
||||||
pub const Texture = enum(usize) {
|
pub const Texture = enum(usize) {
|
||||||
_,
|
_,
|
||||||
|
|
@ -158,4 +160,11 @@ pub const Texture = enum(usize) {
|
||||||
return @truncate(u6, @bitCast(u32, a)) == @truncate(u6, @bitCast(u32, b));
|
return @truncate(u6, @bitCast(u32, a)) == @truncate(u6, @bitCast(u32, b));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const BindingLayout = extern struct {
|
||||||
|
next_in_chain: *const ChainedStruct,
|
||||||
|
sample_type: SampleType,
|
||||||
|
view_dimension: TextureView.Dimension,
|
||||||
|
multisampled: bool,
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue