diff --git a/gpu/src/Buffer.zig b/gpu/src/Buffer.zig index bcca5c95..7af054fa 100644 --- a/gpu/src/Buffer.zig +++ b/gpu/src/Buffer.zig @@ -3,6 +3,7 @@ const std = @import("std"); pub const Buffer = enum(usize) { _, + // TODO: verify there is a use case for nullable value of this type. pub const none: Buffer = @intToEnum(Buffer, 0); pub const BindingType = enum(u32) { diff --git a/gpu/src/Device.zig b/gpu/src/Device.zig index 78fd01d9..c5e9192f 100644 --- a/gpu/src/Device.zig +++ b/gpu/src/Device.zig @@ -1,6 +1,7 @@ pub const Device = enum(usize) { _, + // TODO: verify there is a use case for nullable value of this type. pub const none: Device = @intToEnum(Device, 0); pub const LostReason = enum(u32) { diff --git a/gpu/src/Instance.zig b/gpu/src/Instance.zig index bf619b41..52e1890b 100644 --- a/gpu/src/Instance.zig +++ b/gpu/src/Instance.zig @@ -1,5 +1,6 @@ pub const Instance = enum(usize) { _, + // TODO: verify there is a use case for nullable value of this type. pub const none: Instance = @intToEnum(Instance, 0); }; diff --git a/gpu/src/Queue.zig b/gpu/src/Queue.zig index 394af603..1349b769 100644 --- a/gpu/src/Queue.zig +++ b/gpu/src/Queue.zig @@ -1,6 +1,7 @@ pub const Queue = enum(usize) { _, + // TODO: verify there is a use case for nullable value of this type. pub const none: Queue = @intToEnum(Queue, 0); pub const WorkDoneStatus = enum(u32) { diff --git a/gpu/src/Sampler.zig b/gpu/src/Sampler.zig index 72b6c00e..915cd182 100644 --- a/gpu/src/Sampler.zig +++ b/gpu/src/Sampler.zig @@ -1,6 +1,7 @@ pub const Sampler = enum(usize) { _, + // TODO: verify there is a use case for nullable value of this type. pub const none: Sampler = @intToEnum(Sampler, 0); pub const AddressMode = enum(u32) { diff --git a/gpu/src/Surface.zig b/gpu/src/Surface.zig index 81241ac3..b1691e2a 100644 --- a/gpu/src/Surface.zig +++ b/gpu/src/Surface.zig @@ -1,5 +1,6 @@ pub const Surface = enum(usize) { _, + // TODO: verify there is a use case for nullable value of this type. pub const none: Surface = @intToEnum(Surface, 0); }; diff --git a/gpu/src/Texture.zig b/gpu/src/Texture.zig index 41e8aa42..a2932f9a 100644 --- a/gpu/src/Texture.zig +++ b/gpu/src/Texture.zig @@ -3,6 +3,7 @@ const std = @import("std"); pub const Texture = enum(usize) { _, + // TODO: verify there is a use case for nullable value of this type. pub const none: Texture = @intToEnum(Texture, 0); pub const Aspect = enum(u32) { diff --git a/gpu/src/adapter.zig b/gpu/src/adapter.zig index d92e1463..cf4437b1 100644 --- a/gpu/src/adapter.zig +++ b/gpu/src/adapter.zig @@ -4,6 +4,7 @@ const ChainedStructOut = @import("types.zig").ChainedStructOut; pub const Adapter = enum(usize) { _, + // TODO: verify there is a use case for nullable value of this type. pub const none: Adapter = @intToEnum(Adapter, 0); pub const Type = enum(u32) { diff --git a/gpu/src/bind_group.zig b/gpu/src/bind_group.zig index ecf4ad55..c77aa4ae 100644 --- a/gpu/src/bind_group.zig +++ b/gpu/src/bind_group.zig @@ -1,5 +1,6 @@ pub const BindGroup = enum(usize) { _, + // TODO: verify there is a use case for nullable value of this type. pub const none: BindGroup = @intToEnum(BindGroup, 0); }; diff --git a/gpu/src/bind_group_layout.zig b/gpu/src/bind_group_layout.zig index 1bc5d48e..af904921 100644 --- a/gpu/src/bind_group_layout.zig +++ b/gpu/src/bind_group_layout.zig @@ -1,5 +1,6 @@ pub const BindGroupLayout = enum(usize) { _, + // TODO: verify there is a use case for nullable value of this type. pub const none: BindGroupLayout = @intToEnum(BindGroupLayout, 0); }; diff --git a/gpu/src/command_buffer.zig b/gpu/src/command_buffer.zig index cc93af7d..f8354a07 100644 --- a/gpu/src/command_buffer.zig +++ b/gpu/src/command_buffer.zig @@ -1,5 +1,6 @@ pub const CommandBuffer = enum(usize) { _, + // TODO: verify there is a use case for nullable value of this type. pub const none: CommandBuffer = @intToEnum(CommandBuffer, 0); }; diff --git a/gpu/src/command_encoder.zig b/gpu/src/command_encoder.zig index d51e42bc..06794114 100644 --- a/gpu/src/command_encoder.zig +++ b/gpu/src/command_encoder.zig @@ -1,5 +1,6 @@ pub const CommandEncoder = enum(usize) { _, + // TODO: verify there is a use case for nullable value of this type. pub const none: CommandEncoder = @intToEnum(CommandEncoder, 0); }; diff --git a/gpu/src/compute_pass_encoder.zig b/gpu/src/compute_pass_encoder.zig index 7c1c7ba0..444a6bb1 100644 --- a/gpu/src/compute_pass_encoder.zig +++ b/gpu/src/compute_pass_encoder.zig @@ -1,5 +1,6 @@ pub const ComputePassEncoder = enum(usize) { _, + // TODO: verify there is a use case for nullable value of this type. pub const none: ComputePassEncoder = @intToEnum(ComputePassEncoder, 0); }; diff --git a/gpu/src/compute_pipeline.zig b/gpu/src/compute_pipeline.zig index 574b0629..02e1afa2 100644 --- a/gpu/src/compute_pipeline.zig +++ b/gpu/src/compute_pipeline.zig @@ -1,5 +1,6 @@ pub const ComputePipeline = enum(usize) { _, + // TODO: verify there is a use case for nullable value of this type. pub const none: ComputePipeline = @intToEnum(ComputePipeline, 0); }; diff --git a/gpu/src/external_texture.zig b/gpu/src/external_texture.zig index 63e2a57c..f98d8449 100644 --- a/gpu/src/external_texture.zig +++ b/gpu/src/external_texture.zig @@ -1,5 +1,6 @@ pub const ExternalTexture = enum(usize) { _, + // TODO: verify there is a use case for nullable value of this type. pub const none: ExternalTexture = @intToEnum(ExternalTexture, 0); }; diff --git a/gpu/src/pipeline_layout.zig b/gpu/src/pipeline_layout.zig index f75e141d..c6fb10b9 100644 --- a/gpu/src/pipeline_layout.zig +++ b/gpu/src/pipeline_layout.zig @@ -1,5 +1,6 @@ pub const PipelineLayout = enum(usize) { _, + // TODO: verify there is a use case for nullable value of this type. pub const none: PipelineLayout = @intToEnum(PipelineLayout, 0); }; diff --git a/gpu/src/query_set.zig b/gpu/src/query_set.zig index b3f579ef..5100acd8 100644 --- a/gpu/src/query_set.zig +++ b/gpu/src/query_set.zig @@ -1,5 +1,6 @@ pub const QuerySet = enum(usize) { _, + // TODO: verify there is a use case for nullable value of this type. pub const none: QuerySet = @intToEnum(QuerySet, 0); }; diff --git a/gpu/src/render_bundle.zig b/gpu/src/render_bundle.zig index 68b5c384..a194b954 100644 --- a/gpu/src/render_bundle.zig +++ b/gpu/src/render_bundle.zig @@ -1,5 +1,6 @@ pub const RenderBundle = enum(usize) { _, + // TODO: verify there is a use case for nullable value of this type. pub const none: RenderBundle = @intToEnum(RenderBundle, 0); }; diff --git a/gpu/src/render_bundle_encoder.zig b/gpu/src/render_bundle_encoder.zig index cdba82b1..c61afb3a 100644 --- a/gpu/src/render_bundle_encoder.zig +++ b/gpu/src/render_bundle_encoder.zig @@ -1,5 +1,6 @@ pub const RenderBundleEncoder = enum(usize) { _, + // TODO: verify there is a use case for nullable value of this type. pub const none: RenderBundleEncoder = @intToEnum(RenderBundleEncoder, 0); }; diff --git a/gpu/src/render_pass_encoder.zig b/gpu/src/render_pass_encoder.zig index df989acc..f9b057ef 100644 --- a/gpu/src/render_pass_encoder.zig +++ b/gpu/src/render_pass_encoder.zig @@ -1,5 +1,6 @@ pub const RenderPassEncoder = enum(usize) { _, + // TODO: verify there is a use case for nullable value of this type. pub const none: RenderPassEncoder = @intToEnum(RenderPassEncoder, 0); }; diff --git a/gpu/src/render_pipeline.zig b/gpu/src/render_pipeline.zig index 46579207..b29032cf 100644 --- a/gpu/src/render_pipeline.zig +++ b/gpu/src/render_pipeline.zig @@ -1,5 +1,6 @@ pub const RenderPipeline = enum(usize) { _, + // TODO: verify there is a use case for nullable value of this type. pub const none: RenderPipeline = @intToEnum(RenderPipeline, 0); }; diff --git a/gpu/src/shader_module.zig b/gpu/src/shader_module.zig index 35d7f429..4a06fe18 100644 --- a/gpu/src/shader_module.zig +++ b/gpu/src/shader_module.zig @@ -1,5 +1,6 @@ pub const ShaderModule = enum(usize) { _, + // TODO: verify there is a use case for nullable value of this type. pub const none: ShaderModule = @intToEnum(ShaderModule, 0); }; diff --git a/gpu/src/swap_chain.zig b/gpu/src/swap_chain.zig index 8293fdbc..c272e4f8 100644 --- a/gpu/src/swap_chain.zig +++ b/gpu/src/swap_chain.zig @@ -1,5 +1,6 @@ pub const SwapChain = enum(usize) { _, + // TODO: verify there is a use case for nullable value of this type. pub const none: SwapChain = @intToEnum(SwapChain, 0); }; diff --git a/gpu/src/texture_view.zig b/gpu/src/texture_view.zig index 9cb3fdb5..cb25202f 100644 --- a/gpu/src/texture_view.zig +++ b/gpu/src/texture_view.zig @@ -1,6 +1,7 @@ pub const TextureView = enum(usize) { _, + // TODO: verify there is a use case for nullable value of this type. pub const none: TextureView = @intToEnum(TextureView, 0); pub const Dimension = enum(u32) {