gpu: implement BindGroup methods
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
e140917181
commit
f1fcd3b666
1 changed files with 10 additions and 6 deletions
|
|
@ -3,16 +3,20 @@ const Sampler = @import("sampler.zig").Sampler;
|
||||||
const TextureView = @import("texture_view.zig").TextureView;
|
const TextureView = @import("texture_view.zig").TextureView;
|
||||||
const ChainedStruct = @import("types.zig").ChainedStruct;
|
const ChainedStruct = @import("types.zig").ChainedStruct;
|
||||||
const BindGroupLayout = @import("bind_group_layout.zig").BindGroupLayout;
|
const BindGroupLayout = @import("bind_group_layout.zig").BindGroupLayout;
|
||||||
|
const impl = @import("interface.zig").impl;
|
||||||
|
|
||||||
pub const BindGroup = *opaque {
|
pub const BindGroup = *opaque {
|
||||||
// TODO
|
pub inline fn setLabel(bind_group: BindGroup, label: [*:0]const u8) void {
|
||||||
// pub inline fn bindGroupSetLabel(bind_group: gpu.BindGroup, label: [*:0]const u8) void {
|
impl.bindGroupSetLabel(bind_group, label);
|
||||||
|
}
|
||||||
|
|
||||||
// TODO
|
pub inline fn reference(bind_group: BindGroup) void {
|
||||||
// pub inline fn bindGroupReference(bind_group: gpu.BindGroup) void {
|
impl.bindGroupReference(bind_group);
|
||||||
|
}
|
||||||
|
|
||||||
// TODO
|
pub inline fn release(bind_group: BindGroup) void {
|
||||||
// pub inline fn bindGroupRelease(bind_group: gpu.BindGroup) void {
|
impl.bindGroupRelease(bind_group);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const BindGroupEntry = extern struct {
|
pub const BindGroupEntry = extern struct {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue