zgpu

git clone git://git.electrosoup.com/zgpu
Log | Files | Refs | Submodules | README

command_buffer.zig (413B)


      1 const c = @import("c.zig").c;
      2 const ChainedStruct = @import("common.zig").ChainedStruct;
      3 const StringView = @import("common.zig").StringView;
      4 
      5 pub const CommandBuffer = opaque {
      6     pub const Descriptor = extern struct {
      7         next: ?*const ChainedStruct = null,
      8         label: StringView,
      9     };
     10 
     11     pub fn release(buffer: *CommandBuffer) void {
     12         c.wgpuCommandBufferRelease(@ptrCast(buffer));
     13     }
     14 };