gpu: add BindGroupEntry

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-11 15:09:13 -07:00 committed by Stephen Gutekanst
parent fd48c830e1
commit a541bf4fa1
4 changed files with 35 additions and 11 deletions

17
gpu/src/structs.zig Normal file
View file

@ -0,0 +1,17 @@
//! Structures which are not ABI compatible with webgpu.h
const Buffer = @import("Buffer.zig");
const Sampler = @import("Sampler.zig");
const TextureView = @import("TextureView.zig");
pub const BindGroupEntry = struct {
binding: u32,
buffer: Buffer,
offset: u64,
size: u64,
sampler: Sampler,
texture_view: TextureView,
};
test "syntax" {
_ = BindGroupEntry;
}