gpu: use unnamed tests for inclusion
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
9e7d37a9ea
commit
2d04fb91bc
29 changed files with 29 additions and 29 deletions
|
|
@ -193,7 +193,7 @@ pub fn waitForDevice(adapter: Adapter, descriptor: *const Device.Descriptor) Req
|
|||
return response;
|
||||
}
|
||||
|
||||
test "syntax" {
|
||||
test {
|
||||
_ = VTable;
|
||||
_ = hasFeature;
|
||||
_ = Properties;
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ pub const Descriptor = struct {
|
|||
entries: []const Entry,
|
||||
};
|
||||
|
||||
test "syntax" {
|
||||
test {
|
||||
_ = VTable;
|
||||
_ = reference;
|
||||
_ = release;
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ pub const Entry = struct {
|
|||
storage_texture: StorageTextureBindingLayout,
|
||||
};
|
||||
|
||||
test "syntax" {
|
||||
test {
|
||||
_ = VTable;
|
||||
_ = reference;
|
||||
_ = release;
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ pub const MapMode = enum(u32) {
|
|||
write = 0x00000002,
|
||||
};
|
||||
|
||||
test "syntax" {
|
||||
test {
|
||||
_ = VTable;
|
||||
_ = reference;
|
||||
_ = release;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ pub const Descriptor = struct {
|
|||
label: ?[*:0]const u8 = null,
|
||||
};
|
||||
|
||||
test "syntax" {
|
||||
test {
|
||||
_ = VTable;
|
||||
_ = reference;
|
||||
_ = release;
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ pub const Descriptor = struct {
|
|||
label: ?[*:0]const u8 = null,
|
||||
};
|
||||
|
||||
test "syntax" {
|
||||
test {
|
||||
_ = VTable;
|
||||
_ = reference;
|
||||
_ = release;
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ pub const Descriptor = struct {
|
|||
timestamp_writes: []const ComputePassTimestampWrite,
|
||||
};
|
||||
|
||||
test "syntax" {
|
||||
test {
|
||||
_ = VTable;
|
||||
_ = reference;
|
||||
_ = release;
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ pub const CreateCallback = struct {
|
|||
}
|
||||
};
|
||||
|
||||
test "syntax" {
|
||||
test {
|
||||
_ = VTable;
|
||||
_ = reference;
|
||||
_ = release;
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ pub const LostReason = enum(u32) {
|
|||
destroyed = 0x00000001,
|
||||
};
|
||||
|
||||
test "syntax" {
|
||||
test {
|
||||
_ = VTable;
|
||||
_ = getQueue;
|
||||
_ = reference;
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ pub const Descriptor = struct {
|
|||
color_space: PredefinedColorSpace,
|
||||
};
|
||||
|
||||
test "syntax" {
|
||||
test {
|
||||
_ = VTable;
|
||||
_ = reference;
|
||||
_ = release;
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ pub fn waitForAdapter(interface: Interface, options: *const RequestAdapterOption
|
|||
return response;
|
||||
}
|
||||
|
||||
test "syntax" {
|
||||
test {
|
||||
_ = VTable;
|
||||
_ = reference;
|
||||
_ = release;
|
||||
|
|
|
|||
|
|
@ -1364,7 +1364,7 @@ const compute_pipeline_vtable = ComputePipeline.VTable{
|
|||
}).getBindGroupLayout,
|
||||
};
|
||||
|
||||
test "syntax" {
|
||||
test {
|
||||
_ = wrap;
|
||||
_ = interface_vtable;
|
||||
_ = interface;
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ pub const Descriptor = struct {
|
|||
bind_group_layouts: []const BindGroupLayout,
|
||||
};
|
||||
|
||||
test "syntax" {
|
||||
test {
|
||||
_ = VTable;
|
||||
_ = reference;
|
||||
_ = release;
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ pub const Descriptor = struct {
|
|||
pipeline_statistics: []PipelineStatistic,
|
||||
};
|
||||
|
||||
test "syntax" {
|
||||
test {
|
||||
_ = VTable;
|
||||
_ = reference;
|
||||
_ = release;
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ pub const WorkDoneStatus = enum(u32) {
|
|||
Force32 = 0x7FFFFFFF,
|
||||
};
|
||||
|
||||
test "syntax" {
|
||||
test {
|
||||
_ = VTable;
|
||||
_ = reference;
|
||||
_ = release;
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ pub const Descriptor = struct {
|
|||
label: ?[*:0]const u8 = null,
|
||||
};
|
||||
|
||||
test "syntax" {
|
||||
test {
|
||||
_ = VTable;
|
||||
_ = reference;
|
||||
_ = release;
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ pub const Descriptor = struct {
|
|||
stencil_read_only: bool,
|
||||
};
|
||||
|
||||
test "syntax" {
|
||||
test {
|
||||
_ = VTable;
|
||||
_ = reference;
|
||||
_ = release;
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ pub const Descriptor = struct {
|
|||
timestamp_writes: ?[]RenderPassTimestampWrite = null,
|
||||
};
|
||||
|
||||
test "syntax" {
|
||||
test {
|
||||
_ = VTable;
|
||||
_ = reference;
|
||||
_ = release;
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ pub const CreateCallback = struct {
|
|||
}
|
||||
};
|
||||
|
||||
test "syntax" {
|
||||
test {
|
||||
_ = VTable;
|
||||
_ = reference;
|
||||
_ = release;
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ pub const Descriptor = struct {
|
|||
max_anisotropy: u16,
|
||||
};
|
||||
|
||||
test "syntax" {
|
||||
test {
|
||||
_ = VTable;
|
||||
_ = reference;
|
||||
_ = release;
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ pub const Descriptor = struct {
|
|||
},
|
||||
};
|
||||
|
||||
test "syntax" {
|
||||
test {
|
||||
_ = VTable;
|
||||
_ = reference;
|
||||
_ = release;
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ pub const Descriptor = union(DescriptorTag) {
|
|||
},
|
||||
};
|
||||
|
||||
test "syntax" {
|
||||
test {
|
||||
_ = VTable;
|
||||
_ = reference;
|
||||
_ = release;
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ pub const Descriptor = struct {
|
|||
}
|
||||
};
|
||||
|
||||
test "syntax" {
|
||||
test {
|
||||
_ = VTable;
|
||||
_ = reference;
|
||||
_ = release;
|
||||
|
|
|
|||
|
|
@ -199,7 +199,7 @@ pub const DataLayout = struct {
|
|||
rows_per_image: u32,
|
||||
};
|
||||
|
||||
test "syntax" {
|
||||
test {
|
||||
_ = VTable;
|
||||
_ = reference;
|
||||
_ = release;
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ pub const Dimension = enum(u32) {
|
|||
dimension_3d = 0x00000006,
|
||||
};
|
||||
|
||||
test "syntax" {
|
||||
test {
|
||||
_ = VTable;
|
||||
_ = reference;
|
||||
_ = release;
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ pub const VertexBufferLayout = extern struct {
|
|||
attributes: *const VertexAttribute,
|
||||
};
|
||||
|
||||
test "syntax" {
|
||||
test {
|
||||
_ = Limits;
|
||||
_ = Color;
|
||||
_ = Extent3D;
|
||||
|
|
|
|||
|
|
@ -255,7 +255,7 @@ test "name" {
|
|||
try std.testing.expect(std.mem.eql(u8, @tagName(Feature.timestamp_query), "timestamp_query"));
|
||||
}
|
||||
|
||||
test "syntax" {
|
||||
test {
|
||||
_ = Feature;
|
||||
_ = AddressMode;
|
||||
_ = PresentMode;
|
||||
|
|
|
|||
|
|
@ -152,7 +152,7 @@ const stride_undefined: u32 = 0xffffffff;
|
|||
const whole_map_size: u32 = std.math.maxInt(c_int);
|
||||
const whole_size: u64 = 0xffffffffffffffff;
|
||||
|
||||
test "syntax" {
|
||||
test {
|
||||
// Root interface/implementations
|
||||
_ = Interface;
|
||||
_ = NativeInstance;
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@ pub const ImageCopyTexture = struct {
|
|||
aspect: Texture.Aspect,
|
||||
};
|
||||
|
||||
test "syntax" {
|
||||
test {
|
||||
_ = MultisampleState;
|
||||
_ = PrimitiveState;
|
||||
_ = StorageTextureBindingLayout;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue