gpu: use refAllDeclsRecursive to find and fix mistakes
This commit is contained in:
parent
6cd965e953
commit
348733867c
2 changed files with 2 additions and 43 deletions
|
|
@ -18,10 +18,6 @@ pub inline fn release(bundle: RenderBundle) void {
|
||||||
bundle.vtable.release(bundle.ptr);
|
bundle.vtable.release(bundle.ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub inline fn setLabel(bundle: RenderBundle, label: [:0]const u8) void {
|
|
||||||
bundle.vtable.setLabel(bundle.ptr, label);
|
|
||||||
}
|
|
||||||
|
|
||||||
pub const Descriptor = struct {
|
pub const Descriptor = struct {
|
||||||
label: ?[*:0]const u8 = null,
|
label: ?[*:0]const u8 = null,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ pub const RequestAdapterResponse = Interface.RequestAdapterResponse;
|
||||||
|
|
||||||
pub const Adapter = @import("Adapter.zig");
|
pub const Adapter = @import("Adapter.zig");
|
||||||
pub const RequestDeviceErrorCode = Adapter.RequestDeviceErrorCode;
|
pub const RequestDeviceErrorCode = Adapter.RequestDeviceErrorCode;
|
||||||
pub const RequestDeviceError = Adapter.RequesatDeviceError;
|
pub const RequestDeviceError = Adapter.RequestDeviceError;
|
||||||
pub const RequestDeviceCallback = Adapter.RequestDeviceCallback;
|
pub const RequestDeviceCallback = Adapter.RequestDeviceCallback;
|
||||||
pub const RequestDeviceResponse = Adapter.RequestDeviceResponse;
|
pub const RequestDeviceResponse = Adapter.RequestDeviceResponse;
|
||||||
|
|
||||||
|
|
@ -155,42 +155,5 @@ const whole_map_size: u32 = std.math.maxInt(c_int);
|
||||||
const whole_size: u64 = 0xffffffffffffffff;
|
const whole_size: u64 = 0xffffffffffffffff;
|
||||||
|
|
||||||
test {
|
test {
|
||||||
// Root interface/implementations
|
std.testing.refAllDeclsRecursive(@This());
|
||||||
_ = Interface;
|
|
||||||
_ = NativeInstance;
|
|
||||||
|
|
||||||
// Interfaces
|
|
||||||
_ = Adapter;
|
|
||||||
_ = Device;
|
|
||||||
_ = Surface;
|
|
||||||
_ = Limits;
|
|
||||||
_ = Queue;
|
|
||||||
_ = CommandBuffer;
|
|
||||||
_ = ShaderModule;
|
|
||||||
_ = SwapChain;
|
|
||||||
_ = TextureView;
|
|
||||||
_ = Texture;
|
|
||||||
_ = Sampler;
|
|
||||||
_ = RenderPipeline;
|
|
||||||
_ = RenderPassEncoder;
|
|
||||||
_ = RenderBundleEncoder;
|
|
||||||
_ = RenderBundle;
|
|
||||||
_ = QuerySet;
|
|
||||||
_ = PipelineLayout;
|
|
||||||
_ = ExternalTexture;
|
|
||||||
_ = BindGroup;
|
|
||||||
_ = BindGroupLayout;
|
|
||||||
_ = Buffer;
|
|
||||||
_ = CommandEncoder;
|
|
||||||
_ = ComputePassEncoder;
|
|
||||||
_ = ComputePipeline;
|
|
||||||
|
|
||||||
// Data structures ABI-compatible with webgpu.h
|
|
||||||
_ = Limits;
|
|
||||||
|
|
||||||
// Data structures not ABI-compatible with webgpu.h
|
|
||||||
_ = MultisampleState;
|
|
||||||
|
|
||||||
// Enumerations
|
|
||||||
_ = Feature;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue