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