gpu: move BindGroupEntry -> BindGroup.Entry

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-11 15:54:00 -07:00 committed by Stephen Gutekanst
parent 3b2dff540d
commit 4750abfbde
2 changed files with 14 additions and 10 deletions

View file

@ -1,3 +1,7 @@
const Buffer = @import("Buffer.zig");
const Sampler = @import("Sampler.zig");
const TextureView = @import("TextureView.zig");
const BindGroup = @This();
/// The type erased pointer to the BindGroup implementation
@ -23,9 +27,19 @@ pub inline fn setLabel(group: BindGroup, label: [:0]const u8) void {
group.vtable.setLabel(group.ptr, label);
}
pub const Entry = struct {
binding: u32,
buffer: Buffer,
offset: u64,
size: u64,
sampler: Sampler,
texture_view: TextureView,
};
test "syntax" {
_ = VTable;
_ = reference;
_ = release;
_ = setLabel;
_ = Entry;
}

View file

@ -8,15 +8,6 @@ const IndexFormat = @import("enums.zig").IndexFormat;
const FrontFace = @import("enums.zig").FrontFace;
const CullMode = @import("enums.zig").CullMode;
pub const BindGroupEntry = struct {
binding: u32,
buffer: Buffer,
offset: u64,
size: u64,
sampler: Sampler,
texture_view: TextureView,
};
pub const CompilationMessage = struct {
message: [:0]const u8,
type: CompilationMessageType,
@ -40,7 +31,6 @@ pub const PrimitiveState = struct {
};
test "syntax" {
_ = BindGroupEntry;
_ = CompilationMessage;
_ = MultisampleState;
_ = PrimitiveState;