gpu: add BindGroupEntry
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
fd48c830e1
commit
a541bf4fa1
4 changed files with 35 additions and 11 deletions
17
gpu/src/structs.zig
Normal file
17
gpu/src/structs.zig
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue