gpu: add CommandEncoder.Descriptor
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
2b8e0bb43a
commit
727a329632
2 changed files with 5 additions and 5 deletions
|
|
@ -40,8 +40,13 @@ pub inline fn setLabel(enc: CommandEncoder, label: [:0]const u8) void {
|
|||
enc.vtable.setLabel(enc.ptr, label);
|
||||
}
|
||||
|
||||
pub const Descriptor = struct {
|
||||
label: ?[*:0]const u8 = null,
|
||||
};
|
||||
|
||||
test "syntax" {
|
||||
_ = VTable;
|
||||
_ = reference;
|
||||
_ = release;
|
||||
_ = Descriptor;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,11 +22,6 @@ typedef struct WGPUChainedStructOut {
|
|||
|
||||
|
||||
|
||||
typedef struct WGPUCommandEncoderDescriptor {
|
||||
WGPUChainedStruct const * nextInChain;
|
||||
char const * label;
|
||||
} WGPUCommandEncoderDescriptor;
|
||||
|
||||
typedef struct WGPUDawnCacheDeviceDescriptor {
|
||||
WGPUChainedStruct chain;
|
||||
char const * isolationKey;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue