gpu: fix confusing terminology conflict between WebGPU vs. Zig "undefined"
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
fa96792168
commit
75a09c7828
5 changed files with 49 additions and 42 deletions
|
|
@ -4,8 +4,8 @@ const Texture = @import("texture.zig").Texture;
|
|||
const TextureView = @import("texture_view.zig").TextureView;
|
||||
const Buffer = @import("buffer.zig").Buffer;
|
||||
const ShaderModule = @import("shader_module.zig").ShaderModule;
|
||||
const limit_u32_undefined = @import("main.zig").limit_u32_undefined;
|
||||
const limit_u64_undefined = @import("main.zig").limit_u64_undefined;
|
||||
const limit_u32_undef = @import("main.zig").limit_u32_undef;
|
||||
const limit_u64_undef = @import("main.zig").limit_u64_undef;
|
||||
|
||||
pub const AlphaMode = enum(u32) {
|
||||
premultiplied = 0x00000000,
|
||||
|
|
@ -400,34 +400,34 @@ pub const Extent3D = extern struct {
|
|||
};
|
||||
|
||||
pub const Limits = extern struct {
|
||||
max_texture_dimension_1d: u32 = limit_u32_undefined,
|
||||
max_texture_dimension_2d: u32 = limit_u32_undefined,
|
||||
max_texture_dimension_3d: u32 = limit_u32_undefined,
|
||||
max_texture_array_layers: u32 = limit_u32_undefined,
|
||||
max_bind_groups: u32 = limit_u32_undefined,
|
||||
max_dynamic_uniform_buffers_per_pipeline_layout: u32 = limit_u32_undefined,
|
||||
max_dynamic_storage_buffers_per_pipeline_layout: u32 = limit_u32_undefined,
|
||||
max_sampled_textures_per_shader_stage: u32 = limit_u32_undefined,
|
||||
max_samplers_per_shader_stage: u32 = limit_u32_undefined,
|
||||
max_storage_buffers_per_shader_stage: u32 = limit_u32_undefined,
|
||||
max_storage_textures_per_shader_stage: u32 = limit_u32_undefined,
|
||||
max_uniform_buffers_per_shader_stage: u32 = limit_u32_undefined,
|
||||
max_uniform_buffer_binding_size: u64 = limit_u64_undefined,
|
||||
max_storage_buffer_binding_size: u64 = limit_u64_undefined,
|
||||
min_uniform_buffer_offset_alignment: u32 = limit_u32_undefined,
|
||||
min_storage_buffer_offset_alignment: u32 = limit_u32_undefined,
|
||||
max_vertex_buffers: u32 = limit_u32_undefined,
|
||||
max_vertex_attributes: u32 = limit_u32_undefined,
|
||||
max_vertex_buffer_array_stride: u32 = limit_u32_undefined,
|
||||
max_inter_stage_shader_components: u32 = limit_u32_undefined,
|
||||
max_inter_stage_shader_variables: u32 = limit_u32_undefined,
|
||||
max_color_attachments: u32 = limit_u32_undefined,
|
||||
max_compute_workgroup_storage_size: u32 = limit_u32_undefined,
|
||||
max_compute_invocations_per_workgroup: u32 = limit_u32_undefined,
|
||||
max_compute_workgroup_size_x: u32 = limit_u32_undefined,
|
||||
max_compute_workgroup_size_y: u32 = limit_u32_undefined,
|
||||
max_compute_workgroup_size_z: u32 = limit_u32_undefined,
|
||||
max_compute_workgroups_per_dimension: u32 = limit_u32_undefined,
|
||||
max_texture_dimension_1d: u32 = limit_u32_undef,
|
||||
max_texture_dimension_2d: u32 = limit_u32_undef,
|
||||
max_texture_dimension_3d: u32 = limit_u32_undef,
|
||||
max_texture_array_layers: u32 = limit_u32_undef,
|
||||
max_bind_groups: u32 = limit_u32_undef,
|
||||
max_dynamic_uniform_buffers_per_pipeline_layout: u32 = limit_u32_undef,
|
||||
max_dynamic_storage_buffers_per_pipeline_layout: u32 = limit_u32_undef,
|
||||
max_sampled_textures_per_shader_stage: u32 = limit_u32_undef,
|
||||
max_samplers_per_shader_stage: u32 = limit_u32_undef,
|
||||
max_storage_buffers_per_shader_stage: u32 = limit_u32_undef,
|
||||
max_storage_textures_per_shader_stage: u32 = limit_u32_undef,
|
||||
max_uniform_buffers_per_shader_stage: u32 = limit_u32_undef,
|
||||
max_uniform_buffer_binding_size: u64 = limit_u64_undef,
|
||||
max_storage_buffer_binding_size: u64 = limit_u64_undef,
|
||||
min_uniform_buffer_offset_alignment: u32 = limit_u32_undef,
|
||||
min_storage_buffer_offset_alignment: u32 = limit_u32_undef,
|
||||
max_vertex_buffers: u32 = limit_u32_undef,
|
||||
max_vertex_attributes: u32 = limit_u32_undef,
|
||||
max_vertex_buffer_array_stride: u32 = limit_u32_undef,
|
||||
max_inter_stage_shader_components: u32 = limit_u32_undef,
|
||||
max_inter_stage_shader_variables: u32 = limit_u32_undef,
|
||||
max_color_attachments: u32 = limit_u32_undef,
|
||||
max_compute_workgroup_storage_size: u32 = limit_u32_undef,
|
||||
max_compute_invocations_per_workgroup: u32 = limit_u32_undef,
|
||||
max_compute_workgroup_size_x: u32 = limit_u32_undef,
|
||||
max_compute_workgroup_size_y: u32 = limit_u32_undef,
|
||||
max_compute_workgroup_size_z: u32 = limit_u32_undef,
|
||||
max_compute_workgroups_per_dimension: u32 = limit_u32_undef,
|
||||
};
|
||||
|
||||
pub const Origin3D = extern struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue