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