diff --git a/ash/src/vk/bitflags.rs b/ash/src/vk/bitflags.rs index 572888f..d0f7f63 100644 --- a/ash/src/vk/bitflags.rs +++ b/ash/src/vk/bitflags.rs @@ -11,10 +11,10 @@ impl PipelineCacheCreateFlags {} pub struct CullModeFlags(pub(crate) Flags); vk_bitflags_wrapped!(CullModeFlags, 0b11, Flags); impl CullModeFlags { - pub const NONE: Self = CullModeFlags(0); - pub const FRONT: Self = CullModeFlags(0b1); - pub const BACK: Self = CullModeFlags(0b10); - pub const FRONT_AND_BACK: Self = CullModeFlags(0x0000_0003); + pub const NONE: Self = Self(0); + pub const FRONT: Self = Self(0b1); + pub const BACK: Self = Self(0b10); + pub const FRONT_AND_BACK: Self = Self(0x0000_0003); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -23,13 +23,13 @@ pub struct QueueFlags(pub(crate) Flags); vk_bitflags_wrapped!(QueueFlags, 0b1111, Flags); impl QueueFlags { #[doc = "Queue supports graphics operations"] - pub const GRAPHICS: Self = QueueFlags(0b1); + pub const GRAPHICS: Self = Self(0b1); #[doc = "Queue supports compute operations"] - pub const COMPUTE: Self = QueueFlags(0b10); + pub const COMPUTE: Self = Self(0b10); #[doc = "Queue supports transfer operations"] - pub const TRANSFER: Self = QueueFlags(0b100); + pub const TRANSFER: Self = Self(0b100); #[doc = "Queue supports sparse resource memory management operations"] - pub const SPARSE_BINDING: Self = QueueFlags(0b1000); + pub const SPARSE_BINDING: Self = Self(0b1000); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -50,15 +50,15 @@ pub struct MemoryPropertyFlags(pub(crate) Flags); vk_bitflags_wrapped!(MemoryPropertyFlags, 0b1_1111, Flags); impl MemoryPropertyFlags { #[doc = "If otherwise stated, then allocate memory on device"] - pub const DEVICE_LOCAL: Self = MemoryPropertyFlags(0b1); + pub const DEVICE_LOCAL: Self = Self(0b1); #[doc = "Memory is mappable by host"] - pub const HOST_VISIBLE: Self = MemoryPropertyFlags(0b10); + pub const HOST_VISIBLE: Self = Self(0b10); #[doc = "Memory will have i/o coherency. If not set, application may need to use vkFlushMappedMemoryRanges and vkInvalidateMappedMemoryRanges to flush/invalidate host cache"] - pub const HOST_COHERENT: Self = MemoryPropertyFlags(0b100); + pub const HOST_COHERENT: Self = Self(0b100); #[doc = "Memory will be cached by the host"] - pub const HOST_CACHED: Self = MemoryPropertyFlags(0b1000); + pub const HOST_CACHED: Self = Self(0b1000); #[doc = "Memory may be allocated by the driver when it is required"] - pub const LAZILY_ALLOCATED: Self = MemoryPropertyFlags(0b1_0000); + pub const LAZILY_ALLOCATED: Self = Self(0b1_0000); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -67,7 +67,7 @@ pub struct MemoryHeapFlags(pub(crate) Flags); vk_bitflags_wrapped!(MemoryHeapFlags, 0b1, Flags); impl MemoryHeapFlags { #[doc = "If set, heap represents device memory"] - pub const DEVICE_LOCAL: Self = MemoryHeapFlags(0b1); + pub const DEVICE_LOCAL: Self = Self(0b1); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -76,39 +76,39 @@ pub struct AccessFlags(pub(crate) Flags); vk_bitflags_wrapped!(AccessFlags, 0b1_1111_1111_1111_1111, Flags); impl AccessFlags { #[doc = "Controls coherency of indirect command reads"] - pub const INDIRECT_COMMAND_READ: Self = AccessFlags(0b1); + pub const INDIRECT_COMMAND_READ: Self = Self(0b1); #[doc = "Controls coherency of index reads"] - pub const INDEX_READ: Self = AccessFlags(0b10); + pub const INDEX_READ: Self = Self(0b10); #[doc = "Controls coherency of vertex attribute reads"] - pub const VERTEX_ATTRIBUTE_READ: Self = AccessFlags(0b100); + pub const VERTEX_ATTRIBUTE_READ: Self = Self(0b100); #[doc = "Controls coherency of uniform buffer reads"] - pub const UNIFORM_READ: Self = AccessFlags(0b1000); + pub const UNIFORM_READ: Self = Self(0b1000); #[doc = "Controls coherency of input attachment reads"] - pub const INPUT_ATTACHMENT_READ: Self = AccessFlags(0b1_0000); + pub const INPUT_ATTACHMENT_READ: Self = Self(0b1_0000); #[doc = "Controls coherency of shader reads"] - pub const SHADER_READ: Self = AccessFlags(0b10_0000); + pub const SHADER_READ: Self = Self(0b10_0000); #[doc = "Controls coherency of shader writes"] - pub const SHADER_WRITE: Self = AccessFlags(0b100_0000); + pub const SHADER_WRITE: Self = Self(0b100_0000); #[doc = "Controls coherency of color attachment reads"] - pub const COLOR_ATTACHMENT_READ: Self = AccessFlags(0b1000_0000); + pub const COLOR_ATTACHMENT_READ: Self = Self(0b1000_0000); #[doc = "Controls coherency of color attachment writes"] - pub const COLOR_ATTACHMENT_WRITE: Self = AccessFlags(0b1_0000_0000); + pub const COLOR_ATTACHMENT_WRITE: Self = Self(0b1_0000_0000); #[doc = "Controls coherency of depth/stencil attachment reads"] - pub const DEPTH_STENCIL_ATTACHMENT_READ: Self = AccessFlags(0b10_0000_0000); + pub const DEPTH_STENCIL_ATTACHMENT_READ: Self = Self(0b10_0000_0000); #[doc = "Controls coherency of depth/stencil attachment writes"] - pub const DEPTH_STENCIL_ATTACHMENT_WRITE: Self = AccessFlags(0b100_0000_0000); + pub const DEPTH_STENCIL_ATTACHMENT_WRITE: Self = Self(0b100_0000_0000); #[doc = "Controls coherency of transfer reads"] - pub const TRANSFER_READ: Self = AccessFlags(0b1000_0000_0000); + pub const TRANSFER_READ: Self = Self(0b1000_0000_0000); #[doc = "Controls coherency of transfer writes"] - pub const TRANSFER_WRITE: Self = AccessFlags(0b1_0000_0000_0000); + pub const TRANSFER_WRITE: Self = Self(0b1_0000_0000_0000); #[doc = "Controls coherency of host reads"] - pub const HOST_READ: Self = AccessFlags(0b10_0000_0000_0000); + pub const HOST_READ: Self = Self(0b10_0000_0000_0000); #[doc = "Controls coherency of host writes"] - pub const HOST_WRITE: Self = AccessFlags(0b100_0000_0000_0000); + pub const HOST_WRITE: Self = Self(0b100_0000_0000_0000); #[doc = "Controls coherency of memory reads"] - pub const MEMORY_READ: Self = AccessFlags(0b1000_0000_0000_0000); + pub const MEMORY_READ: Self = Self(0b1000_0000_0000_0000); #[doc = "Controls coherency of memory writes"] - pub const MEMORY_WRITE: Self = AccessFlags(0b1_0000_0000_0000_0000); + pub const MEMORY_WRITE: Self = Self(0b1_0000_0000_0000_0000); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -117,23 +117,23 @@ pub struct BufferUsageFlags(pub(crate) Flags); vk_bitflags_wrapped!(BufferUsageFlags, 0b1_1111_1111, Flags); impl BufferUsageFlags { #[doc = "Can be used as a source of transfer operations"] - pub const TRANSFER_SRC: Self = BufferUsageFlags(0b1); + pub const TRANSFER_SRC: Self = Self(0b1); #[doc = "Can be used as a destination of transfer operations"] - pub const TRANSFER_DST: Self = BufferUsageFlags(0b10); + pub const TRANSFER_DST: Self = Self(0b10); #[doc = "Can be used as TBO"] - pub const UNIFORM_TEXEL_BUFFER: Self = BufferUsageFlags(0b100); + pub const UNIFORM_TEXEL_BUFFER: Self = Self(0b100); #[doc = "Can be used as IBO"] - pub const STORAGE_TEXEL_BUFFER: Self = BufferUsageFlags(0b1000); + pub const STORAGE_TEXEL_BUFFER: Self = Self(0b1000); #[doc = "Can be used as UBO"] - pub const UNIFORM_BUFFER: Self = BufferUsageFlags(0b1_0000); + pub const UNIFORM_BUFFER: Self = Self(0b1_0000); #[doc = "Can be used as SSBO"] - pub const STORAGE_BUFFER: Self = BufferUsageFlags(0b10_0000); + pub const STORAGE_BUFFER: Self = Self(0b10_0000); #[doc = "Can be used as source of fixed-function index fetch (index buffer)"] - pub const INDEX_BUFFER: Self = BufferUsageFlags(0b100_0000); + pub const INDEX_BUFFER: Self = Self(0b100_0000); #[doc = "Can be used as source of fixed-function vertex fetch (VBO)"] - pub const VERTEX_BUFFER: Self = BufferUsageFlags(0b1000_0000); + pub const VERTEX_BUFFER: Self = Self(0b1000_0000); #[doc = "Can be the source of indirect parameters (e.g. indirect buffer, parameter buffer)"] - pub const INDIRECT_BUFFER: Self = BufferUsageFlags(0b1_0000_0000); + pub const INDIRECT_BUFFER: Self = Self(0b1_0000_0000); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -142,11 +142,11 @@ pub struct BufferCreateFlags(pub(crate) Flags); vk_bitflags_wrapped!(BufferCreateFlags, 0b111, Flags); impl BufferCreateFlags { #[doc = "Buffer should support sparse backing"] - pub const SPARSE_BINDING: Self = BufferCreateFlags(0b1); + pub const SPARSE_BINDING: Self = Self(0b1); #[doc = "Buffer should support sparse backing with partial residency"] - pub const SPARSE_RESIDENCY: Self = BufferCreateFlags(0b10); + pub const SPARSE_RESIDENCY: Self = Self(0b10); #[doc = "Buffer should support constent data access to physical memory ranges mapped into multiple locations of sparse buffers"] - pub const SPARSE_ALIASED: Self = BufferCreateFlags(0b100); + pub const SPARSE_ALIASED: Self = Self(0b100); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -158,14 +158,14 @@ vk_bitflags_wrapped!( Flags ); impl ShaderStageFlags { - pub const VERTEX: Self = ShaderStageFlags(0b1); - pub const TESSELLATION_CONTROL: Self = ShaderStageFlags(0b10); - pub const TESSELLATION_EVALUATION: Self = ShaderStageFlags(0b100); - pub const GEOMETRY: Self = ShaderStageFlags(0b1000); - pub const FRAGMENT: Self = ShaderStageFlags(0b1_0000); - pub const COMPUTE: Self = ShaderStageFlags(0b10_0000); - pub const ALL_GRAPHICS: Self = ShaderStageFlags(0x0000_001F); - pub const ALL: Self = ShaderStageFlags(0x7FFF_FFFF); + pub const VERTEX: Self = Self(0b1); + pub const TESSELLATION_CONTROL: Self = Self(0b10); + pub const TESSELLATION_EVALUATION: Self = Self(0b100); + pub const GEOMETRY: Self = Self(0b1000); + pub const FRAGMENT: Self = Self(0b1_0000); + pub const COMPUTE: Self = Self(0b10_0000); + pub const ALL_GRAPHICS: Self = Self(0x0000_001F); + pub const ALL: Self = Self(0x7FFF_FFFF); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -174,21 +174,21 @@ pub struct ImageUsageFlags(pub(crate) Flags); vk_bitflags_wrapped!(ImageUsageFlags, 0b1111_1111, Flags); impl ImageUsageFlags { #[doc = "Can be used as a source of transfer operations"] - pub const TRANSFER_SRC: Self = ImageUsageFlags(0b1); + pub const TRANSFER_SRC: Self = Self(0b1); #[doc = "Can be used as a destination of transfer operations"] - pub const TRANSFER_DST: Self = ImageUsageFlags(0b10); + pub const TRANSFER_DST: Self = Self(0b10); #[doc = "Can be sampled from (SAMPLED_IMAGE and COMBINED_IMAGE_SAMPLER descriptor types)"] - pub const SAMPLED: Self = ImageUsageFlags(0b100); + pub const SAMPLED: Self = Self(0b100); #[doc = "Can be used as storage image (STORAGE_IMAGE descriptor type)"] - pub const STORAGE: Self = ImageUsageFlags(0b1000); + pub const STORAGE: Self = Self(0b1000); #[doc = "Can be used as framebuffer color attachment"] - pub const COLOR_ATTACHMENT: Self = ImageUsageFlags(0b1_0000); + pub const COLOR_ATTACHMENT: Self = Self(0b1_0000); #[doc = "Can be used as framebuffer depth/stencil attachment"] - pub const DEPTH_STENCIL_ATTACHMENT: Self = ImageUsageFlags(0b10_0000); + pub const DEPTH_STENCIL_ATTACHMENT: Self = Self(0b10_0000); #[doc = "Image data not needed outside of rendering"] - pub const TRANSIENT_ATTACHMENT: Self = ImageUsageFlags(0b100_0000); + pub const TRANSIENT_ATTACHMENT: Self = Self(0b100_0000); #[doc = "Can be used as framebuffer input attachment"] - pub const INPUT_ATTACHMENT: Self = ImageUsageFlags(0b1000_0000); + pub const INPUT_ATTACHMENT: Self = Self(0b1000_0000); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -197,15 +197,15 @@ pub struct ImageCreateFlags(pub(crate) Flags); vk_bitflags_wrapped!(ImageCreateFlags, 0b1_1111, Flags); impl ImageCreateFlags { #[doc = "Image should support sparse backing"] - pub const SPARSE_BINDING: Self = ImageCreateFlags(0b1); + pub const SPARSE_BINDING: Self = Self(0b1); #[doc = "Image should support sparse backing with partial residency"] - pub const SPARSE_RESIDENCY: Self = ImageCreateFlags(0b10); + pub const SPARSE_RESIDENCY: Self = Self(0b10); #[doc = "Image should support constent data access to physical memory ranges mapped into multiple locations of sparse images"] - pub const SPARSE_ALIASED: Self = ImageCreateFlags(0b100); + pub const SPARSE_ALIASED: Self = Self(0b100); #[doc = "Allows image views to have different format than the base image"] - pub const MUTABLE_FORMAT: Self = ImageCreateFlags(0b1000); + pub const MUTABLE_FORMAT: Self = Self(0b1000); #[doc = "Allows creating image views with cube type from the created image"] - pub const CUBE_COMPATIBLE: Self = ImageCreateFlags(0b1_0000); + pub const CUBE_COMPATIBLE: Self = Self(0b1_0000); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -225,9 +225,9 @@ impl SamplerCreateFlags {} pub struct PipelineCreateFlags(pub(crate) Flags); vk_bitflags_wrapped!(PipelineCreateFlags, 0b111, Flags); impl PipelineCreateFlags { - pub const DISABLE_OPTIMIZATION: Self = PipelineCreateFlags(0b1); - pub const ALLOW_DERIVATIVES: Self = PipelineCreateFlags(0b10); - pub const DERIVATIVE: Self = PipelineCreateFlags(0b100); + pub const DISABLE_OPTIMIZATION: Self = Self(0b1); + pub const ALLOW_DERIVATIVES: Self = Self(0b10); + pub const DERIVATIVE: Self = Self(0b100); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -241,10 +241,10 @@ impl PipelineShaderStageCreateFlags {} pub struct ColorComponentFlags(pub(crate) Flags); vk_bitflags_wrapped!(ColorComponentFlags, 0b1111, Flags); impl ColorComponentFlags { - pub const R: Self = ColorComponentFlags(0b1); - pub const G: Self = ColorComponentFlags(0b10); - pub const B: Self = ColorComponentFlags(0b100); - pub const A: Self = ColorComponentFlags(0b1000); + pub const R: Self = Self(0b1); + pub const G: Self = Self(0b10); + pub const B: Self = Self(0b100); + pub const A: Self = Self(0b1000); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -252,7 +252,7 @@ impl ColorComponentFlags { pub struct FenceCreateFlags(pub(crate) Flags); vk_bitflags_wrapped!(FenceCreateFlags, 0b1, Flags); impl FenceCreateFlags { - pub const SIGNALED: Self = FenceCreateFlags(0b1); + pub const SIGNALED: Self = Self(0b1); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -267,31 +267,31 @@ pub struct FormatFeatureFlags(pub(crate) Flags); vk_bitflags_wrapped!(FormatFeatureFlags, 0b1_1111_1111_1111, Flags); impl FormatFeatureFlags { #[doc = "Format can be used for sampled images (SAMPLED_IMAGE and COMBINED_IMAGE_SAMPLER descriptor types)"] - pub const SAMPLED_IMAGE: Self = FormatFeatureFlags(0b1); + pub const SAMPLED_IMAGE: Self = Self(0b1); #[doc = "Format can be used for storage images (STORAGE_IMAGE descriptor type)"] - pub const STORAGE_IMAGE: Self = FormatFeatureFlags(0b10); + pub const STORAGE_IMAGE: Self = Self(0b10); #[doc = "Format supports atomic operations in case it is used for storage images"] - pub const STORAGE_IMAGE_ATOMIC: Self = FormatFeatureFlags(0b100); + pub const STORAGE_IMAGE_ATOMIC: Self = Self(0b100); #[doc = "Format can be used for uniform texel buffers (TBOs)"] - pub const UNIFORM_TEXEL_BUFFER: Self = FormatFeatureFlags(0b1000); + pub const UNIFORM_TEXEL_BUFFER: Self = Self(0b1000); #[doc = "Format can be used for storage texel buffers (IBOs)"] - pub const STORAGE_TEXEL_BUFFER: Self = FormatFeatureFlags(0b1_0000); + pub const STORAGE_TEXEL_BUFFER: Self = Self(0b1_0000); #[doc = "Format supports atomic operations in case it is used for storage texel buffers"] - pub const STORAGE_TEXEL_BUFFER_ATOMIC: Self = FormatFeatureFlags(0b10_0000); + pub const STORAGE_TEXEL_BUFFER_ATOMIC: Self = Self(0b10_0000); #[doc = "Format can be used for vertex buffers (VBOs)"] - pub const VERTEX_BUFFER: Self = FormatFeatureFlags(0b100_0000); + pub const VERTEX_BUFFER: Self = Self(0b100_0000); #[doc = "Format can be used for color attachment images"] - pub const COLOR_ATTACHMENT: Self = FormatFeatureFlags(0b1000_0000); + pub const COLOR_ATTACHMENT: Self = Self(0b1000_0000); #[doc = "Format supports blending in case it is used for color attachment images"] - pub const COLOR_ATTACHMENT_BLEND: Self = FormatFeatureFlags(0b1_0000_0000); + pub const COLOR_ATTACHMENT_BLEND: Self = Self(0b1_0000_0000); #[doc = "Format can be used for depth/stencil attachment images"] - pub const DEPTH_STENCIL_ATTACHMENT: Self = FormatFeatureFlags(0b10_0000_0000); + pub const DEPTH_STENCIL_ATTACHMENT: Self = Self(0b10_0000_0000); #[doc = "Format can be used as the source image of blits with vkCmdBlitImage"] - pub const BLIT_SRC: Self = FormatFeatureFlags(0b100_0000_0000); + pub const BLIT_SRC: Self = Self(0b100_0000_0000); #[doc = "Format can be used as the destination image of blits with vkCmdBlitImage"] - pub const BLIT_DST: Self = FormatFeatureFlags(0b1000_0000_0000); + pub const BLIT_DST: Self = Self(0b1000_0000_0000); #[doc = "Format can be filtered with VK_FILTER_LINEAR when being sampled"] - pub const SAMPLED_IMAGE_FILTER_LINEAR: Self = FormatFeatureFlags(0b1_0000_0000_0000); + pub const SAMPLED_IMAGE_FILTER_LINEAR: Self = Self(0b1_0000_0000_0000); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -300,7 +300,7 @@ pub struct QueryControlFlags(pub(crate) Flags); vk_bitflags_wrapped!(QueryControlFlags, 0b1, Flags); impl QueryControlFlags { #[doc = "Require precise results to be collected by the query"] - pub const PRECISE: Self = QueryControlFlags(0b1); + pub const PRECISE: Self = Self(0b1); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -309,13 +309,13 @@ pub struct QueryResultFlags(pub(crate) Flags); vk_bitflags_wrapped!(QueryResultFlags, 0b1111, Flags); impl QueryResultFlags { #[doc = "Results of the queries are written to the destination buffer as 64-bit values"] - pub const TYPE_64: Self = QueryResultFlags(0b1); + pub const TYPE_64: Self = Self(0b1); #[doc = "Results of the queries are waited on before proceeding with the result copy"] - pub const WAIT: Self = QueryResultFlags(0b10); + pub const WAIT: Self = Self(0b10); #[doc = "Besides the results of the query, the availability of the results is also written"] - pub const WITH_AVAILABILITY: Self = QueryResultFlags(0b100); + pub const WITH_AVAILABILITY: Self = Self(0b100); #[doc = "Copy the partial results of the query even if the final results are not available"] - pub const PARTIAL: Self = QueryResultFlags(0b1000); + pub const PARTIAL: Self = Self(0b1000); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -323,10 +323,10 @@ impl QueryResultFlags { pub struct CommandBufferUsageFlags(pub(crate) Flags); vk_bitflags_wrapped!(CommandBufferUsageFlags, 0b111, Flags); impl CommandBufferUsageFlags { - pub const ONE_TIME_SUBMIT: Self = CommandBufferUsageFlags(0b1); - pub const RENDER_PASS_CONTINUE: Self = CommandBufferUsageFlags(0b10); + pub const ONE_TIME_SUBMIT: Self = Self(0b1); + pub const RENDER_PASS_CONTINUE: Self = Self(0b10); #[doc = "Command buffer may be submitted/executed more than once simultaneously"] - pub const SIMULTANEOUS_USE: Self = CommandBufferUsageFlags(0b100); + pub const SIMULTANEOUS_USE: Self = Self(0b100); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -335,29 +335,27 @@ pub struct QueryPipelineStatisticFlags(pub(crate) Flags); vk_bitflags_wrapped!(QueryPipelineStatisticFlags, 0b111_1111_1111, Flags); impl QueryPipelineStatisticFlags { #[doc = "Optional"] - pub const INPUT_ASSEMBLY_VERTICES: Self = QueryPipelineStatisticFlags(0b1); + pub const INPUT_ASSEMBLY_VERTICES: Self = Self(0b1); #[doc = "Optional"] - pub const INPUT_ASSEMBLY_PRIMITIVES: Self = QueryPipelineStatisticFlags(0b10); + pub const INPUT_ASSEMBLY_PRIMITIVES: Self = Self(0b10); #[doc = "Optional"] - pub const VERTEX_SHADER_INVOCATIONS: Self = QueryPipelineStatisticFlags(0b100); + pub const VERTEX_SHADER_INVOCATIONS: Self = Self(0b100); #[doc = "Optional"] - pub const GEOMETRY_SHADER_INVOCATIONS: Self = QueryPipelineStatisticFlags(0b1000); + pub const GEOMETRY_SHADER_INVOCATIONS: Self = Self(0b1000); #[doc = "Optional"] - pub const GEOMETRY_SHADER_PRIMITIVES: Self = QueryPipelineStatisticFlags(0b1_0000); + pub const GEOMETRY_SHADER_PRIMITIVES: Self = Self(0b1_0000); #[doc = "Optional"] - pub const CLIPPING_INVOCATIONS: Self = QueryPipelineStatisticFlags(0b10_0000); + pub const CLIPPING_INVOCATIONS: Self = Self(0b10_0000); #[doc = "Optional"] - pub const CLIPPING_PRIMITIVES: Self = QueryPipelineStatisticFlags(0b100_0000); + pub const CLIPPING_PRIMITIVES: Self = Self(0b100_0000); #[doc = "Optional"] - pub const FRAGMENT_SHADER_INVOCATIONS: Self = QueryPipelineStatisticFlags(0b1000_0000); + pub const FRAGMENT_SHADER_INVOCATIONS: Self = Self(0b1000_0000); #[doc = "Optional"] - pub const TESSELLATION_CONTROL_SHADER_PATCHES: Self = - QueryPipelineStatisticFlags(0b1_0000_0000); + pub const TESSELLATION_CONTROL_SHADER_PATCHES: Self = Self(0b1_0000_0000); #[doc = "Optional"] - pub const TESSELLATION_EVALUATION_SHADER_INVOCATIONS: Self = - QueryPipelineStatisticFlags(0b10_0000_0000); + pub const TESSELLATION_EVALUATION_SHADER_INVOCATIONS: Self = Self(0b10_0000_0000); #[doc = "Optional"] - pub const COMPUTE_SHADER_INVOCATIONS: Self = QueryPipelineStatisticFlags(0b100_0000_0000); + pub const COMPUTE_SHADER_INVOCATIONS: Self = Self(0b100_0000_0000); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -365,10 +363,10 @@ impl QueryPipelineStatisticFlags { pub struct ImageAspectFlags(pub(crate) Flags); vk_bitflags_wrapped!(ImageAspectFlags, 0b1111, Flags); impl ImageAspectFlags { - pub const COLOR: Self = ImageAspectFlags(0b1); - pub const DEPTH: Self = ImageAspectFlags(0b10); - pub const STENCIL: Self = ImageAspectFlags(0b100); - pub const METADATA: Self = ImageAspectFlags(0b1000); + pub const COLOR: Self = Self(0b1); + pub const DEPTH: Self = Self(0b10); + pub const STENCIL: Self = Self(0b100); + pub const METADATA: Self = Self(0b1000); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -377,11 +375,11 @@ pub struct SparseImageFormatFlags(pub(crate) Flags); vk_bitflags_wrapped!(SparseImageFormatFlags, 0b111, Flags); impl SparseImageFormatFlags { #[doc = "Image uses a single mip tail region for all array layers"] - pub const SINGLE_MIPTAIL: Self = SparseImageFormatFlags(0b1); + pub const SINGLE_MIPTAIL: Self = Self(0b1); #[doc = "Image requires mip level dimensions to be an integer multiple of the sparse image block dimensions for non-tail mip levels."] - pub const ALIGNED_MIP_SIZE: Self = SparseImageFormatFlags(0b10); + pub const ALIGNED_MIP_SIZE: Self = Self(0b10); #[doc = "Image uses a non-standard sparse image block dimensions"] - pub const NONSTANDARD_BLOCK_SIZE: Self = SparseImageFormatFlags(0b100); + pub const NONSTANDARD_BLOCK_SIZE: Self = Self(0b100); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -390,7 +388,7 @@ pub struct SparseMemoryBindFlags(pub(crate) Flags); vk_bitflags_wrapped!(SparseMemoryBindFlags, 0b1, Flags); impl SparseMemoryBindFlags { #[doc = "Operation binds resource metadata to memory"] - pub const METADATA: Self = SparseMemoryBindFlags(0b1); + pub const METADATA: Self = Self(0b1); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -399,39 +397,39 @@ pub struct PipelineStageFlags(pub(crate) Flags); vk_bitflags_wrapped!(PipelineStageFlags, 0b1_1111_1111_1111_1111, Flags); impl PipelineStageFlags { #[doc = "Before subsequent commands are processed"] - pub const TOP_OF_PIPE: Self = PipelineStageFlags(0b1); + pub const TOP_OF_PIPE: Self = Self(0b1); #[doc = "Draw/DispatchIndirect command fetch"] - pub const DRAW_INDIRECT: Self = PipelineStageFlags(0b10); + pub const DRAW_INDIRECT: Self = Self(0b10); #[doc = "Vertex/index fetch"] - pub const VERTEX_INPUT: Self = PipelineStageFlags(0b100); + pub const VERTEX_INPUT: Self = Self(0b100); #[doc = "Vertex shading"] - pub const VERTEX_SHADER: Self = PipelineStageFlags(0b1000); + pub const VERTEX_SHADER: Self = Self(0b1000); #[doc = "Tessellation control shading"] - pub const TESSELLATION_CONTROL_SHADER: Self = PipelineStageFlags(0b1_0000); + pub const TESSELLATION_CONTROL_SHADER: Self = Self(0b1_0000); #[doc = "Tessellation evaluation shading"] - pub const TESSELLATION_EVALUATION_SHADER: Self = PipelineStageFlags(0b10_0000); + pub const TESSELLATION_EVALUATION_SHADER: Self = Self(0b10_0000); #[doc = "Geometry shading"] - pub const GEOMETRY_SHADER: Self = PipelineStageFlags(0b100_0000); + pub const GEOMETRY_SHADER: Self = Self(0b100_0000); #[doc = "Fragment shading"] - pub const FRAGMENT_SHADER: Self = PipelineStageFlags(0b1000_0000); + pub const FRAGMENT_SHADER: Self = Self(0b1000_0000); #[doc = "Early fragment (depth and stencil) tests"] - pub const EARLY_FRAGMENT_TESTS: Self = PipelineStageFlags(0b1_0000_0000); + pub const EARLY_FRAGMENT_TESTS: Self = Self(0b1_0000_0000); #[doc = "Late fragment (depth and stencil) tests"] - pub const LATE_FRAGMENT_TESTS: Self = PipelineStageFlags(0b10_0000_0000); + pub const LATE_FRAGMENT_TESTS: Self = Self(0b10_0000_0000); #[doc = "Color attachment writes"] - pub const COLOR_ATTACHMENT_OUTPUT: Self = PipelineStageFlags(0b100_0000_0000); + pub const COLOR_ATTACHMENT_OUTPUT: Self = Self(0b100_0000_0000); #[doc = "Compute shading"] - pub const COMPUTE_SHADER: Self = PipelineStageFlags(0b1000_0000_0000); + pub const COMPUTE_SHADER: Self = Self(0b1000_0000_0000); #[doc = "Transfer/copy operations"] - pub const TRANSFER: Self = PipelineStageFlags(0b1_0000_0000_0000); + pub const TRANSFER: Self = Self(0b1_0000_0000_0000); #[doc = "After previous commands have completed"] - pub const BOTTOM_OF_PIPE: Self = PipelineStageFlags(0b10_0000_0000_0000); + pub const BOTTOM_OF_PIPE: Self = Self(0b10_0000_0000_0000); #[doc = "Indicates host (CPU) is a source/sink of the dependency"] - pub const HOST: Self = PipelineStageFlags(0b100_0000_0000_0000); + pub const HOST: Self = Self(0b100_0000_0000_0000); #[doc = "All stages of the graphics pipeline"] - pub const ALL_GRAPHICS: Self = PipelineStageFlags(0b1000_0000_0000_0000); + pub const ALL_GRAPHICS: Self = Self(0b1000_0000_0000_0000); #[doc = "All stages supported on the queue"] - pub const ALL_COMMANDS: Self = PipelineStageFlags(0b1_0000_0000_0000_0000); + pub const ALL_COMMANDS: Self = Self(0b1_0000_0000_0000_0000); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -440,9 +438,9 @@ pub struct CommandPoolCreateFlags(pub(crate) Flags); vk_bitflags_wrapped!(CommandPoolCreateFlags, 0b11, Flags); impl CommandPoolCreateFlags { #[doc = "Command buffers have a short lifetime"] - pub const TRANSIENT: Self = CommandPoolCreateFlags(0b1); + pub const TRANSIENT: Self = Self(0b1); #[doc = "Command buffers may release their memory individually"] - pub const RESET_COMMAND_BUFFER: Self = CommandPoolCreateFlags(0b10); + pub const RESET_COMMAND_BUFFER: Self = Self(0b10); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -451,7 +449,7 @@ pub struct CommandPoolResetFlags(pub(crate) Flags); vk_bitflags_wrapped!(CommandPoolResetFlags, 0b1, Flags); impl CommandPoolResetFlags { #[doc = "Release resources owned by the pool"] - pub const RELEASE_RESOURCES: Self = CommandPoolResetFlags(0b1); + pub const RELEASE_RESOURCES: Self = Self(0b1); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -460,7 +458,7 @@ pub struct CommandBufferResetFlags(pub(crate) Flags); vk_bitflags_wrapped!(CommandBufferResetFlags, 0b1, Flags); impl CommandBufferResetFlags { #[doc = "Release resources owned by the buffer"] - pub const RELEASE_RESOURCES: Self = CommandBufferResetFlags(0b1); + pub const RELEASE_RESOURCES: Self = Self(0b1); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -469,19 +467,19 @@ pub struct SampleCountFlags(pub(crate) Flags); vk_bitflags_wrapped!(SampleCountFlags, 0b111_1111, Flags); impl SampleCountFlags { #[doc = "Sample count 1 supported"] - pub const TYPE_1: Self = SampleCountFlags(0b1); + pub const TYPE_1: Self = Self(0b1); #[doc = "Sample count 2 supported"] - pub const TYPE_2: Self = SampleCountFlags(0b10); + pub const TYPE_2: Self = Self(0b10); #[doc = "Sample count 4 supported"] - pub const TYPE_4: Self = SampleCountFlags(0b100); + pub const TYPE_4: Self = Self(0b100); #[doc = "Sample count 8 supported"] - pub const TYPE_8: Self = SampleCountFlags(0b1000); + pub const TYPE_8: Self = Self(0b1000); #[doc = "Sample count 16 supported"] - pub const TYPE_16: Self = SampleCountFlags(0b1_0000); + pub const TYPE_16: Self = Self(0b1_0000); #[doc = "Sample count 32 supported"] - pub const TYPE_32: Self = SampleCountFlags(0b10_0000); + pub const TYPE_32: Self = Self(0b10_0000); #[doc = "Sample count 64 supported"] - pub const TYPE_64: Self = SampleCountFlags(0b100_0000); + pub const TYPE_64: Self = Self(0b100_0000); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -490,7 +488,7 @@ pub struct AttachmentDescriptionFlags(pub(crate) Flags); vk_bitflags_wrapped!(AttachmentDescriptionFlags, 0b1, Flags); impl AttachmentDescriptionFlags { #[doc = "The attachment may alias physical memory of another attachment in the same render pass"] - pub const MAY_ALIAS: Self = AttachmentDescriptionFlags(0b1); + pub const MAY_ALIAS: Self = Self(0b1); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -499,11 +497,11 @@ pub struct StencilFaceFlags(pub(crate) Flags); vk_bitflags_wrapped!(StencilFaceFlags, 0b11, Flags); impl StencilFaceFlags { #[doc = "Front face"] - pub const FRONT: Self = StencilFaceFlags(0b1); + pub const FRONT: Self = Self(0b1); #[doc = "Back face"] - pub const BACK: Self = StencilFaceFlags(0b10); + pub const BACK: Self = Self(0b10); #[doc = "Front and back faces"] - pub const FRONT_AND_BACK: Self = StencilFaceFlags(0x0000_0003); + pub const FRONT_AND_BACK: Self = Self(0x0000_0003); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -512,7 +510,7 @@ pub struct DescriptorPoolCreateFlags(pub(crate) Flags); vk_bitflags_wrapped!(DescriptorPoolCreateFlags, 0b1, Flags); impl DescriptorPoolCreateFlags { #[doc = "Descriptor sets may be freed individually"] - pub const FREE_DESCRIPTOR_SET: Self = DescriptorPoolCreateFlags(0b1); + pub const FREE_DESCRIPTOR_SET: Self = Self(0b1); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -521,7 +519,7 @@ pub struct DependencyFlags(pub(crate) Flags); vk_bitflags_wrapped!(DependencyFlags, 0b1, Flags); impl DependencyFlags { #[doc = "Dependency is per pixel region "] - pub const BY_REGION: Self = DependencyFlags(0b1); + pub const BY_REGION: Self = Self(0b1); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -529,7 +527,7 @@ impl DependencyFlags { pub struct SemaphoreWaitFlags(pub(crate) Flags); vk_bitflags_wrapped!(SemaphoreWaitFlags, 0b1, Flags); impl SemaphoreWaitFlags { - pub const ANY: Self = SemaphoreWaitFlags(0b1); + pub const ANY: Self = Self(0b1); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -537,10 +535,10 @@ impl SemaphoreWaitFlags { pub struct DisplayPlaneAlphaFlagsKHR(pub(crate) Flags); vk_bitflags_wrapped!(DisplayPlaneAlphaFlagsKHR, 0b1111, Flags); impl DisplayPlaneAlphaFlagsKHR { - pub const OPAQUE: Self = DisplayPlaneAlphaFlagsKHR(0b1); - pub const GLOBAL: Self = DisplayPlaneAlphaFlagsKHR(0b10); - pub const PER_PIXEL: Self = DisplayPlaneAlphaFlagsKHR(0b100); - pub const PER_PIXEL_PREMULTIPLIED: Self = DisplayPlaneAlphaFlagsKHR(0b1000); + pub const OPAQUE: Self = Self(0b1); + pub const GLOBAL: Self = Self(0b10); + pub const PER_PIXEL: Self = Self(0b100); + pub const PER_PIXEL_PREMULTIPLIED: Self = Self(0b1000); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -548,10 +546,10 @@ impl DisplayPlaneAlphaFlagsKHR { pub struct CompositeAlphaFlagsKHR(pub(crate) Flags); vk_bitflags_wrapped!(CompositeAlphaFlagsKHR, 0b1111, Flags); impl CompositeAlphaFlagsKHR { - pub const OPAQUE: Self = CompositeAlphaFlagsKHR(0b1); - pub const PRE_MULTIPLIED: Self = CompositeAlphaFlagsKHR(0b10); - pub const POST_MULTIPLIED: Self = CompositeAlphaFlagsKHR(0b100); - pub const INHERIT: Self = CompositeAlphaFlagsKHR(0b1000); + pub const OPAQUE: Self = Self(0b1); + pub const PRE_MULTIPLIED: Self = Self(0b10); + pub const POST_MULTIPLIED: Self = Self(0b100); + pub const INHERIT: Self = Self(0b1000); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -559,15 +557,15 @@ impl CompositeAlphaFlagsKHR { pub struct SurfaceTransformFlagsKHR(pub(crate) Flags); vk_bitflags_wrapped!(SurfaceTransformFlagsKHR, 0b1_1111_1111, Flags); impl SurfaceTransformFlagsKHR { - pub const IDENTITY: Self = SurfaceTransformFlagsKHR(0b1); - pub const ROTATE_90: Self = SurfaceTransformFlagsKHR(0b10); - pub const ROTATE_180: Self = SurfaceTransformFlagsKHR(0b100); - pub const ROTATE_270: Self = SurfaceTransformFlagsKHR(0b1000); - pub const HORIZONTAL_MIRROR: Self = SurfaceTransformFlagsKHR(0b1_0000); - pub const HORIZONTAL_MIRROR_ROTATE_90: Self = SurfaceTransformFlagsKHR(0b10_0000); - pub const HORIZONTAL_MIRROR_ROTATE_180: Self = SurfaceTransformFlagsKHR(0b100_0000); - pub const HORIZONTAL_MIRROR_ROTATE_270: Self = SurfaceTransformFlagsKHR(0b1000_0000); - pub const INHERIT: Self = SurfaceTransformFlagsKHR(0b1_0000_0000); + pub const IDENTITY: Self = Self(0b1); + pub const ROTATE_90: Self = Self(0b10); + pub const ROTATE_180: Self = Self(0b100); + pub const ROTATE_270: Self = Self(0b1000); + pub const HORIZONTAL_MIRROR: Self = Self(0b1_0000); + pub const HORIZONTAL_MIRROR_ROTATE_90: Self = Self(0b10_0000); + pub const HORIZONTAL_MIRROR_ROTATE_180: Self = Self(0b100_0000); + pub const HORIZONTAL_MIRROR_ROTATE_270: Self = Self(0b1000_0000); + pub const INHERIT: Self = Self(0b1_0000_0000); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -575,7 +573,7 @@ impl SurfaceTransformFlagsKHR { pub struct SwapchainImageUsageFlagsANDROID(pub(crate) Flags); vk_bitflags_wrapped!(SwapchainImageUsageFlagsANDROID, 0b1, Flags); impl SwapchainImageUsageFlagsANDROID { - pub const SHARED: Self = SwapchainImageUsageFlagsANDROID(0b1); + pub const SHARED: Self = Self(0b1); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -583,11 +581,11 @@ impl SwapchainImageUsageFlagsANDROID { pub struct DebugReportFlagsEXT(pub(crate) Flags); vk_bitflags_wrapped!(DebugReportFlagsEXT, 0b1_1111, Flags); impl DebugReportFlagsEXT { - pub const INFORMATION: Self = DebugReportFlagsEXT(0b1); - pub const WARNING: Self = DebugReportFlagsEXT(0b10); - pub const PERFORMANCE_WARNING: Self = DebugReportFlagsEXT(0b100); - pub const ERROR: Self = DebugReportFlagsEXT(0b1000); - pub const DEBUG: Self = DebugReportFlagsEXT(0b1_0000); + pub const INFORMATION: Self = Self(0b1); + pub const WARNING: Self = Self(0b10); + pub const PERFORMANCE_WARNING: Self = Self(0b100); + pub const ERROR: Self = Self(0b1000); + pub const DEBUG: Self = Self(0b1_0000); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -595,14 +593,10 @@ impl DebugReportFlagsEXT { pub struct ExternalMemoryHandleTypeFlagsNV(pub(crate) Flags); vk_bitflags_wrapped!(ExternalMemoryHandleTypeFlagsNV, 0b1111, Flags); impl ExternalMemoryHandleTypeFlagsNV { - pub const EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_NV: Self = - ExternalMemoryHandleTypeFlagsNV(0b1); - pub const EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_KMT_NV: Self = - ExternalMemoryHandleTypeFlagsNV(0b10); - pub const EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_IMAGE_NV: Self = - ExternalMemoryHandleTypeFlagsNV(0b100); - pub const EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_IMAGE_KMT_NV: Self = - ExternalMemoryHandleTypeFlagsNV(0b1000); + pub const EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_NV: Self = Self(0b1); + pub const EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_KMT_NV: Self = Self(0b10); + pub const EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_IMAGE_NV: Self = Self(0b100); + pub const EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_IMAGE_KMT_NV: Self = Self(0b1000); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -610,9 +604,9 @@ impl ExternalMemoryHandleTypeFlagsNV { pub struct ExternalMemoryFeatureFlagsNV(pub(crate) Flags); vk_bitflags_wrapped!(ExternalMemoryFeatureFlagsNV, 0b111, Flags); impl ExternalMemoryFeatureFlagsNV { - pub const EXTERNAL_MEMORY_FEATURE_DEDICATED_ONLY_NV: Self = ExternalMemoryFeatureFlagsNV(0b1); - pub const EXTERNAL_MEMORY_FEATURE_EXPORTABLE_NV: Self = ExternalMemoryFeatureFlagsNV(0b10); - pub const EXTERNAL_MEMORY_FEATURE_IMPORTABLE_NV: Self = ExternalMemoryFeatureFlagsNV(0b100); + pub const EXTERNAL_MEMORY_FEATURE_DEDICATED_ONLY_NV: Self = Self(0b1); + pub const EXTERNAL_MEMORY_FEATURE_EXPORTABLE_NV: Self = Self(0b10); + pub const EXTERNAL_MEMORY_FEATURE_IMPORTABLE_NV: Self = Self(0b100); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -621,21 +615,21 @@ pub struct SubgroupFeatureFlags(pub(crate) Flags); vk_bitflags_wrapped!(SubgroupFeatureFlags, 0b1111_1111, Flags); impl SubgroupFeatureFlags { #[doc = "Basic subgroup operations"] - pub const BASIC: Self = SubgroupFeatureFlags(0b1); + pub const BASIC: Self = Self(0b1); #[doc = "Vote subgroup operations"] - pub const VOTE: Self = SubgroupFeatureFlags(0b10); + pub const VOTE: Self = Self(0b10); #[doc = "Arithmetic subgroup operations"] - pub const ARITHMETIC: Self = SubgroupFeatureFlags(0b100); + pub const ARITHMETIC: Self = Self(0b100); #[doc = "Ballot subgroup operations"] - pub const BALLOT: Self = SubgroupFeatureFlags(0b1000); + pub const BALLOT: Self = Self(0b1000); #[doc = "Shuffle subgroup operations"] - pub const SHUFFLE: Self = SubgroupFeatureFlags(0b1_0000); + pub const SHUFFLE: Self = Self(0b1_0000); #[doc = "Shuffle relative subgroup operations"] - pub const SHUFFLE_RELATIVE: Self = SubgroupFeatureFlags(0b10_0000); + pub const SHUFFLE_RELATIVE: Self = Self(0b10_0000); #[doc = "Clustered subgroup operations"] - pub const CLUSTERED: Self = SubgroupFeatureFlags(0b100_0000); + pub const CLUSTERED: Self = Self(0b100_0000); #[doc = "Quad subgroup operations"] - pub const QUAD: Self = SubgroupFeatureFlags(0b1000_0000); + pub const QUAD: Self = Self(0b1000_0000); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -643,9 +637,9 @@ impl SubgroupFeatureFlags { pub struct IndirectCommandsLayoutUsageFlagsNV(pub(crate) Flags); vk_bitflags_wrapped!(IndirectCommandsLayoutUsageFlagsNV, 0b111, Flags); impl IndirectCommandsLayoutUsageFlagsNV { - pub const EXPLICIT_PREPROCESS: Self = IndirectCommandsLayoutUsageFlagsNV(0b1); - pub const INDEXED_SEQUENCES: Self = IndirectCommandsLayoutUsageFlagsNV(0b10); - pub const UNORDERED_SEQUENCES: Self = IndirectCommandsLayoutUsageFlagsNV(0b100); + pub const EXPLICIT_PREPROCESS: Self = Self(0b1); + pub const INDEXED_SEQUENCES: Self = Self(0b10); + pub const UNORDERED_SEQUENCES: Self = Self(0b100); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -653,7 +647,7 @@ impl IndirectCommandsLayoutUsageFlagsNV { pub struct IndirectStateFlagsNV(pub(crate) Flags); vk_bitflags_wrapped!(IndirectStateFlagsNV, 0b1, Flags); impl IndirectStateFlagsNV { - pub const FLAG_FRONTFACE: Self = IndirectStateFlagsNV(0b1); + pub const FLAG_FRONTFACE: Self = Self(0b1); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -667,18 +661,13 @@ impl DescriptorSetLayoutCreateFlags {} pub struct ExternalMemoryHandleTypeFlags(pub(crate) Flags); vk_bitflags_wrapped!(ExternalMemoryHandleTypeFlags, 0b111_1111, Flags); impl ExternalMemoryHandleTypeFlags { - pub const EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD: Self = ExternalMemoryHandleTypeFlags(0b1); - pub const EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32: Self = ExternalMemoryHandleTypeFlags(0b10); - pub const EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_KMT: Self = - ExternalMemoryHandleTypeFlags(0b100); - pub const EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_TEXTURE: Self = - ExternalMemoryHandleTypeFlags(0b1000); - pub const EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_TEXTURE_KMT: Self = - ExternalMemoryHandleTypeFlags(0b1_0000); - pub const EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_HEAP: Self = - ExternalMemoryHandleTypeFlags(0b10_0000); - pub const EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_RESOURCE: Self = - ExternalMemoryHandleTypeFlags(0b100_0000); + pub const EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD: Self = Self(0b1); + pub const EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32: Self = Self(0b10); + pub const EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_KMT: Self = Self(0b100); + pub const EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_TEXTURE: Self = Self(0b1000); + pub const EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_TEXTURE_KMT: Self = Self(0b1_0000); + pub const EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_HEAP: Self = Self(0b10_0000); + pub const EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_RESOURCE: Self = Self(0b100_0000); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -686,9 +675,9 @@ impl ExternalMemoryHandleTypeFlags { pub struct ExternalMemoryFeatureFlags(pub(crate) Flags); vk_bitflags_wrapped!(ExternalMemoryFeatureFlags, 0b111, Flags); impl ExternalMemoryFeatureFlags { - pub const EXTERNAL_MEMORY_FEATURE_DEDICATED_ONLY: Self = ExternalMemoryFeatureFlags(0b1); - pub const EXTERNAL_MEMORY_FEATURE_EXPORTABLE: Self = ExternalMemoryFeatureFlags(0b10); - pub const EXTERNAL_MEMORY_FEATURE_IMPORTABLE: Self = ExternalMemoryFeatureFlags(0b100); + pub const EXTERNAL_MEMORY_FEATURE_DEDICATED_ONLY: Self = Self(0b1); + pub const EXTERNAL_MEMORY_FEATURE_EXPORTABLE: Self = Self(0b10); + pub const EXTERNAL_MEMORY_FEATURE_IMPORTABLE: Self = Self(0b100); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -696,16 +685,11 @@ impl ExternalMemoryFeatureFlags { pub struct ExternalSemaphoreHandleTypeFlags(pub(crate) Flags); vk_bitflags_wrapped!(ExternalSemaphoreHandleTypeFlags, 0b1_1111, Flags); impl ExternalSemaphoreHandleTypeFlags { - pub const EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_FD: Self = - ExternalSemaphoreHandleTypeFlags(0b1); - pub const EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32: Self = - ExternalSemaphoreHandleTypeFlags(0b10); - pub const EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_KMT: Self = - ExternalSemaphoreHandleTypeFlags(0b100); - pub const EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D12_FENCE: Self = - ExternalSemaphoreHandleTypeFlags(0b1000); - pub const EXTERNAL_SEMAPHORE_HANDLE_TYPE_SYNC_FD: Self = - ExternalSemaphoreHandleTypeFlags(0b1_0000); + pub const EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_FD: Self = Self(0b1); + pub const EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32: Self = Self(0b10); + pub const EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_KMT: Self = Self(0b100); + pub const EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D12_FENCE: Self = Self(0b1000); + pub const EXTERNAL_SEMAPHORE_HANDLE_TYPE_SYNC_FD: Self = Self(0b1_0000); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -713,8 +697,8 @@ impl ExternalSemaphoreHandleTypeFlags { pub struct ExternalSemaphoreFeatureFlags(pub(crate) Flags); vk_bitflags_wrapped!(ExternalSemaphoreFeatureFlags, 0b11, Flags); impl ExternalSemaphoreFeatureFlags { - pub const EXTERNAL_SEMAPHORE_FEATURE_EXPORTABLE: Self = ExternalSemaphoreFeatureFlags(0b1); - pub const EXTERNAL_SEMAPHORE_FEATURE_IMPORTABLE: Self = ExternalSemaphoreFeatureFlags(0b10); + pub const EXTERNAL_SEMAPHORE_FEATURE_EXPORTABLE: Self = Self(0b1); + pub const EXTERNAL_SEMAPHORE_FEATURE_IMPORTABLE: Self = Self(0b10); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -722,7 +706,7 @@ impl ExternalSemaphoreFeatureFlags { pub struct SemaphoreImportFlags(pub(crate) Flags); vk_bitflags_wrapped!(SemaphoreImportFlags, 0b1, Flags); impl SemaphoreImportFlags { - pub const TEMPORARY: Self = SemaphoreImportFlags(0b1); + pub const TEMPORARY: Self = Self(0b1); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -730,11 +714,10 @@ impl SemaphoreImportFlags { pub struct ExternalFenceHandleTypeFlags(pub(crate) Flags); vk_bitflags_wrapped!(ExternalFenceHandleTypeFlags, 0b1111, Flags); impl ExternalFenceHandleTypeFlags { - pub const EXTERNAL_FENCE_HANDLE_TYPE_OPAQUE_FD: Self = ExternalFenceHandleTypeFlags(0b1); - pub const EXTERNAL_FENCE_HANDLE_TYPE_OPAQUE_WIN32: Self = ExternalFenceHandleTypeFlags(0b10); - pub const EXTERNAL_FENCE_HANDLE_TYPE_OPAQUE_WIN32_KMT: Self = - ExternalFenceHandleTypeFlags(0b100); - pub const EXTERNAL_FENCE_HANDLE_TYPE_SYNC_FD: Self = ExternalFenceHandleTypeFlags(0b1000); + pub const EXTERNAL_FENCE_HANDLE_TYPE_OPAQUE_FD: Self = Self(0b1); + pub const EXTERNAL_FENCE_HANDLE_TYPE_OPAQUE_WIN32: Self = Self(0b10); + pub const EXTERNAL_FENCE_HANDLE_TYPE_OPAQUE_WIN32_KMT: Self = Self(0b100); + pub const EXTERNAL_FENCE_HANDLE_TYPE_SYNC_FD: Self = Self(0b1000); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -742,8 +725,8 @@ impl ExternalFenceHandleTypeFlags { pub struct ExternalFenceFeatureFlags(pub(crate) Flags); vk_bitflags_wrapped!(ExternalFenceFeatureFlags, 0b11, Flags); impl ExternalFenceFeatureFlags { - pub const EXTERNAL_FENCE_FEATURE_EXPORTABLE: Self = ExternalFenceFeatureFlags(0b1); - pub const EXTERNAL_FENCE_FEATURE_IMPORTABLE: Self = ExternalFenceFeatureFlags(0b10); + pub const EXTERNAL_FENCE_FEATURE_EXPORTABLE: Self = Self(0b1); + pub const EXTERNAL_FENCE_FEATURE_IMPORTABLE: Self = Self(0b10); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -751,7 +734,7 @@ impl ExternalFenceFeatureFlags { pub struct FenceImportFlags(pub(crate) Flags); vk_bitflags_wrapped!(FenceImportFlags, 0b1, Flags); impl FenceImportFlags { - pub const TEMPORARY: Self = FenceImportFlags(0b1); + pub const TEMPORARY: Self = Self(0b1); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -759,7 +742,7 @@ impl FenceImportFlags { pub struct SurfaceCounterFlagsEXT(pub(crate) Flags); vk_bitflags_wrapped!(SurfaceCounterFlagsEXT, 0b1, Flags); impl SurfaceCounterFlagsEXT { - pub const VBLANK: Self = SurfaceCounterFlagsEXT(0b1); + pub const VBLANK: Self = Self(0b1); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -768,13 +751,13 @@ pub struct PeerMemoryFeatureFlags(pub(crate) Flags); vk_bitflags_wrapped!(PeerMemoryFeatureFlags, 0b1111, Flags); impl PeerMemoryFeatureFlags { #[doc = "Can read with vkCmdCopy commands"] - pub const COPY_SRC: Self = PeerMemoryFeatureFlags(0b1); + pub const COPY_SRC: Self = Self(0b1); #[doc = "Can write with vkCmdCopy commands"] - pub const COPY_DST: Self = PeerMemoryFeatureFlags(0b10); + pub const COPY_DST: Self = Self(0b10); #[doc = "Can read with any access type/command"] - pub const GENERIC_SRC: Self = PeerMemoryFeatureFlags(0b100); + pub const GENERIC_SRC: Self = Self(0b100); #[doc = "Can write with and access type/command"] - pub const GENERIC_DST: Self = PeerMemoryFeatureFlags(0b1000); + pub const GENERIC_DST: Self = Self(0b1000); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -783,7 +766,7 @@ pub struct MemoryAllocateFlags(pub(crate) Flags); vk_bitflags_wrapped!(MemoryAllocateFlags, 0b1, Flags); impl MemoryAllocateFlags { #[doc = "Force allocation on specific devices"] - pub const DEVICE_MASK: Self = MemoryAllocateFlags(0b1); + pub const DEVICE_MASK: Self = Self(0b1); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -792,13 +775,13 @@ pub struct DeviceGroupPresentModeFlagsKHR(pub(crate) Flags); vk_bitflags_wrapped!(DeviceGroupPresentModeFlagsKHR, 0b1111, Flags); impl DeviceGroupPresentModeFlagsKHR { #[doc = "Present from local memory"] - pub const LOCAL: Self = DeviceGroupPresentModeFlagsKHR(0b1); + pub const LOCAL: Self = Self(0b1); #[doc = "Present from remote memory"] - pub const REMOTE: Self = DeviceGroupPresentModeFlagsKHR(0b10); + pub const REMOTE: Self = Self(0b10); #[doc = "Present sum of local and/or remote memory"] - pub const SUM: Self = DeviceGroupPresentModeFlagsKHR(0b100); + pub const SUM: Self = Self(0b100); #[doc = "Each physical device presents from local memory"] - pub const LOCAL_MULTI_DEVICE: Self = DeviceGroupPresentModeFlagsKHR(0b1000); + pub const LOCAL_MULTI_DEVICE: Self = Self(0b1000); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -818,10 +801,10 @@ impl SubpassDescriptionFlags {} pub struct DebugUtilsMessageSeverityFlagsEXT(pub(crate) Flags); vk_bitflags_wrapped!(DebugUtilsMessageSeverityFlagsEXT, 0b1_0001_0001_0001, Flags); impl DebugUtilsMessageSeverityFlagsEXT { - pub const VERBOSE: Self = DebugUtilsMessageSeverityFlagsEXT(0b1); - pub const INFO: Self = DebugUtilsMessageSeverityFlagsEXT(0b1_0000); - pub const WARNING: Self = DebugUtilsMessageSeverityFlagsEXT(0b1_0000_0000); - pub const ERROR: Self = DebugUtilsMessageSeverityFlagsEXT(0b1_0000_0000_0000); + pub const VERBOSE: Self = Self(0b1); + pub const INFO: Self = Self(0b1_0000); + pub const WARNING: Self = Self(0b1_0000_0000); + pub const ERROR: Self = Self(0b1_0000_0000_0000); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -829,9 +812,9 @@ impl DebugUtilsMessageSeverityFlagsEXT { pub struct DebugUtilsMessageTypeFlagsEXT(pub(crate) Flags); vk_bitflags_wrapped!(DebugUtilsMessageTypeFlagsEXT, 0b111, Flags); impl DebugUtilsMessageTypeFlagsEXT { - pub const GENERAL: Self = DebugUtilsMessageTypeFlagsEXT(0b1); - pub const VALIDATION: Self = DebugUtilsMessageTypeFlagsEXT(0b10); - pub const PERFORMANCE: Self = DebugUtilsMessageTypeFlagsEXT(0b100); + pub const GENERAL: Self = Self(0b1); + pub const VALIDATION: Self = Self(0b10); + pub const PERFORMANCE: Self = Self(0b100); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -839,10 +822,10 @@ impl DebugUtilsMessageTypeFlagsEXT { pub struct DescriptorBindingFlags(pub(crate) Flags); vk_bitflags_wrapped!(DescriptorBindingFlags, 0b1111, Flags); impl DescriptorBindingFlags { - pub const UPDATE_AFTER_BIND: Self = DescriptorBindingFlags(0b1); - pub const UPDATE_UNUSED_WHILE_PENDING: Self = DescriptorBindingFlags(0b10); - pub const PARTIALLY_BOUND: Self = DescriptorBindingFlags(0b100); - pub const VARIABLE_DESCRIPTOR_COUNT: Self = DescriptorBindingFlags(0b1000); + pub const UPDATE_AFTER_BIND: Self = Self(0b1); + pub const UPDATE_UNUSED_WHILE_PENDING: Self = Self(0b10); + pub const PARTIALLY_BOUND: Self = Self(0b100); + pub const VARIABLE_DESCRIPTOR_COUNT: Self = Self(0b1000); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -850,7 +833,7 @@ impl DescriptorBindingFlags { pub struct ConditionalRenderingFlagsEXT(pub(crate) Flags); vk_bitflags_wrapped!(ConditionalRenderingFlagsEXT, 0b1, Flags); impl ConditionalRenderingFlagsEXT { - pub const INVERTED: Self = ConditionalRenderingFlagsEXT(0b1); + pub const INVERTED: Self = Self(0b1); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -858,11 +841,11 @@ impl ConditionalRenderingFlagsEXT { pub struct ResolveModeFlags(pub(crate) Flags); vk_bitflags_wrapped!(ResolveModeFlags, 0b1111, Flags); impl ResolveModeFlags { - pub const NONE: Self = ResolveModeFlags(0); - pub const SAMPLE_ZERO: Self = ResolveModeFlags(0b1); - pub const AVERAGE: Self = ResolveModeFlags(0b10); - pub const MIN: Self = ResolveModeFlags(0b100); - pub const MAX: Self = ResolveModeFlags(0b1000); + pub const NONE: Self = Self(0); + pub const SAMPLE_ZERO: Self = Self(0b1); + pub const AVERAGE: Self = Self(0b10); + pub const MIN: Self = Self(0b100); + pub const MAX: Self = Self(0b1000); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -870,10 +853,10 @@ impl ResolveModeFlags { pub struct GeometryInstanceFlagsKHR(pub(crate) Flags); vk_bitflags_wrapped!(GeometryInstanceFlagsKHR, 0b1111, Flags); impl GeometryInstanceFlagsKHR { - pub const TRIANGLE_FACING_CULL_DISABLE: Self = GeometryInstanceFlagsKHR(0b1); - pub const TRIANGLE_FRONT_COUNTERCLOCKWISE: Self = GeometryInstanceFlagsKHR(0b10); - pub const FORCE_OPAQUE: Self = GeometryInstanceFlagsKHR(0b100); - pub const FORCE_NO_OPAQUE: Self = GeometryInstanceFlagsKHR(0b1000); + pub const TRIANGLE_FACING_CULL_DISABLE: Self = Self(0b1); + pub const TRIANGLE_FRONT_COUNTERCLOCKWISE: Self = Self(0b10); + pub const FORCE_OPAQUE: Self = Self(0b100); + pub const FORCE_NO_OPAQUE: Self = Self(0b1000); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -881,8 +864,8 @@ impl GeometryInstanceFlagsKHR { pub struct GeometryFlagsKHR(pub(crate) Flags); vk_bitflags_wrapped!(GeometryFlagsKHR, 0b11, Flags); impl GeometryFlagsKHR { - pub const OPAQUE: Self = GeometryFlagsKHR(0b1); - pub const NO_DUPLICATE_ANY_HIT_INVOCATION: Self = GeometryFlagsKHR(0b10); + pub const OPAQUE: Self = Self(0b1); + pub const NO_DUPLICATE_ANY_HIT_INVOCATION: Self = Self(0b10); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -890,11 +873,11 @@ impl GeometryFlagsKHR { pub struct BuildAccelerationStructureFlagsKHR(pub(crate) Flags); vk_bitflags_wrapped!(BuildAccelerationStructureFlagsKHR, 0b1_1111, Flags); impl BuildAccelerationStructureFlagsKHR { - pub const ALLOW_UPDATE: Self = BuildAccelerationStructureFlagsKHR(0b1); - pub const ALLOW_COMPACTION: Self = BuildAccelerationStructureFlagsKHR(0b10); - pub const PREFER_FAST_TRACE: Self = BuildAccelerationStructureFlagsKHR(0b100); - pub const PREFER_FAST_BUILD: Self = BuildAccelerationStructureFlagsKHR(0b1000); - pub const LOW_MEMORY: Self = BuildAccelerationStructureFlagsKHR(0b1_0000); + pub const ALLOW_UPDATE: Self = Self(0b1); + pub const ALLOW_COMPACTION: Self = Self(0b10); + pub const PREFER_FAST_TRACE: Self = Self(0b100); + pub const PREFER_FAST_BUILD: Self = Self(0b1000); + pub const LOW_MEMORY: Self = Self(0b1_0000); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -908,9 +891,9 @@ impl FramebufferCreateFlags {} pub struct DeviceDiagnosticsConfigFlagsNV(pub(crate) Flags); vk_bitflags_wrapped!(DeviceDiagnosticsConfigFlagsNV, 0b111, Flags); impl DeviceDiagnosticsConfigFlagsNV { - pub const ENABLE_SHADER_DEBUG_INFO: Self = DeviceDiagnosticsConfigFlagsNV(0b1); - pub const ENABLE_RESOURCE_TRACKING: Self = DeviceDiagnosticsConfigFlagsNV(0b10); - pub const ENABLE_AUTOMATIC_CHECKPOINTS: Self = DeviceDiagnosticsConfigFlagsNV(0b100); + pub const ENABLE_SHADER_DEBUG_INFO: Self = Self(0b1); + pub const ENABLE_RESOURCE_TRACKING: Self = Self(0b10); + pub const ENABLE_AUTOMATIC_CHECKPOINTS: Self = Self(0b100); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -918,9 +901,9 @@ impl DeviceDiagnosticsConfigFlagsNV { pub struct PipelineCreationFeedbackFlagsEXT(pub(crate) Flags); vk_bitflags_wrapped!(PipelineCreationFeedbackFlagsEXT, 0b111, Flags); impl PipelineCreationFeedbackFlagsEXT { - pub const VALID: Self = PipelineCreationFeedbackFlagsEXT(0b1); - pub const APPLICATION_PIPELINE_CACHE_HIT: Self = PipelineCreationFeedbackFlagsEXT(0b10); - pub const BASE_PIPELINE_ACCELERATION: Self = PipelineCreationFeedbackFlagsEXT(0b100); + pub const VALID: Self = Self(0b1); + pub const APPLICATION_PIPELINE_CACHE_HIT: Self = Self(0b10); + pub const BASE_PIPELINE_ACCELERATION: Self = Self(0b100); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -928,8 +911,8 @@ impl PipelineCreationFeedbackFlagsEXT { pub struct PerformanceCounterDescriptionFlagsKHR(pub(crate) Flags); vk_bitflags_wrapped!(PerformanceCounterDescriptionFlagsKHR, 0b11, Flags); impl PerformanceCounterDescriptionFlagsKHR { - pub const PERFORMANCE_IMPACTING: Self = PerformanceCounterDescriptionFlagsKHR(0b1); - pub const CONCURRENTLY_IMPACTED: Self = PerformanceCounterDescriptionFlagsKHR(0b10); + pub const PERFORMANCE_IMPACTING: Self = Self(0b1); + pub const CONCURRENTLY_IMPACTED: Self = Self(0b10); } #[repr(transparent)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -961,9 +944,9 @@ impl PipelineCompilerControlFlagsAMD {} pub struct ToolPurposeFlagsEXT(pub(crate) Flags); vk_bitflags_wrapped!(ToolPurposeFlagsEXT, 0b1_1111, Flags); impl ToolPurposeFlagsEXT { - pub const VALIDATION: Self = ToolPurposeFlagsEXT(0b1); - pub const PROFILING: Self = ToolPurposeFlagsEXT(0b10); - pub const TRACING: Self = ToolPurposeFlagsEXT(0b100); - pub const ADDITIONAL_FEATURES: Self = ToolPurposeFlagsEXT(0b1000); - pub const MODIFYING_FEATURES: Self = ToolPurposeFlagsEXT(0b1_0000); + pub const VALIDATION: Self = Self(0b1); + pub const PROFILING: Self = Self(0b10); + pub const TRACING: Self = Self(0b100); + pub const ADDITIONAL_FEATURES: Self = Self(0b1000); + pub const MODIFYING_FEATURES: Self = Self(0b1_0000); } diff --git a/ash/src/vk/constants.rs b/ash/src/vk/constants.rs index ec78350..b774e49 100644 --- a/ash/src/vk/constants.rs +++ b/ash/src/vk/constants.rs @@ -1,24 +1,24 @@ use crate::vk::definitions::*; -pub const MAX_PHYSICAL_DEVICE_NAME_SIZE: usize = (256); -pub const UUID_SIZE: usize = (16); -pub const LUID_SIZE: usize = (8); -pub const MAX_EXTENSION_NAME_SIZE: usize = (256); -pub const MAX_DESCRIPTION_SIZE: usize = (256); -pub const MAX_MEMORY_TYPES: usize = (32); -pub const MAX_MEMORY_HEAPS: usize = (16); -pub const LOD_CLAMP_NONE: f32 = (1000.00); -pub const REMAINING_MIP_LEVELS: u32 = (!0); -pub const REMAINING_ARRAY_LAYERS: u32 = (!0); -pub const WHOLE_SIZE: u64 = (!0); -pub const ATTACHMENT_UNUSED: u32 = (!0); -pub const TRUE: Bool32 = (1); -pub const FALSE: Bool32 = (0); -pub const QUEUE_FAMILY_IGNORED: u32 = (!0); -pub const QUEUE_FAMILY_EXTERNAL: u32 = (!0 - 1); -pub const QUEUE_FAMILY_FOREIGN_EXT: u32 = (!0 - 2); -pub const SUBPASS_EXTERNAL: u32 = (!0); -pub const MAX_DEVICE_GROUP_SIZE: usize = (32); -pub const MAX_DRIVER_NAME_SIZE: usize = (256); -pub const MAX_DRIVER_INFO_SIZE: usize = (256); -pub const SHADER_UNUSED_KHR: u32 = (!0); +pub const MAX_PHYSICAL_DEVICE_NAME_SIZE: usize = 256; +pub const UUID_SIZE: usize = 16; +pub const LUID_SIZE: usize = 8; +pub const MAX_EXTENSION_NAME_SIZE: usize = 256; +pub const MAX_DESCRIPTION_SIZE: usize = 256; +pub const MAX_MEMORY_TYPES: usize = 32; +pub const MAX_MEMORY_HEAPS: usize = 16; +pub const LOD_CLAMP_NONE: f32 = 1000.00; +pub const REMAINING_MIP_LEVELS: u32 = !0; +pub const REMAINING_ARRAY_LAYERS: u32 = !0; +pub const WHOLE_SIZE: u64 = !0; +pub const ATTACHMENT_UNUSED: u32 = !0; +pub const TRUE: Bool32 = 1; +pub const FALSE: Bool32 = 0; +pub const QUEUE_FAMILY_IGNORED: u32 = !0; +pub const QUEUE_FAMILY_EXTERNAL: u32 = !0 - 1; +pub const QUEUE_FAMILY_FOREIGN_EXT: u32 = !0 - 2; +pub const SUBPASS_EXTERNAL: u32 = !0; +pub const MAX_DEVICE_GROUP_SIZE: usize = 32; +pub const MAX_DRIVER_NAME_SIZE: usize = 256; +pub const MAX_DRIVER_INFO_SIZE: usize = 256; +pub const SHADER_UNUSED_KHR: u32 = !0; pub const SHADER_UNUSED_NV: u32 = SHADER_UNUSED_KHR; diff --git a/ash/src/vk/enums.rs b/ash/src/vk/enums.rs index 76a1ba8..8d8a1f0 100644 --- a/ash/src/vk/enums.rs +++ b/ash/src/vk/enums.rs @@ -13,23 +13,23 @@ impl ImageLayout { } impl ImageLayout { #[doc = "Implicit layout an image is when its contents are undefined due to various reasons (e.g. right after creation)"] - pub const UNDEFINED: Self = ImageLayout(0); + pub const UNDEFINED: Self = Self(0); #[doc = "General layout when image can be used for any kind of access"] - pub const GENERAL: Self = ImageLayout(1); + pub const GENERAL: Self = Self(1); #[doc = "Optimal layout when image is only used for color attachment read/write"] - pub const COLOR_ATTACHMENT_OPTIMAL: Self = ImageLayout(2); + pub const COLOR_ATTACHMENT_OPTIMAL: Self = Self(2); #[doc = "Optimal layout when image is only used for depth/stencil attachment read/write"] - pub const DEPTH_STENCIL_ATTACHMENT_OPTIMAL: Self = ImageLayout(3); + pub const DEPTH_STENCIL_ATTACHMENT_OPTIMAL: Self = Self(3); #[doc = "Optimal layout when image is used for read only depth/stencil attachment and shader access"] - pub const DEPTH_STENCIL_READ_ONLY_OPTIMAL: Self = ImageLayout(4); + pub const DEPTH_STENCIL_READ_ONLY_OPTIMAL: Self = Self(4); #[doc = "Optimal layout when image is used for read only shader access"] - pub const SHADER_READ_ONLY_OPTIMAL: Self = ImageLayout(5); + pub const SHADER_READ_ONLY_OPTIMAL: Self = Self(5); #[doc = "Optimal layout when image is used only as source of transfer operations"] - pub const TRANSFER_SRC_OPTIMAL: Self = ImageLayout(6); + pub const TRANSFER_SRC_OPTIMAL: Self = Self(6); #[doc = "Optimal layout when image is used only as destination of transfer operations"] - pub const TRANSFER_DST_OPTIMAL: Self = ImageLayout(7); + pub const TRANSFER_DST_OPTIMAL: Self = Self(7); #[doc = "Initial layout used when the data is populated by the CPU"] - pub const PREINITIALIZED: Self = ImageLayout(8); + pub const PREINITIALIZED: Self = Self(8); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -44,9 +44,9 @@ impl AttachmentLoadOp { } } impl AttachmentLoadOp { - pub const LOAD: Self = AttachmentLoadOp(0); - pub const CLEAR: Self = AttachmentLoadOp(1); - pub const DONT_CARE: Self = AttachmentLoadOp(2); + pub const LOAD: Self = Self(0); + pub const CLEAR: Self = Self(1); + pub const DONT_CARE: Self = Self(2); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -61,8 +61,8 @@ impl AttachmentStoreOp { } } impl AttachmentStoreOp { - pub const STORE: Self = AttachmentStoreOp(0); - pub const DONT_CARE: Self = AttachmentStoreOp(1); + pub const STORE: Self = Self(0); + pub const DONT_CARE: Self = Self(1); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -77,9 +77,9 @@ impl ImageType { } } impl ImageType { - pub const TYPE_1D: Self = ImageType(0); - pub const TYPE_2D: Self = ImageType(1); - pub const TYPE_3D: Self = ImageType(2); + pub const TYPE_1D: Self = Self(0); + pub const TYPE_2D: Self = Self(1); + pub const TYPE_3D: Self = Self(2); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -94,8 +94,8 @@ impl ImageTiling { } } impl ImageTiling { - pub const OPTIMAL: Self = ImageTiling(0); - pub const LINEAR: Self = ImageTiling(1); + pub const OPTIMAL: Self = Self(0); + pub const LINEAR: Self = Self(1); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -110,13 +110,13 @@ impl ImageViewType { } } impl ImageViewType { - pub const TYPE_1D: Self = ImageViewType(0); - pub const TYPE_2D: Self = ImageViewType(1); - pub const TYPE_3D: Self = ImageViewType(2); - pub const CUBE: Self = ImageViewType(3); - pub const TYPE_1D_ARRAY: Self = ImageViewType(4); - pub const TYPE_2D_ARRAY: Self = ImageViewType(5); - pub const CUBE_ARRAY: Self = ImageViewType(6); + pub const TYPE_1D: Self = Self(0); + pub const TYPE_2D: Self = Self(1); + pub const TYPE_3D: Self = Self(2); + pub const CUBE: Self = Self(3); + pub const TYPE_1D_ARRAY: Self = Self(4); + pub const TYPE_2D_ARRAY: Self = Self(5); + pub const CUBE_ARRAY: Self = Self(6); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -131,8 +131,8 @@ impl CommandBufferLevel { } } impl CommandBufferLevel { - pub const PRIMARY: Self = CommandBufferLevel(0); - pub const SECONDARY: Self = CommandBufferLevel(1); + pub const PRIMARY: Self = Self(0); + pub const SECONDARY: Self = Self(1); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -147,13 +147,13 @@ impl ComponentSwizzle { } } impl ComponentSwizzle { - pub const IDENTITY: Self = ComponentSwizzle(0); - pub const ZERO: Self = ComponentSwizzle(1); - pub const ONE: Self = ComponentSwizzle(2); - pub const R: Self = ComponentSwizzle(3); - pub const G: Self = ComponentSwizzle(4); - pub const B: Self = ComponentSwizzle(5); - pub const A: Self = ComponentSwizzle(6); + pub const IDENTITY: Self = Self(0); + pub const ZERO: Self = Self(1); + pub const ONE: Self = Self(2); + pub const R: Self = Self(3); + pub const G: Self = Self(4); + pub const B: Self = Self(5); + pub const A: Self = Self(6); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -168,17 +168,17 @@ impl DescriptorType { } } impl DescriptorType { - pub const SAMPLER: Self = DescriptorType(0); - pub const COMBINED_IMAGE_SAMPLER: Self = DescriptorType(1); - pub const SAMPLED_IMAGE: Self = DescriptorType(2); - pub const STORAGE_IMAGE: Self = DescriptorType(3); - pub const UNIFORM_TEXEL_BUFFER: Self = DescriptorType(4); - pub const STORAGE_TEXEL_BUFFER: Self = DescriptorType(5); - pub const UNIFORM_BUFFER: Self = DescriptorType(6); - pub const STORAGE_BUFFER: Self = DescriptorType(7); - pub const UNIFORM_BUFFER_DYNAMIC: Self = DescriptorType(8); - pub const STORAGE_BUFFER_DYNAMIC: Self = DescriptorType(9); - pub const INPUT_ATTACHMENT: Self = DescriptorType(10); + pub const SAMPLER: Self = Self(0); + pub const COMBINED_IMAGE_SAMPLER: Self = Self(1); + pub const SAMPLED_IMAGE: Self = Self(2); + pub const STORAGE_IMAGE: Self = Self(3); + pub const UNIFORM_TEXEL_BUFFER: Self = Self(4); + pub const STORAGE_TEXEL_BUFFER: Self = Self(5); + pub const UNIFORM_BUFFER: Self = Self(6); + pub const STORAGE_BUFFER: Self = Self(7); + pub const UNIFORM_BUFFER_DYNAMIC: Self = Self(8); + pub const STORAGE_BUFFER_DYNAMIC: Self = Self(9); + pub const INPUT_ATTACHMENT: Self = Self(10); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -193,10 +193,10 @@ impl QueryType { } } impl QueryType { - pub const OCCLUSION: Self = QueryType(0); + pub const OCCLUSION: Self = Self(0); #[doc = "Optional"] - pub const PIPELINE_STATISTICS: Self = QueryType(1); - pub const TIMESTAMP: Self = QueryType(2); + pub const PIPELINE_STATISTICS: Self = Self(1); + pub const TIMESTAMP: Self = Self(2); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -211,12 +211,12 @@ impl BorderColor { } } impl BorderColor { - pub const FLOAT_TRANSPARENT_BLACK: Self = BorderColor(0); - pub const INT_TRANSPARENT_BLACK: Self = BorderColor(1); - pub const FLOAT_OPAQUE_BLACK: Self = BorderColor(2); - pub const INT_OPAQUE_BLACK: Self = BorderColor(3); - pub const FLOAT_OPAQUE_WHITE: Self = BorderColor(4); - pub const INT_OPAQUE_WHITE: Self = BorderColor(5); + pub const FLOAT_TRANSPARENT_BLACK: Self = Self(0); + pub const INT_TRANSPARENT_BLACK: Self = Self(1); + pub const FLOAT_OPAQUE_BLACK: Self = Self(2); + pub const INT_OPAQUE_BLACK: Self = Self(3); + pub const FLOAT_OPAQUE_WHITE: Self = Self(4); + pub const INT_OPAQUE_WHITE: Self = Self(5); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -231,8 +231,8 @@ impl PipelineBindPoint { } } impl PipelineBindPoint { - pub const GRAPHICS: Self = PipelineBindPoint(0); - pub const COMPUTE: Self = PipelineBindPoint(1); + pub const GRAPHICS: Self = Self(0); + pub const COMPUTE: Self = Self(1); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -247,7 +247,7 @@ impl PipelineCacheHeaderVersion { } } impl PipelineCacheHeaderVersion { - pub const ONE: Self = PipelineCacheHeaderVersion(1); + pub const ONE: Self = Self(1); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -262,17 +262,17 @@ impl PrimitiveTopology { } } impl PrimitiveTopology { - pub const POINT_LIST: Self = PrimitiveTopology(0); - pub const LINE_LIST: Self = PrimitiveTopology(1); - pub const LINE_STRIP: Self = PrimitiveTopology(2); - pub const TRIANGLE_LIST: Self = PrimitiveTopology(3); - pub const TRIANGLE_STRIP: Self = PrimitiveTopology(4); - pub const TRIANGLE_FAN: Self = PrimitiveTopology(5); - pub const LINE_LIST_WITH_ADJACENCY: Self = PrimitiveTopology(6); - pub const LINE_STRIP_WITH_ADJACENCY: Self = PrimitiveTopology(7); - pub const TRIANGLE_LIST_WITH_ADJACENCY: Self = PrimitiveTopology(8); - pub const TRIANGLE_STRIP_WITH_ADJACENCY: Self = PrimitiveTopology(9); - pub const PATCH_LIST: Self = PrimitiveTopology(10); + pub const POINT_LIST: Self = Self(0); + pub const LINE_LIST: Self = Self(1); + pub const LINE_STRIP: Self = Self(2); + pub const TRIANGLE_LIST: Self = Self(3); + pub const TRIANGLE_STRIP: Self = Self(4); + pub const TRIANGLE_FAN: Self = Self(5); + pub const LINE_LIST_WITH_ADJACENCY: Self = Self(6); + pub const LINE_STRIP_WITH_ADJACENCY: Self = Self(7); + pub const TRIANGLE_LIST_WITH_ADJACENCY: Self = Self(8); + pub const TRIANGLE_STRIP_WITH_ADJACENCY: Self = Self(9); + pub const PATCH_LIST: Self = Self(10); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -287,8 +287,8 @@ impl SharingMode { } } impl SharingMode { - pub const EXCLUSIVE: Self = SharingMode(0); - pub const CONCURRENT: Self = SharingMode(1); + pub const EXCLUSIVE: Self = Self(0); + pub const CONCURRENT: Self = Self(1); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -303,8 +303,8 @@ impl IndexType { } } impl IndexType { - pub const UINT16: Self = IndexType(0); - pub const UINT32: Self = IndexType(1); + pub const UINT16: Self = Self(0); + pub const UINT32: Self = Self(1); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -319,8 +319,8 @@ impl Filter { } } impl Filter { - pub const NEAREST: Self = Filter(0); - pub const LINEAR: Self = Filter(1); + pub const NEAREST: Self = Self(0); + pub const LINEAR: Self = Self(1); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -336,9 +336,9 @@ impl SamplerMipmapMode { } impl SamplerMipmapMode { #[doc = "Choose nearest mip level"] - pub const NEAREST: Self = SamplerMipmapMode(0); + pub const NEAREST: Self = Self(0); #[doc = "Linear filter between mip levels"] - pub const LINEAR: Self = SamplerMipmapMode(1); + pub const LINEAR: Self = Self(1); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -353,10 +353,10 @@ impl SamplerAddressMode { } } impl SamplerAddressMode { - pub const REPEAT: Self = SamplerAddressMode(0); - pub const MIRRORED_REPEAT: Self = SamplerAddressMode(1); - pub const CLAMP_TO_EDGE: Self = SamplerAddressMode(2); - pub const CLAMP_TO_BORDER: Self = SamplerAddressMode(3); + pub const REPEAT: Self = Self(0); + pub const MIRRORED_REPEAT: Self = Self(1); + pub const CLAMP_TO_EDGE: Self = Self(2); + pub const CLAMP_TO_BORDER: Self = Self(3); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -371,14 +371,14 @@ impl CompareOp { } } impl CompareOp { - pub const NEVER: Self = CompareOp(0); - pub const LESS: Self = CompareOp(1); - pub const EQUAL: Self = CompareOp(2); - pub const LESS_OR_EQUAL: Self = CompareOp(3); - pub const GREATER: Self = CompareOp(4); - pub const NOT_EQUAL: Self = CompareOp(5); - pub const GREATER_OR_EQUAL: Self = CompareOp(6); - pub const ALWAYS: Self = CompareOp(7); + pub const NEVER: Self = Self(0); + pub const LESS: Self = Self(1); + pub const EQUAL: Self = Self(2); + pub const LESS_OR_EQUAL: Self = Self(3); + pub const GREATER: Self = Self(4); + pub const NOT_EQUAL: Self = Self(5); + pub const GREATER_OR_EQUAL: Self = Self(6); + pub const ALWAYS: Self = Self(7); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -393,9 +393,9 @@ impl PolygonMode { } } impl PolygonMode { - pub const FILL: Self = PolygonMode(0); - pub const LINE: Self = PolygonMode(1); - pub const POINT: Self = PolygonMode(2); + pub const FILL: Self = Self(0); + pub const LINE: Self = Self(1); + pub const POINT: Self = Self(2); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -410,8 +410,8 @@ impl FrontFace { } } impl FrontFace { - pub const COUNTER_CLOCKWISE: Self = FrontFace(0); - pub const CLOCKWISE: Self = FrontFace(1); + pub const COUNTER_CLOCKWISE: Self = Self(0); + pub const CLOCKWISE: Self = Self(1); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -426,25 +426,25 @@ impl BlendFactor { } } impl BlendFactor { - pub const ZERO: Self = BlendFactor(0); - pub const ONE: Self = BlendFactor(1); - pub const SRC_COLOR: Self = BlendFactor(2); - pub const ONE_MINUS_SRC_COLOR: Self = BlendFactor(3); - pub const DST_COLOR: Self = BlendFactor(4); - pub const ONE_MINUS_DST_COLOR: Self = BlendFactor(5); - pub const SRC_ALPHA: Self = BlendFactor(6); - pub const ONE_MINUS_SRC_ALPHA: Self = BlendFactor(7); - pub const DST_ALPHA: Self = BlendFactor(8); - pub const ONE_MINUS_DST_ALPHA: Self = BlendFactor(9); - pub const CONSTANT_COLOR: Self = BlendFactor(10); - pub const ONE_MINUS_CONSTANT_COLOR: Self = BlendFactor(11); - pub const CONSTANT_ALPHA: Self = BlendFactor(12); - pub const ONE_MINUS_CONSTANT_ALPHA: Self = BlendFactor(13); - pub const SRC_ALPHA_SATURATE: Self = BlendFactor(14); - pub const SRC1_COLOR: Self = BlendFactor(15); - pub const ONE_MINUS_SRC1_COLOR: Self = BlendFactor(16); - pub const SRC1_ALPHA: Self = BlendFactor(17); - pub const ONE_MINUS_SRC1_ALPHA: Self = BlendFactor(18); + pub const ZERO: Self = Self(0); + pub const ONE: Self = Self(1); + pub const SRC_COLOR: Self = Self(2); + pub const ONE_MINUS_SRC_COLOR: Self = Self(3); + pub const DST_COLOR: Self = Self(4); + pub const ONE_MINUS_DST_COLOR: Self = Self(5); + pub const SRC_ALPHA: Self = Self(6); + pub const ONE_MINUS_SRC_ALPHA: Self = Self(7); + pub const DST_ALPHA: Self = Self(8); + pub const ONE_MINUS_DST_ALPHA: Self = Self(9); + pub const CONSTANT_COLOR: Self = Self(10); + pub const ONE_MINUS_CONSTANT_COLOR: Self = Self(11); + pub const CONSTANT_ALPHA: Self = Self(12); + pub const ONE_MINUS_CONSTANT_ALPHA: Self = Self(13); + pub const SRC_ALPHA_SATURATE: Self = Self(14); + pub const SRC1_COLOR: Self = Self(15); + pub const ONE_MINUS_SRC1_COLOR: Self = Self(16); + pub const SRC1_ALPHA: Self = Self(17); + pub const ONE_MINUS_SRC1_ALPHA: Self = Self(18); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -459,11 +459,11 @@ impl BlendOp { } } impl BlendOp { - pub const ADD: Self = BlendOp(0); - pub const SUBTRACT: Self = BlendOp(1); - pub const REVERSE_SUBTRACT: Self = BlendOp(2); - pub const MIN: Self = BlendOp(3); - pub const MAX: Self = BlendOp(4); + pub const ADD: Self = Self(0); + pub const SUBTRACT: Self = Self(1); + pub const REVERSE_SUBTRACT: Self = Self(2); + pub const MIN: Self = Self(3); + pub const MAX: Self = Self(4); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -478,14 +478,14 @@ impl StencilOp { } } impl StencilOp { - pub const KEEP: Self = StencilOp(0); - pub const ZERO: Self = StencilOp(1); - pub const REPLACE: Self = StencilOp(2); - pub const INCREMENT_AND_CLAMP: Self = StencilOp(3); - pub const DECREMENT_AND_CLAMP: Self = StencilOp(4); - pub const INVERT: Self = StencilOp(5); - pub const INCREMENT_AND_WRAP: Self = StencilOp(6); - pub const DECREMENT_AND_WRAP: Self = StencilOp(7); + pub const KEEP: Self = Self(0); + pub const ZERO: Self = Self(1); + pub const REPLACE: Self = Self(2); + pub const INCREMENT_AND_CLAMP: Self = Self(3); + pub const DECREMENT_AND_CLAMP: Self = Self(4); + pub const INVERT: Self = Self(5); + pub const INCREMENT_AND_WRAP: Self = Self(6); + pub const DECREMENT_AND_WRAP: Self = Self(7); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -500,22 +500,22 @@ impl LogicOp { } } impl LogicOp { - pub const CLEAR: Self = LogicOp(0); - pub const AND: Self = LogicOp(1); - pub const AND_REVERSE: Self = LogicOp(2); - pub const COPY: Self = LogicOp(3); - pub const AND_INVERTED: Self = LogicOp(4); - pub const NO_OP: Self = LogicOp(5); - pub const XOR: Self = LogicOp(6); - pub const OR: Self = LogicOp(7); - pub const NOR: Self = LogicOp(8); - pub const EQUIVALENT: Self = LogicOp(9); - pub const INVERT: Self = LogicOp(10); - pub const OR_REVERSE: Self = LogicOp(11); - pub const COPY_INVERTED: Self = LogicOp(12); - pub const OR_INVERTED: Self = LogicOp(13); - pub const NAND: Self = LogicOp(14); - pub const SET: Self = LogicOp(15); + pub const CLEAR: Self = Self(0); + pub const AND: Self = Self(1); + pub const AND_REVERSE: Self = Self(2); + pub const COPY: Self = Self(3); + pub const AND_INVERTED: Self = Self(4); + pub const NO_OP: Self = Self(5); + pub const XOR: Self = Self(6); + pub const OR: Self = Self(7); + pub const NOR: Self = Self(8); + pub const EQUIVALENT: Self = Self(9); + pub const INVERT: Self = Self(10); + pub const OR_REVERSE: Self = Self(11); + pub const COPY_INVERTED: Self = Self(12); + pub const OR_INVERTED: Self = Self(13); + pub const NAND: Self = Self(14); + pub const SET: Self = Self(15); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -530,7 +530,7 @@ impl InternalAllocationType { } } impl InternalAllocationType { - pub const EXECUTABLE: Self = InternalAllocationType(0); + pub const EXECUTABLE: Self = Self(0); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -545,11 +545,11 @@ impl SystemAllocationScope { } } impl SystemAllocationScope { - pub const COMMAND: Self = SystemAllocationScope(0); - pub const OBJECT: Self = SystemAllocationScope(1); - pub const CACHE: Self = SystemAllocationScope(2); - pub const DEVICE: Self = SystemAllocationScope(3); - pub const INSTANCE: Self = SystemAllocationScope(4); + pub const COMMAND: Self = Self(0); + pub const OBJECT: Self = Self(1); + pub const CACHE: Self = Self(2); + pub const DEVICE: Self = Self(3); + pub const INSTANCE: Self = Self(4); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -564,11 +564,11 @@ impl PhysicalDeviceType { } } impl PhysicalDeviceType { - pub const OTHER: Self = PhysicalDeviceType(0); - pub const INTEGRATED_GPU: Self = PhysicalDeviceType(1); - pub const DISCRETE_GPU: Self = PhysicalDeviceType(2); - pub const VIRTUAL_GPU: Self = PhysicalDeviceType(3); - pub const CPU: Self = PhysicalDeviceType(4); + pub const OTHER: Self = Self(0); + pub const INTEGRATED_GPU: Self = Self(1); + pub const DISCRETE_GPU: Self = Self(2); + pub const VIRTUAL_GPU: Self = Self(3); + pub const CPU: Self = Self(4); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -583,8 +583,8 @@ impl VertexInputRate { } } impl VertexInputRate { - pub const VERTEX: Self = VertexInputRate(0); - pub const INSTANCE: Self = VertexInputRate(1); + pub const VERTEX: Self = Self(0); + pub const INSTANCE: Self = Self(1); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -599,191 +599,191 @@ impl Format { } } impl Format { - pub const UNDEFINED: Self = Format(0); - pub const R4G4_UNORM_PACK8: Self = Format(1); - pub const R4G4B4A4_UNORM_PACK16: Self = Format(2); - pub const B4G4R4A4_UNORM_PACK16: Self = Format(3); - pub const R5G6B5_UNORM_PACK16: Self = Format(4); - pub const B5G6R5_UNORM_PACK16: Self = Format(5); - pub const R5G5B5A1_UNORM_PACK16: Self = Format(6); - pub const B5G5R5A1_UNORM_PACK16: Self = Format(7); - pub const A1R5G5B5_UNORM_PACK16: Self = Format(8); - pub const R8_UNORM: Self = Format(9); - pub const R8_SNORM: Self = Format(10); - pub const R8_USCALED: Self = Format(11); - pub const R8_SSCALED: Self = Format(12); - pub const R8_UINT: Self = Format(13); - pub const R8_SINT: Self = Format(14); - pub const R8_SRGB: Self = Format(15); - pub const R8G8_UNORM: Self = Format(16); - pub const R8G8_SNORM: Self = Format(17); - pub const R8G8_USCALED: Self = Format(18); - pub const R8G8_SSCALED: Self = Format(19); - pub const R8G8_UINT: Self = Format(20); - pub const R8G8_SINT: Self = Format(21); - pub const R8G8_SRGB: Self = Format(22); - pub const R8G8B8_UNORM: Self = Format(23); - pub const R8G8B8_SNORM: Self = Format(24); - pub const R8G8B8_USCALED: Self = Format(25); - pub const R8G8B8_SSCALED: Self = Format(26); - pub const R8G8B8_UINT: Self = Format(27); - pub const R8G8B8_SINT: Self = Format(28); - pub const R8G8B8_SRGB: Self = Format(29); - pub const B8G8R8_UNORM: Self = Format(30); - pub const B8G8R8_SNORM: Self = Format(31); - pub const B8G8R8_USCALED: Self = Format(32); - pub const B8G8R8_SSCALED: Self = Format(33); - pub const B8G8R8_UINT: Self = Format(34); - pub const B8G8R8_SINT: Self = Format(35); - pub const B8G8R8_SRGB: Self = Format(36); - pub const R8G8B8A8_UNORM: Self = Format(37); - pub const R8G8B8A8_SNORM: Self = Format(38); - pub const R8G8B8A8_USCALED: Self = Format(39); - pub const R8G8B8A8_SSCALED: Self = Format(40); - pub const R8G8B8A8_UINT: Self = Format(41); - pub const R8G8B8A8_SINT: Self = Format(42); - pub const R8G8B8A8_SRGB: Self = Format(43); - pub const B8G8R8A8_UNORM: Self = Format(44); - pub const B8G8R8A8_SNORM: Self = Format(45); - pub const B8G8R8A8_USCALED: Self = Format(46); - pub const B8G8R8A8_SSCALED: Self = Format(47); - pub const B8G8R8A8_UINT: Self = Format(48); - pub const B8G8R8A8_SINT: Self = Format(49); - pub const B8G8R8A8_SRGB: Self = Format(50); - pub const A8B8G8R8_UNORM_PACK32: Self = Format(51); - pub const A8B8G8R8_SNORM_PACK32: Self = Format(52); - pub const A8B8G8R8_USCALED_PACK32: Self = Format(53); - pub const A8B8G8R8_SSCALED_PACK32: Self = Format(54); - pub const A8B8G8R8_UINT_PACK32: Self = Format(55); - pub const A8B8G8R8_SINT_PACK32: Self = Format(56); - pub const A8B8G8R8_SRGB_PACK32: Self = Format(57); - pub const A2R10G10B10_UNORM_PACK32: Self = Format(58); - pub const A2R10G10B10_SNORM_PACK32: Self = Format(59); - pub const A2R10G10B10_USCALED_PACK32: Self = Format(60); - pub const A2R10G10B10_SSCALED_PACK32: Self = Format(61); - pub const A2R10G10B10_UINT_PACK32: Self = Format(62); - pub const A2R10G10B10_SINT_PACK32: Self = Format(63); - pub const A2B10G10R10_UNORM_PACK32: Self = Format(64); - pub const A2B10G10R10_SNORM_PACK32: Self = Format(65); - pub const A2B10G10R10_USCALED_PACK32: Self = Format(66); - pub const A2B10G10R10_SSCALED_PACK32: Self = Format(67); - pub const A2B10G10R10_UINT_PACK32: Self = Format(68); - pub const A2B10G10R10_SINT_PACK32: Self = Format(69); - pub const R16_UNORM: Self = Format(70); - pub const R16_SNORM: Self = Format(71); - pub const R16_USCALED: Self = Format(72); - pub const R16_SSCALED: Self = Format(73); - pub const R16_UINT: Self = Format(74); - pub const R16_SINT: Self = Format(75); - pub const R16_SFLOAT: Self = Format(76); - pub const R16G16_UNORM: Self = Format(77); - pub const R16G16_SNORM: Self = Format(78); - pub const R16G16_USCALED: Self = Format(79); - pub const R16G16_SSCALED: Self = Format(80); - pub const R16G16_UINT: Self = Format(81); - pub const R16G16_SINT: Self = Format(82); - pub const R16G16_SFLOAT: Self = Format(83); - pub const R16G16B16_UNORM: Self = Format(84); - pub const R16G16B16_SNORM: Self = Format(85); - pub const R16G16B16_USCALED: Self = Format(86); - pub const R16G16B16_SSCALED: Self = Format(87); - pub const R16G16B16_UINT: Self = Format(88); - pub const R16G16B16_SINT: Self = Format(89); - pub const R16G16B16_SFLOAT: Self = Format(90); - pub const R16G16B16A16_UNORM: Self = Format(91); - pub const R16G16B16A16_SNORM: Self = Format(92); - pub const R16G16B16A16_USCALED: Self = Format(93); - pub const R16G16B16A16_SSCALED: Self = Format(94); - pub const R16G16B16A16_UINT: Self = Format(95); - pub const R16G16B16A16_SINT: Self = Format(96); - pub const R16G16B16A16_SFLOAT: Self = Format(97); - pub const R32_UINT: Self = Format(98); - pub const R32_SINT: Self = Format(99); - pub const R32_SFLOAT: Self = Format(100); - pub const R32G32_UINT: Self = Format(101); - pub const R32G32_SINT: Self = Format(102); - pub const R32G32_SFLOAT: Self = Format(103); - pub const R32G32B32_UINT: Self = Format(104); - pub const R32G32B32_SINT: Self = Format(105); - pub const R32G32B32_SFLOAT: Self = Format(106); - pub const R32G32B32A32_UINT: Self = Format(107); - pub const R32G32B32A32_SINT: Self = Format(108); - pub const R32G32B32A32_SFLOAT: Self = Format(109); - pub const R64_UINT: Self = Format(110); - pub const R64_SINT: Self = Format(111); - pub const R64_SFLOAT: Self = Format(112); - pub const R64G64_UINT: Self = Format(113); - pub const R64G64_SINT: Self = Format(114); - pub const R64G64_SFLOAT: Self = Format(115); - pub const R64G64B64_UINT: Self = Format(116); - pub const R64G64B64_SINT: Self = Format(117); - pub const R64G64B64_SFLOAT: Self = Format(118); - pub const R64G64B64A64_UINT: Self = Format(119); - pub const R64G64B64A64_SINT: Self = Format(120); - pub const R64G64B64A64_SFLOAT: Self = Format(121); - pub const B10G11R11_UFLOAT_PACK32: Self = Format(122); - pub const E5B9G9R9_UFLOAT_PACK32: Self = Format(123); - pub const D16_UNORM: Self = Format(124); - pub const X8_D24_UNORM_PACK32: Self = Format(125); - pub const D32_SFLOAT: Self = Format(126); - pub const S8_UINT: Self = Format(127); - pub const D16_UNORM_S8_UINT: Self = Format(128); - pub const D24_UNORM_S8_UINT: Self = Format(129); - pub const D32_SFLOAT_S8_UINT: Self = Format(130); - pub const BC1_RGB_UNORM_BLOCK: Self = Format(131); - pub const BC1_RGB_SRGB_BLOCK: Self = Format(132); - pub const BC1_RGBA_UNORM_BLOCK: Self = Format(133); - pub const BC1_RGBA_SRGB_BLOCK: Self = Format(134); - pub const BC2_UNORM_BLOCK: Self = Format(135); - pub const BC2_SRGB_BLOCK: Self = Format(136); - pub const BC3_UNORM_BLOCK: Self = Format(137); - pub const BC3_SRGB_BLOCK: Self = Format(138); - pub const BC4_UNORM_BLOCK: Self = Format(139); - pub const BC4_SNORM_BLOCK: Self = Format(140); - pub const BC5_UNORM_BLOCK: Self = Format(141); - pub const BC5_SNORM_BLOCK: Self = Format(142); - pub const BC6H_UFLOAT_BLOCK: Self = Format(143); - pub const BC6H_SFLOAT_BLOCK: Self = Format(144); - pub const BC7_UNORM_BLOCK: Self = Format(145); - pub const BC7_SRGB_BLOCK: Self = Format(146); - pub const ETC2_R8G8B8_UNORM_BLOCK: Self = Format(147); - pub const ETC2_R8G8B8_SRGB_BLOCK: Self = Format(148); - pub const ETC2_R8G8B8A1_UNORM_BLOCK: Self = Format(149); - pub const ETC2_R8G8B8A1_SRGB_BLOCK: Self = Format(150); - pub const ETC2_R8G8B8A8_UNORM_BLOCK: Self = Format(151); - pub const ETC2_R8G8B8A8_SRGB_BLOCK: Self = Format(152); - pub const EAC_R11_UNORM_BLOCK: Self = Format(153); - pub const EAC_R11_SNORM_BLOCK: Self = Format(154); - pub const EAC_R11G11_UNORM_BLOCK: Self = Format(155); - pub const EAC_R11G11_SNORM_BLOCK: Self = Format(156); - pub const ASTC_4X4_UNORM_BLOCK: Self = Format(157); - pub const ASTC_4X4_SRGB_BLOCK: Self = Format(158); - pub const ASTC_5X4_UNORM_BLOCK: Self = Format(159); - pub const ASTC_5X4_SRGB_BLOCK: Self = Format(160); - pub const ASTC_5X5_UNORM_BLOCK: Self = Format(161); - pub const ASTC_5X5_SRGB_BLOCK: Self = Format(162); - pub const ASTC_6X5_UNORM_BLOCK: Self = Format(163); - pub const ASTC_6X5_SRGB_BLOCK: Self = Format(164); - pub const ASTC_6X6_UNORM_BLOCK: Self = Format(165); - pub const ASTC_6X6_SRGB_BLOCK: Self = Format(166); - pub const ASTC_8X5_UNORM_BLOCK: Self = Format(167); - pub const ASTC_8X5_SRGB_BLOCK: Self = Format(168); - pub const ASTC_8X6_UNORM_BLOCK: Self = Format(169); - pub const ASTC_8X6_SRGB_BLOCK: Self = Format(170); - pub const ASTC_8X8_UNORM_BLOCK: Self = Format(171); - pub const ASTC_8X8_SRGB_BLOCK: Self = Format(172); - pub const ASTC_10X5_UNORM_BLOCK: Self = Format(173); - pub const ASTC_10X5_SRGB_BLOCK: Self = Format(174); - pub const ASTC_10X6_UNORM_BLOCK: Self = Format(175); - pub const ASTC_10X6_SRGB_BLOCK: Self = Format(176); - pub const ASTC_10X8_UNORM_BLOCK: Self = Format(177); - pub const ASTC_10X8_SRGB_BLOCK: Self = Format(178); - pub const ASTC_10X10_UNORM_BLOCK: Self = Format(179); - pub const ASTC_10X10_SRGB_BLOCK: Self = Format(180); - pub const ASTC_12X10_UNORM_BLOCK: Self = Format(181); - pub const ASTC_12X10_SRGB_BLOCK: Self = Format(182); - pub const ASTC_12X12_UNORM_BLOCK: Self = Format(183); - pub const ASTC_12X12_SRGB_BLOCK: Self = Format(184); + pub const UNDEFINED: Self = Self(0); + pub const R4G4_UNORM_PACK8: Self = Self(1); + pub const R4G4B4A4_UNORM_PACK16: Self = Self(2); + pub const B4G4R4A4_UNORM_PACK16: Self = Self(3); + pub const R5G6B5_UNORM_PACK16: Self = Self(4); + pub const B5G6R5_UNORM_PACK16: Self = Self(5); + pub const R5G5B5A1_UNORM_PACK16: Self = Self(6); + pub const B5G5R5A1_UNORM_PACK16: Self = Self(7); + pub const A1R5G5B5_UNORM_PACK16: Self = Self(8); + pub const R8_UNORM: Self = Self(9); + pub const R8_SNORM: Self = Self(10); + pub const R8_USCALED: Self = Self(11); + pub const R8_SSCALED: Self = Self(12); + pub const R8_UINT: Self = Self(13); + pub const R8_SINT: Self = Self(14); + pub const R8_SRGB: Self = Self(15); + pub const R8G8_UNORM: Self = Self(16); + pub const R8G8_SNORM: Self = Self(17); + pub const R8G8_USCALED: Self = Self(18); + pub const R8G8_SSCALED: Self = Self(19); + pub const R8G8_UINT: Self = Self(20); + pub const R8G8_SINT: Self = Self(21); + pub const R8G8_SRGB: Self = Self(22); + pub const R8G8B8_UNORM: Self = Self(23); + pub const R8G8B8_SNORM: Self = Self(24); + pub const R8G8B8_USCALED: Self = Self(25); + pub const R8G8B8_SSCALED: Self = Self(26); + pub const R8G8B8_UINT: Self = Self(27); + pub const R8G8B8_SINT: Self = Self(28); + pub const R8G8B8_SRGB: Self = Self(29); + pub const B8G8R8_UNORM: Self = Self(30); + pub const B8G8R8_SNORM: Self = Self(31); + pub const B8G8R8_USCALED: Self = Self(32); + pub const B8G8R8_SSCALED: Self = Self(33); + pub const B8G8R8_UINT: Self = Self(34); + pub const B8G8R8_SINT: Self = Self(35); + pub const B8G8R8_SRGB: Self = Self(36); + pub const R8G8B8A8_UNORM: Self = Self(37); + pub const R8G8B8A8_SNORM: Self = Self(38); + pub const R8G8B8A8_USCALED: Self = Self(39); + pub const R8G8B8A8_SSCALED: Self = Self(40); + pub const R8G8B8A8_UINT: Self = Self(41); + pub const R8G8B8A8_SINT: Self = Self(42); + pub const R8G8B8A8_SRGB: Self = Self(43); + pub const B8G8R8A8_UNORM: Self = Self(44); + pub const B8G8R8A8_SNORM: Self = Self(45); + pub const B8G8R8A8_USCALED: Self = Self(46); + pub const B8G8R8A8_SSCALED: Self = Self(47); + pub const B8G8R8A8_UINT: Self = Self(48); + pub const B8G8R8A8_SINT: Self = Self(49); + pub const B8G8R8A8_SRGB: Self = Self(50); + pub const A8B8G8R8_UNORM_PACK32: Self = Self(51); + pub const A8B8G8R8_SNORM_PACK32: Self = Self(52); + pub const A8B8G8R8_USCALED_PACK32: Self = Self(53); + pub const A8B8G8R8_SSCALED_PACK32: Self = Self(54); + pub const A8B8G8R8_UINT_PACK32: Self = Self(55); + pub const A8B8G8R8_SINT_PACK32: Self = Self(56); + pub const A8B8G8R8_SRGB_PACK32: Self = Self(57); + pub const A2R10G10B10_UNORM_PACK32: Self = Self(58); + pub const A2R10G10B10_SNORM_PACK32: Self = Self(59); + pub const A2R10G10B10_USCALED_PACK32: Self = Self(60); + pub const A2R10G10B10_SSCALED_PACK32: Self = Self(61); + pub const A2R10G10B10_UINT_PACK32: Self = Self(62); + pub const A2R10G10B10_SINT_PACK32: Self = Self(63); + pub const A2B10G10R10_UNORM_PACK32: Self = Self(64); + pub const A2B10G10R10_SNORM_PACK32: Self = Self(65); + pub const A2B10G10R10_USCALED_PACK32: Self = Self(66); + pub const A2B10G10R10_SSCALED_PACK32: Self = Self(67); + pub const A2B10G10R10_UINT_PACK32: Self = Self(68); + pub const A2B10G10R10_SINT_PACK32: Self = Self(69); + pub const R16_UNORM: Self = Self(70); + pub const R16_SNORM: Self = Self(71); + pub const R16_USCALED: Self = Self(72); + pub const R16_SSCALED: Self = Self(73); + pub const R16_UINT: Self = Self(74); + pub const R16_SINT: Self = Self(75); + pub const R16_SFLOAT: Self = Self(76); + pub const R16G16_UNORM: Self = Self(77); + pub const R16G16_SNORM: Self = Self(78); + pub const R16G16_USCALED: Self = Self(79); + pub const R16G16_SSCALED: Self = Self(80); + pub const R16G16_UINT: Self = Self(81); + pub const R16G16_SINT: Self = Self(82); + pub const R16G16_SFLOAT: Self = Self(83); + pub const R16G16B16_UNORM: Self = Self(84); + pub const R16G16B16_SNORM: Self = Self(85); + pub const R16G16B16_USCALED: Self = Self(86); + pub const R16G16B16_SSCALED: Self = Self(87); + pub const R16G16B16_UINT: Self = Self(88); + pub const R16G16B16_SINT: Self = Self(89); + pub const R16G16B16_SFLOAT: Self = Self(90); + pub const R16G16B16A16_UNORM: Self = Self(91); + pub const R16G16B16A16_SNORM: Self = Self(92); + pub const R16G16B16A16_USCALED: Self = Self(93); + pub const R16G16B16A16_SSCALED: Self = Self(94); + pub const R16G16B16A16_UINT: Self = Self(95); + pub const R16G16B16A16_SINT: Self = Self(96); + pub const R16G16B16A16_SFLOAT: Self = Self(97); + pub const R32_UINT: Self = Self(98); + pub const R32_SINT: Self = Self(99); + pub const R32_SFLOAT: Self = Self(100); + pub const R32G32_UINT: Self = Self(101); + pub const R32G32_SINT: Self = Self(102); + pub const R32G32_SFLOAT: Self = Self(103); + pub const R32G32B32_UINT: Self = Self(104); + pub const R32G32B32_SINT: Self = Self(105); + pub const R32G32B32_SFLOAT: Self = Self(106); + pub const R32G32B32A32_UINT: Self = Self(107); + pub const R32G32B32A32_SINT: Self = Self(108); + pub const R32G32B32A32_SFLOAT: Self = Self(109); + pub const R64_UINT: Self = Self(110); + pub const R64_SINT: Self = Self(111); + pub const R64_SFLOAT: Self = Self(112); + pub const R64G64_UINT: Self = Self(113); + pub const R64G64_SINT: Self = Self(114); + pub const R64G64_SFLOAT: Self = Self(115); + pub const R64G64B64_UINT: Self = Self(116); + pub const R64G64B64_SINT: Self = Self(117); + pub const R64G64B64_SFLOAT: Self = Self(118); + pub const R64G64B64A64_UINT: Self = Self(119); + pub const R64G64B64A64_SINT: Self = Self(120); + pub const R64G64B64A64_SFLOAT: Self = Self(121); + pub const B10G11R11_UFLOAT_PACK32: Self = Self(122); + pub const E5B9G9R9_UFLOAT_PACK32: Self = Self(123); + pub const D16_UNORM: Self = Self(124); + pub const X8_D24_UNORM_PACK32: Self = Self(125); + pub const D32_SFLOAT: Self = Self(126); + pub const S8_UINT: Self = Self(127); + pub const D16_UNORM_S8_UINT: Self = Self(128); + pub const D24_UNORM_S8_UINT: Self = Self(129); + pub const D32_SFLOAT_S8_UINT: Self = Self(130); + pub const BC1_RGB_UNORM_BLOCK: Self = Self(131); + pub const BC1_RGB_SRGB_BLOCK: Self = Self(132); + pub const BC1_RGBA_UNORM_BLOCK: Self = Self(133); + pub const BC1_RGBA_SRGB_BLOCK: Self = Self(134); + pub const BC2_UNORM_BLOCK: Self = Self(135); + pub const BC2_SRGB_BLOCK: Self = Self(136); + pub const BC3_UNORM_BLOCK: Self = Self(137); + pub const BC3_SRGB_BLOCK: Self = Self(138); + pub const BC4_UNORM_BLOCK: Self = Self(139); + pub const BC4_SNORM_BLOCK: Self = Self(140); + pub const BC5_UNORM_BLOCK: Self = Self(141); + pub const BC5_SNORM_BLOCK: Self = Self(142); + pub const BC6H_UFLOAT_BLOCK: Self = Self(143); + pub const BC6H_SFLOAT_BLOCK: Self = Self(144); + pub const BC7_UNORM_BLOCK: Self = Self(145); + pub const BC7_SRGB_BLOCK: Self = Self(146); + pub const ETC2_R8G8B8_UNORM_BLOCK: Self = Self(147); + pub const ETC2_R8G8B8_SRGB_BLOCK: Self = Self(148); + pub const ETC2_R8G8B8A1_UNORM_BLOCK: Self = Self(149); + pub const ETC2_R8G8B8A1_SRGB_BLOCK: Self = Self(150); + pub const ETC2_R8G8B8A8_UNORM_BLOCK: Self = Self(151); + pub const ETC2_R8G8B8A8_SRGB_BLOCK: Self = Self(152); + pub const EAC_R11_UNORM_BLOCK: Self = Self(153); + pub const EAC_R11_SNORM_BLOCK: Self = Self(154); + pub const EAC_R11G11_UNORM_BLOCK: Self = Self(155); + pub const EAC_R11G11_SNORM_BLOCK: Self = Self(156); + pub const ASTC_4X4_UNORM_BLOCK: Self = Self(157); + pub const ASTC_4X4_SRGB_BLOCK: Self = Self(158); + pub const ASTC_5X4_UNORM_BLOCK: Self = Self(159); + pub const ASTC_5X4_SRGB_BLOCK: Self = Self(160); + pub const ASTC_5X5_UNORM_BLOCK: Self = Self(161); + pub const ASTC_5X5_SRGB_BLOCK: Self = Self(162); + pub const ASTC_6X5_UNORM_BLOCK: Self = Self(163); + pub const ASTC_6X5_SRGB_BLOCK: Self = Self(164); + pub const ASTC_6X6_UNORM_BLOCK: Self = Self(165); + pub const ASTC_6X6_SRGB_BLOCK: Self = Self(166); + pub const ASTC_8X5_UNORM_BLOCK: Self = Self(167); + pub const ASTC_8X5_SRGB_BLOCK: Self = Self(168); + pub const ASTC_8X6_UNORM_BLOCK: Self = Self(169); + pub const ASTC_8X6_SRGB_BLOCK: Self = Self(170); + pub const ASTC_8X8_UNORM_BLOCK: Self = Self(171); + pub const ASTC_8X8_SRGB_BLOCK: Self = Self(172); + pub const ASTC_10X5_UNORM_BLOCK: Self = Self(173); + pub const ASTC_10X5_SRGB_BLOCK: Self = Self(174); + pub const ASTC_10X6_UNORM_BLOCK: Self = Self(175); + pub const ASTC_10X6_SRGB_BLOCK: Self = Self(176); + pub const ASTC_10X8_UNORM_BLOCK: Self = Self(177); + pub const ASTC_10X8_SRGB_BLOCK: Self = Self(178); + pub const ASTC_10X10_UNORM_BLOCK: Self = Self(179); + pub const ASTC_10X10_SRGB_BLOCK: Self = Self(180); + pub const ASTC_12X10_UNORM_BLOCK: Self = Self(181); + pub const ASTC_12X10_SRGB_BLOCK: Self = Self(182); + pub const ASTC_12X12_UNORM_BLOCK: Self = Self(183); + pub const ASTC_12X12_SRGB_BLOCK: Self = Self(184); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -798,57 +798,57 @@ impl StructureType { } } impl StructureType { - pub const APPLICATION_INFO: Self = StructureType(0); - pub const INSTANCE_CREATE_INFO: Self = StructureType(1); - pub const DEVICE_QUEUE_CREATE_INFO: Self = StructureType(2); - pub const DEVICE_CREATE_INFO: Self = StructureType(3); - pub const SUBMIT_INFO: Self = StructureType(4); - pub const MEMORY_ALLOCATE_INFO: Self = StructureType(5); - pub const MAPPED_MEMORY_RANGE: Self = StructureType(6); - pub const BIND_SPARSE_INFO: Self = StructureType(7); - pub const FENCE_CREATE_INFO: Self = StructureType(8); - pub const SEMAPHORE_CREATE_INFO: Self = StructureType(9); - pub const EVENT_CREATE_INFO: Self = StructureType(10); - pub const QUERY_POOL_CREATE_INFO: Self = StructureType(11); - pub const BUFFER_CREATE_INFO: Self = StructureType(12); - pub const BUFFER_VIEW_CREATE_INFO: Self = StructureType(13); - pub const IMAGE_CREATE_INFO: Self = StructureType(14); - pub const IMAGE_VIEW_CREATE_INFO: Self = StructureType(15); - pub const SHADER_MODULE_CREATE_INFO: Self = StructureType(16); - pub const PIPELINE_CACHE_CREATE_INFO: Self = StructureType(17); - pub const PIPELINE_SHADER_STAGE_CREATE_INFO: Self = StructureType(18); - pub const PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO: Self = StructureType(19); - pub const PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO: Self = StructureType(20); - pub const PIPELINE_TESSELLATION_STATE_CREATE_INFO: Self = StructureType(21); - pub const PIPELINE_VIEWPORT_STATE_CREATE_INFO: Self = StructureType(22); - pub const PIPELINE_RASTERIZATION_STATE_CREATE_INFO: Self = StructureType(23); - pub const PIPELINE_MULTISAMPLE_STATE_CREATE_INFO: Self = StructureType(24); - pub const PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFO: Self = StructureType(25); - pub const PIPELINE_COLOR_BLEND_STATE_CREATE_INFO: Self = StructureType(26); - pub const PIPELINE_DYNAMIC_STATE_CREATE_INFO: Self = StructureType(27); - pub const GRAPHICS_PIPELINE_CREATE_INFO: Self = StructureType(28); - pub const COMPUTE_PIPELINE_CREATE_INFO: Self = StructureType(29); - pub const PIPELINE_LAYOUT_CREATE_INFO: Self = StructureType(30); - pub const SAMPLER_CREATE_INFO: Self = StructureType(31); - pub const DESCRIPTOR_SET_LAYOUT_CREATE_INFO: Self = StructureType(32); - pub const DESCRIPTOR_POOL_CREATE_INFO: Self = StructureType(33); - pub const DESCRIPTOR_SET_ALLOCATE_INFO: Self = StructureType(34); - pub const WRITE_DESCRIPTOR_SET: Self = StructureType(35); - pub const COPY_DESCRIPTOR_SET: Self = StructureType(36); - pub const FRAMEBUFFER_CREATE_INFO: Self = StructureType(37); - pub const RENDER_PASS_CREATE_INFO: Self = StructureType(38); - pub const COMMAND_POOL_CREATE_INFO: Self = StructureType(39); - pub const COMMAND_BUFFER_ALLOCATE_INFO: Self = StructureType(40); - pub const COMMAND_BUFFER_INHERITANCE_INFO: Self = StructureType(41); - pub const COMMAND_BUFFER_BEGIN_INFO: Self = StructureType(42); - pub const RENDER_PASS_BEGIN_INFO: Self = StructureType(43); - pub const BUFFER_MEMORY_BARRIER: Self = StructureType(44); - pub const IMAGE_MEMORY_BARRIER: Self = StructureType(45); - pub const MEMORY_BARRIER: Self = StructureType(46); + pub const APPLICATION_INFO: Self = Self(0); + pub const INSTANCE_CREATE_INFO: Self = Self(1); + pub const DEVICE_QUEUE_CREATE_INFO: Self = Self(2); + pub const DEVICE_CREATE_INFO: Self = Self(3); + pub const SUBMIT_INFO: Self = Self(4); + pub const MEMORY_ALLOCATE_INFO: Self = Self(5); + pub const MAPPED_MEMORY_RANGE: Self = Self(6); + pub const BIND_SPARSE_INFO: Self = Self(7); + pub const FENCE_CREATE_INFO: Self = Self(8); + pub const SEMAPHORE_CREATE_INFO: Self = Self(9); + pub const EVENT_CREATE_INFO: Self = Self(10); + pub const QUERY_POOL_CREATE_INFO: Self = Self(11); + pub const BUFFER_CREATE_INFO: Self = Self(12); + pub const BUFFER_VIEW_CREATE_INFO: Self = Self(13); + pub const IMAGE_CREATE_INFO: Self = Self(14); + pub const IMAGE_VIEW_CREATE_INFO: Self = Self(15); + pub const SHADER_MODULE_CREATE_INFO: Self = Self(16); + pub const PIPELINE_CACHE_CREATE_INFO: Self = Self(17); + pub const PIPELINE_SHADER_STAGE_CREATE_INFO: Self = Self(18); + pub const PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO: Self = Self(19); + pub const PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO: Self = Self(20); + pub const PIPELINE_TESSELLATION_STATE_CREATE_INFO: Self = Self(21); + pub const PIPELINE_VIEWPORT_STATE_CREATE_INFO: Self = Self(22); + pub const PIPELINE_RASTERIZATION_STATE_CREATE_INFO: Self = Self(23); + pub const PIPELINE_MULTISAMPLE_STATE_CREATE_INFO: Self = Self(24); + pub const PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFO: Self = Self(25); + pub const PIPELINE_COLOR_BLEND_STATE_CREATE_INFO: Self = Self(26); + pub const PIPELINE_DYNAMIC_STATE_CREATE_INFO: Self = Self(27); + pub const GRAPHICS_PIPELINE_CREATE_INFO: Self = Self(28); + pub const COMPUTE_PIPELINE_CREATE_INFO: Self = Self(29); + pub const PIPELINE_LAYOUT_CREATE_INFO: Self = Self(30); + pub const SAMPLER_CREATE_INFO: Self = Self(31); + pub const DESCRIPTOR_SET_LAYOUT_CREATE_INFO: Self = Self(32); + pub const DESCRIPTOR_POOL_CREATE_INFO: Self = Self(33); + pub const DESCRIPTOR_SET_ALLOCATE_INFO: Self = Self(34); + pub const WRITE_DESCRIPTOR_SET: Self = Self(35); + pub const COPY_DESCRIPTOR_SET: Self = Self(36); + pub const FRAMEBUFFER_CREATE_INFO: Self = Self(37); + pub const RENDER_PASS_CREATE_INFO: Self = Self(38); + pub const COMMAND_POOL_CREATE_INFO: Self = Self(39); + pub const COMMAND_BUFFER_ALLOCATE_INFO: Self = Self(40); + pub const COMMAND_BUFFER_INHERITANCE_INFO: Self = Self(41); + pub const COMMAND_BUFFER_BEGIN_INFO: Self = Self(42); + pub const RENDER_PASS_BEGIN_INFO: Self = Self(43); + pub const BUFFER_MEMORY_BARRIER: Self = Self(44); + pub const IMAGE_MEMORY_BARRIER: Self = Self(45); + pub const MEMORY_BARRIER: Self = Self(46); #[doc = "Reserved for internal use by the loader, layers, and ICDs"] - pub const LOADER_INSTANCE_CREATE_INFO: Self = StructureType(47); + pub const LOADER_INSTANCE_CREATE_INFO: Self = Self(47); #[doc = "Reserved for internal use by the loader, layers, and ICDs"] - pub const LOADER_DEVICE_CREATE_INFO: Self = StructureType(48); + pub const LOADER_DEVICE_CREATE_INFO: Self = Self(48); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -863,8 +863,8 @@ impl SubpassContents { } } impl SubpassContents { - pub const INLINE: Self = SubpassContents(0); - pub const SECONDARY_COMMAND_BUFFERS: Self = SubpassContents(1); + pub const INLINE: Self = Self(0); + pub const SECONDARY_COMMAND_BUFFERS: Self = Self(1); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -880,43 +880,43 @@ impl Result { } impl Result { #[doc = "Command completed successfully"] - pub const SUCCESS: Self = Result(0); + pub const SUCCESS: Self = Self(0); #[doc = "A fence or query has not yet completed"] - pub const NOT_READY: Self = Result(1); + pub const NOT_READY: Self = Self(1); #[doc = "A wait operation has not completed in the specified time"] - pub const TIMEOUT: Self = Result(2); + pub const TIMEOUT: Self = Self(2); #[doc = "An event is signaled"] - pub const EVENT_SET: Self = Result(3); + pub const EVENT_SET: Self = Self(3); #[doc = "An event is unsignaled"] - pub const EVENT_RESET: Self = Result(4); + pub const EVENT_RESET: Self = Self(4); #[doc = "A return array was too small for the result"] - pub const INCOMPLETE: Self = Result(5); + pub const INCOMPLETE: Self = Self(5); #[doc = "A host memory allocation has failed"] - pub const ERROR_OUT_OF_HOST_MEMORY: Self = Result(-1); + pub const ERROR_OUT_OF_HOST_MEMORY: Self = Self(-1); #[doc = "A device memory allocation has failed"] - pub const ERROR_OUT_OF_DEVICE_MEMORY: Self = Result(-2); + pub const ERROR_OUT_OF_DEVICE_MEMORY: Self = Self(-2); #[doc = "Initialization of a object has failed"] - pub const ERROR_INITIALIZATION_FAILED: Self = Result(-3); + pub const ERROR_INITIALIZATION_FAILED: Self = Self(-3); #[doc = "The logical device has been lost. See <>"] - pub const ERROR_DEVICE_LOST: Self = Result(-4); + pub const ERROR_DEVICE_LOST: Self = Self(-4); #[doc = "Mapping of a memory object has failed"] - pub const ERROR_MEMORY_MAP_FAILED: Self = Result(-5); + pub const ERROR_MEMORY_MAP_FAILED: Self = Self(-5); #[doc = "Layer specified does not exist"] - pub const ERROR_LAYER_NOT_PRESENT: Self = Result(-6); + pub const ERROR_LAYER_NOT_PRESENT: Self = Self(-6); #[doc = "Extension specified does not exist"] - pub const ERROR_EXTENSION_NOT_PRESENT: Self = Result(-7); + pub const ERROR_EXTENSION_NOT_PRESENT: Self = Self(-7); #[doc = "Requested feature is not available on this device"] - pub const ERROR_FEATURE_NOT_PRESENT: Self = Result(-8); + pub const ERROR_FEATURE_NOT_PRESENT: Self = Self(-8); #[doc = "Unable to find a Vulkan driver"] - pub const ERROR_INCOMPATIBLE_DRIVER: Self = Result(-9); + pub const ERROR_INCOMPATIBLE_DRIVER: Self = Self(-9); #[doc = "Too many objects of the type have already been created"] - pub const ERROR_TOO_MANY_OBJECTS: Self = Result(-10); + pub const ERROR_TOO_MANY_OBJECTS: Self = Self(-10); #[doc = "Requested format is not supported on this device"] - pub const ERROR_FORMAT_NOT_SUPPORTED: Self = Result(-11); + pub const ERROR_FORMAT_NOT_SUPPORTED: Self = Self(-11); #[doc = "A requested pool allocation has failed due to fragmentation of the pool\'s memory"] - pub const ERROR_FRAGMENTED_POOL: Self = Result(-12); + pub const ERROR_FRAGMENTED_POOL: Self = Self(-12); #[doc = "An unknown error has occurred, due to an implementation or application bug"] - pub const ERROR_UNKNOWN: Self = Result(-13); + pub const ERROR_UNKNOWN: Self = Self(-13); } impl ::std::error::Error for Result { fn description(&self) -> &str { @@ -1013,15 +1013,15 @@ impl DynamicState { } } impl DynamicState { - pub const VIEWPORT: Self = DynamicState(0); - pub const SCISSOR: Self = DynamicState(1); - pub const LINE_WIDTH: Self = DynamicState(2); - pub const DEPTH_BIAS: Self = DynamicState(3); - pub const BLEND_CONSTANTS: Self = DynamicState(4); - pub const DEPTH_BOUNDS: Self = DynamicState(5); - pub const STENCIL_COMPARE_MASK: Self = DynamicState(6); - pub const STENCIL_WRITE_MASK: Self = DynamicState(7); - pub const STENCIL_REFERENCE: Self = DynamicState(8); + pub const VIEWPORT: Self = Self(0); + pub const SCISSOR: Self = Self(1); + pub const LINE_WIDTH: Self = Self(2); + pub const DEPTH_BIAS: Self = Self(3); + pub const BLEND_CONSTANTS: Self = Self(4); + pub const DEPTH_BOUNDS: Self = Self(5); + pub const STENCIL_COMPARE_MASK: Self = Self(6); + pub const STENCIL_WRITE_MASK: Self = Self(7); + pub const STENCIL_REFERENCE: Self = Self(8); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1037,7 +1037,7 @@ impl DescriptorUpdateTemplateType { } impl DescriptorUpdateTemplateType { #[doc = "Create descriptor update template for descriptor set updates"] - pub const DESCRIPTOR_SET: Self = DescriptorUpdateTemplateType(0); + pub const DESCRIPTOR_SET: Self = Self(0); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1052,57 +1052,57 @@ impl ObjectType { } } impl ObjectType { - pub const UNKNOWN: Self = ObjectType(0); + pub const UNKNOWN: Self = Self(0); #[doc = "VkInstance"] - pub const INSTANCE: Self = ObjectType(1); + pub const INSTANCE: Self = Self(1); #[doc = "VkPhysicalDevice"] - pub const PHYSICAL_DEVICE: Self = ObjectType(2); + pub const PHYSICAL_DEVICE: Self = Self(2); #[doc = "VkDevice"] - pub const DEVICE: Self = ObjectType(3); + pub const DEVICE: Self = Self(3); #[doc = "VkQueue"] - pub const QUEUE: Self = ObjectType(4); + pub const QUEUE: Self = Self(4); #[doc = "VkSemaphore"] - pub const SEMAPHORE: Self = ObjectType(5); + pub const SEMAPHORE: Self = Self(5); #[doc = "VkCommandBuffer"] - pub const COMMAND_BUFFER: Self = ObjectType(6); + pub const COMMAND_BUFFER: Self = Self(6); #[doc = "VkFence"] - pub const FENCE: Self = ObjectType(7); + pub const FENCE: Self = Self(7); #[doc = "VkDeviceMemory"] - pub const DEVICE_MEMORY: Self = ObjectType(8); + pub const DEVICE_MEMORY: Self = Self(8); #[doc = "VkBuffer"] - pub const BUFFER: Self = ObjectType(9); + pub const BUFFER: Self = Self(9); #[doc = "VkImage"] - pub const IMAGE: Self = ObjectType(10); + pub const IMAGE: Self = Self(10); #[doc = "VkEvent"] - pub const EVENT: Self = ObjectType(11); + pub const EVENT: Self = Self(11); #[doc = "VkQueryPool"] - pub const QUERY_POOL: Self = ObjectType(12); + pub const QUERY_POOL: Self = Self(12); #[doc = "VkBufferView"] - pub const BUFFER_VIEW: Self = ObjectType(13); + pub const BUFFER_VIEW: Self = Self(13); #[doc = "VkImageView"] - pub const IMAGE_VIEW: Self = ObjectType(14); + pub const IMAGE_VIEW: Self = Self(14); #[doc = "VkShaderModule"] - pub const SHADER_MODULE: Self = ObjectType(15); + pub const SHADER_MODULE: Self = Self(15); #[doc = "VkPipelineCache"] - pub const PIPELINE_CACHE: Self = ObjectType(16); + pub const PIPELINE_CACHE: Self = Self(16); #[doc = "VkPipelineLayout"] - pub const PIPELINE_LAYOUT: Self = ObjectType(17); + pub const PIPELINE_LAYOUT: Self = Self(17); #[doc = "VkRenderPass"] - pub const RENDER_PASS: Self = ObjectType(18); + pub const RENDER_PASS: Self = Self(18); #[doc = "VkPipeline"] - pub const PIPELINE: Self = ObjectType(19); + pub const PIPELINE: Self = Self(19); #[doc = "VkDescriptorSetLayout"] - pub const DESCRIPTOR_SET_LAYOUT: Self = ObjectType(20); + pub const DESCRIPTOR_SET_LAYOUT: Self = Self(20); #[doc = "VkSampler"] - pub const SAMPLER: Self = ObjectType(21); + pub const SAMPLER: Self = Self(21); #[doc = "VkDescriptorPool"] - pub const DESCRIPTOR_POOL: Self = ObjectType(22); + pub const DESCRIPTOR_POOL: Self = Self(22); #[doc = "VkDescriptorSet"] - pub const DESCRIPTOR_SET: Self = ObjectType(23); + pub const DESCRIPTOR_SET: Self = Self(23); #[doc = "VkFramebuffer"] - pub const FRAMEBUFFER: Self = ObjectType(24); + pub const FRAMEBUFFER: Self = Self(24); #[doc = "VkCommandPool"] - pub const COMMAND_POOL: Self = ObjectType(25); + pub const COMMAND_POOL: Self = Self(25); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1117,8 +1117,8 @@ impl SemaphoreType { } } impl SemaphoreType { - pub const BINARY: Self = SemaphoreType(0); - pub const TIMELINE: Self = SemaphoreType(1); + pub const BINARY: Self = Self(0); + pub const TIMELINE: Self = Self(1); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1133,10 +1133,10 @@ impl PresentModeKHR { } } impl PresentModeKHR { - pub const IMMEDIATE: Self = PresentModeKHR(0); - pub const MAILBOX: Self = PresentModeKHR(1); - pub const FIFO: Self = PresentModeKHR(2); - pub const FIFO_RELAXED: Self = PresentModeKHR(3); + pub const IMMEDIATE: Self = Self(0); + pub const MAILBOX: Self = Self(1); + pub const FIFO: Self = Self(2); + pub const FIFO_RELAXED: Self = Self(3); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1151,7 +1151,7 @@ impl ColorSpaceKHR { } } impl ColorSpaceKHR { - pub const SRGB_NONLINEAR: Self = ColorSpaceKHR(0); + pub const SRGB_NONLINEAR: Self = Self(0); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1166,10 +1166,10 @@ impl TimeDomainEXT { } } impl TimeDomainEXT { - pub const DEVICE: Self = TimeDomainEXT(0); - pub const CLOCK_MONOTONIC: Self = TimeDomainEXT(1); - pub const CLOCK_MONOTONIC_RAW: Self = TimeDomainEXT(2); - pub const QUERY_PERFORMANCE_COUNTER: Self = TimeDomainEXT(3); + pub const DEVICE: Self = Self(0); + pub const CLOCK_MONOTONIC: Self = Self(1); + pub const CLOCK_MONOTONIC_RAW: Self = Self(2); + pub const QUERY_PERFORMANCE_COUNTER: Self = Self(3); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1184,38 +1184,38 @@ impl DebugReportObjectTypeEXT { } } impl DebugReportObjectTypeEXT { - pub const UNKNOWN: Self = DebugReportObjectTypeEXT(0); - pub const INSTANCE: Self = DebugReportObjectTypeEXT(1); - pub const PHYSICAL_DEVICE: Self = DebugReportObjectTypeEXT(2); - pub const DEVICE: Self = DebugReportObjectTypeEXT(3); - pub const QUEUE: Self = DebugReportObjectTypeEXT(4); - pub const SEMAPHORE: Self = DebugReportObjectTypeEXT(5); - pub const COMMAND_BUFFER: Self = DebugReportObjectTypeEXT(6); - pub const FENCE: Self = DebugReportObjectTypeEXT(7); - pub const DEVICE_MEMORY: Self = DebugReportObjectTypeEXT(8); - pub const BUFFER: Self = DebugReportObjectTypeEXT(9); - pub const IMAGE: Self = DebugReportObjectTypeEXT(10); - pub const EVENT: Self = DebugReportObjectTypeEXT(11); - pub const QUERY_POOL: Self = DebugReportObjectTypeEXT(12); - pub const BUFFER_VIEW: Self = DebugReportObjectTypeEXT(13); - pub const IMAGE_VIEW: Self = DebugReportObjectTypeEXT(14); - pub const SHADER_MODULE: Self = DebugReportObjectTypeEXT(15); - pub const PIPELINE_CACHE: Self = DebugReportObjectTypeEXT(16); - pub const PIPELINE_LAYOUT: Self = DebugReportObjectTypeEXT(17); - pub const RENDER_PASS: Self = DebugReportObjectTypeEXT(18); - pub const PIPELINE: Self = DebugReportObjectTypeEXT(19); - pub const DESCRIPTOR_SET_LAYOUT: Self = DebugReportObjectTypeEXT(20); - pub const SAMPLER: Self = DebugReportObjectTypeEXT(21); - pub const DESCRIPTOR_POOL: Self = DebugReportObjectTypeEXT(22); - pub const DESCRIPTOR_SET: Self = DebugReportObjectTypeEXT(23); - pub const FRAMEBUFFER: Self = DebugReportObjectTypeEXT(24); - pub const COMMAND_POOL: Self = DebugReportObjectTypeEXT(25); - pub const SURFACE_KHR: Self = DebugReportObjectTypeEXT(26); - pub const SWAPCHAIN_KHR: Self = DebugReportObjectTypeEXT(27); - pub const DEBUG_REPORT_CALLBACK: Self = DebugReportObjectTypeEXT(28); - pub const DISPLAY_KHR: Self = DebugReportObjectTypeEXT(29); - pub const DISPLAY_MODE_KHR: Self = DebugReportObjectTypeEXT(30); - pub const VALIDATION_CACHE: Self = DebugReportObjectTypeEXT(33); + pub const UNKNOWN: Self = Self(0); + pub const INSTANCE: Self = Self(1); + pub const PHYSICAL_DEVICE: Self = Self(2); + pub const DEVICE: Self = Self(3); + pub const QUEUE: Self = Self(4); + pub const SEMAPHORE: Self = Self(5); + pub const COMMAND_BUFFER: Self = Self(6); + pub const FENCE: Self = Self(7); + pub const DEVICE_MEMORY: Self = Self(8); + pub const BUFFER: Self = Self(9); + pub const IMAGE: Self = Self(10); + pub const EVENT: Self = Self(11); + pub const QUERY_POOL: Self = Self(12); + pub const BUFFER_VIEW: Self = Self(13); + pub const IMAGE_VIEW: Self = Self(14); + pub const SHADER_MODULE: Self = Self(15); + pub const PIPELINE_CACHE: Self = Self(16); + pub const PIPELINE_LAYOUT: Self = Self(17); + pub const RENDER_PASS: Self = Self(18); + pub const PIPELINE: Self = Self(19); + pub const DESCRIPTOR_SET_LAYOUT: Self = Self(20); + pub const SAMPLER: Self = Self(21); + pub const DESCRIPTOR_POOL: Self = Self(22); + pub const DESCRIPTOR_SET: Self = Self(23); + pub const FRAMEBUFFER: Self = Self(24); + pub const COMMAND_POOL: Self = Self(25); + pub const SURFACE_KHR: Self = Self(26); + pub const SWAPCHAIN_KHR: Self = Self(27); + pub const DEBUG_REPORT_CALLBACK: Self = Self(28); + pub const DISPLAY_KHR: Self = Self(29); + pub const DISPLAY_MODE_KHR: Self = Self(30); + pub const VALIDATION_CACHE: Self = Self(33); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1230,8 +1230,8 @@ impl RasterizationOrderAMD { } } impl RasterizationOrderAMD { - pub const STRICT: Self = RasterizationOrderAMD(0); - pub const RELAXED: Self = RasterizationOrderAMD(1); + pub const STRICT: Self = Self(0); + pub const RELAXED: Self = Self(1); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1246,8 +1246,8 @@ impl ValidationCheckEXT { } } impl ValidationCheckEXT { - pub const ALL: Self = ValidationCheckEXT(0); - pub const SHADERS: Self = ValidationCheckEXT(1); + pub const ALL: Self = Self(0); + pub const SHADERS: Self = Self(1); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1262,10 +1262,10 @@ impl ValidationFeatureEnableEXT { } } impl ValidationFeatureEnableEXT { - pub const GPU_ASSISTED: Self = ValidationFeatureEnableEXT(0); - pub const GPU_ASSISTED_RESERVE_BINDING_SLOT: Self = ValidationFeatureEnableEXT(1); - pub const BEST_PRACTICES: Self = ValidationFeatureEnableEXT(2); - pub const DEBUG_PRINTF: Self = ValidationFeatureEnableEXT(3); + pub const GPU_ASSISTED: Self = Self(0); + pub const GPU_ASSISTED_RESERVE_BINDING_SLOT: Self = Self(1); + pub const BEST_PRACTICES: Self = Self(2); + pub const DEBUG_PRINTF: Self = Self(3); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1280,13 +1280,13 @@ impl ValidationFeatureDisableEXT { } } impl ValidationFeatureDisableEXT { - pub const ALL: Self = ValidationFeatureDisableEXT(0); - pub const SHADERS: Self = ValidationFeatureDisableEXT(1); - pub const THREAD_SAFETY: Self = ValidationFeatureDisableEXT(2); - pub const API_PARAMETERS: Self = ValidationFeatureDisableEXT(3); - pub const OBJECT_LIFETIMES: Self = ValidationFeatureDisableEXT(4); - pub const CORE_CHECKS: Self = ValidationFeatureDisableEXT(5); - pub const UNIQUE_HANDLES: Self = ValidationFeatureDisableEXT(6); + pub const ALL: Self = Self(0); + pub const SHADERS: Self = Self(1); + pub const THREAD_SAFETY: Self = Self(2); + pub const API_PARAMETERS: Self = Self(3); + pub const OBJECT_LIFETIMES: Self = Self(4); + pub const CORE_CHECKS: Self = Self(5); + pub const UNIQUE_HANDLES: Self = Self(6); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1301,14 +1301,14 @@ impl IndirectCommandsTokenTypeNV { } } impl IndirectCommandsTokenTypeNV { - pub const SHADER_GROUP: Self = IndirectCommandsTokenTypeNV(0); - pub const STATE_FLAGS: Self = IndirectCommandsTokenTypeNV(1); - pub const INDEX_BUFFER: Self = IndirectCommandsTokenTypeNV(2); - pub const VERTEX_BUFFER: Self = IndirectCommandsTokenTypeNV(3); - pub const PUSH_CONSTANT: Self = IndirectCommandsTokenTypeNV(4); - pub const DRAW_INDEXED: Self = IndirectCommandsTokenTypeNV(5); - pub const DRAW: Self = IndirectCommandsTokenTypeNV(6); - pub const DRAW_TASKS: Self = IndirectCommandsTokenTypeNV(7); + pub const SHADER_GROUP: Self = Self(0); + pub const STATE_FLAGS: Self = Self(1); + pub const INDEX_BUFFER: Self = Self(2); + pub const VERTEX_BUFFER: Self = Self(3); + pub const PUSH_CONSTANT: Self = Self(4); + pub const DRAW_INDEXED: Self = Self(5); + pub const DRAW: Self = Self(6); + pub const DRAW_TASKS: Self = Self(7); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1323,9 +1323,9 @@ impl DisplayPowerStateEXT { } } impl DisplayPowerStateEXT { - pub const OFF: Self = DisplayPowerStateEXT(0); - pub const SUSPEND: Self = DisplayPowerStateEXT(1); - pub const ON: Self = DisplayPowerStateEXT(2); + pub const OFF: Self = Self(0); + pub const SUSPEND: Self = Self(1); + pub const ON: Self = Self(2); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1340,7 +1340,7 @@ impl DeviceEventTypeEXT { } } impl DeviceEventTypeEXT { - pub const DISPLAY_HOTPLUG: Self = DeviceEventTypeEXT(0); + pub const DISPLAY_HOTPLUG: Self = Self(0); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1355,7 +1355,7 @@ impl DisplayEventTypeEXT { } } impl DisplayEventTypeEXT { - pub const FIRST_PIXEL_OUT: Self = DisplayEventTypeEXT(0); + pub const FIRST_PIXEL_OUT: Self = Self(0); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1370,14 +1370,14 @@ impl ViewportCoordinateSwizzleNV { } } impl ViewportCoordinateSwizzleNV { - pub const POSITIVE_X: Self = ViewportCoordinateSwizzleNV(0); - pub const NEGATIVE_X: Self = ViewportCoordinateSwizzleNV(1); - pub const POSITIVE_Y: Self = ViewportCoordinateSwizzleNV(2); - pub const NEGATIVE_Y: Self = ViewportCoordinateSwizzleNV(3); - pub const POSITIVE_Z: Self = ViewportCoordinateSwizzleNV(4); - pub const NEGATIVE_Z: Self = ViewportCoordinateSwizzleNV(5); - pub const POSITIVE_W: Self = ViewportCoordinateSwizzleNV(6); - pub const NEGATIVE_W: Self = ViewportCoordinateSwizzleNV(7); + pub const POSITIVE_X: Self = Self(0); + pub const NEGATIVE_X: Self = Self(1); + pub const POSITIVE_Y: Self = Self(2); + pub const NEGATIVE_Y: Self = Self(3); + pub const POSITIVE_Z: Self = Self(4); + pub const NEGATIVE_Z: Self = Self(5); + pub const POSITIVE_W: Self = Self(6); + pub const NEGATIVE_W: Self = Self(7); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1392,8 +1392,8 @@ impl DiscardRectangleModeEXT { } } impl DiscardRectangleModeEXT { - pub const INCLUSIVE: Self = DiscardRectangleModeEXT(0); - pub const EXCLUSIVE: Self = DiscardRectangleModeEXT(1); + pub const INCLUSIVE: Self = Self(0); + pub const EXCLUSIVE: Self = Self(1); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1408,8 +1408,8 @@ impl PointClippingBehavior { } } impl PointClippingBehavior { - pub const ALL_CLIP_PLANES: Self = PointClippingBehavior(0); - pub const USER_CLIP_PLANES_ONLY: Self = PointClippingBehavior(1); + pub const ALL_CLIP_PLANES: Self = Self(0); + pub const USER_CLIP_PLANES_ONLY: Self = Self(1); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1424,9 +1424,9 @@ impl SamplerReductionMode { } } impl SamplerReductionMode { - pub const WEIGHTED_AVERAGE: Self = SamplerReductionMode(0); - pub const MIN: Self = SamplerReductionMode(1); - pub const MAX: Self = SamplerReductionMode(2); + pub const WEIGHTED_AVERAGE: Self = Self(0); + pub const MIN: Self = Self(1); + pub const MAX: Self = Self(2); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1441,8 +1441,8 @@ impl TessellationDomainOrigin { } } impl TessellationDomainOrigin { - pub const UPPER_LEFT: Self = TessellationDomainOrigin(0); - pub const LOWER_LEFT: Self = TessellationDomainOrigin(1); + pub const UPPER_LEFT: Self = Self(0); + pub const LOWER_LEFT: Self = Self(1); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1457,15 +1457,15 @@ impl SamplerYcbcrModelConversion { } } impl SamplerYcbcrModelConversion { - pub const RGB_IDENTITY: Self = SamplerYcbcrModelConversion(0); + pub const RGB_IDENTITY: Self = Self(0); #[doc = "just range expansion"] - pub const YCBCR_IDENTITY: Self = SamplerYcbcrModelConversion(1); + pub const YCBCR_IDENTITY: Self = Self(1); #[doc = "aka HD YUV"] - pub const YCBCR_709: Self = SamplerYcbcrModelConversion(2); + pub const YCBCR_709: Self = Self(2); #[doc = "aka SD YUV"] - pub const YCBCR_601: Self = SamplerYcbcrModelConversion(3); + pub const YCBCR_601: Self = Self(3); #[doc = "aka UHD YUV"] - pub const YCBCR_2020: Self = SamplerYcbcrModelConversion(4); + pub const YCBCR_2020: Self = Self(4); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1481,9 +1481,9 @@ impl SamplerYcbcrRange { } impl SamplerYcbcrRange { #[doc = "Luma 0..1 maps to 0..255, chroma -0.5..0.5 to 1..255 (clamped)"] - pub const ITU_FULL: Self = SamplerYcbcrRange(0); + pub const ITU_FULL: Self = Self(0); #[doc = "Luma 0..1 maps to 16..235, chroma -0.5..0.5 to 16..240"] - pub const ITU_NARROW: Self = SamplerYcbcrRange(1); + pub const ITU_NARROW: Self = Self(1); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1498,8 +1498,8 @@ impl ChromaLocation { } } impl ChromaLocation { - pub const COSITED_EVEN: Self = ChromaLocation(0); - pub const MIDPOINT: Self = ChromaLocation(1); + pub const COSITED_EVEN: Self = Self(0); + pub const MIDPOINT: Self = Self(1); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1514,9 +1514,9 @@ impl BlendOverlapEXT { } } impl BlendOverlapEXT { - pub const UNCORRELATED: Self = BlendOverlapEXT(0); - pub const DISJOINT: Self = BlendOverlapEXT(1); - pub const CONJOINT: Self = BlendOverlapEXT(2); + pub const UNCORRELATED: Self = Self(0); + pub const DISJOINT: Self = Self(1); + pub const CONJOINT: Self = Self(2); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1531,10 +1531,10 @@ impl CoverageModulationModeNV { } } impl CoverageModulationModeNV { - pub const NONE: Self = CoverageModulationModeNV(0); - pub const RGB: Self = CoverageModulationModeNV(1); - pub const ALPHA: Self = CoverageModulationModeNV(2); - pub const RGBA: Self = CoverageModulationModeNV(3); + pub const NONE: Self = Self(0); + pub const RGB: Self = Self(1); + pub const ALPHA: Self = Self(2); + pub const RGBA: Self = Self(3); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1549,8 +1549,8 @@ impl CoverageReductionModeNV { } } impl CoverageReductionModeNV { - pub const MERGE: Self = CoverageReductionModeNV(0); - pub const TRUNCATE: Self = CoverageReductionModeNV(1); + pub const MERGE: Self = Self(0); + pub const TRUNCATE: Self = Self(1); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1565,7 +1565,7 @@ impl ValidationCacheHeaderVersionEXT { } } impl ValidationCacheHeaderVersionEXT { - pub const ONE: Self = ValidationCacheHeaderVersionEXT(1); + pub const ONE: Self = Self(1); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1580,9 +1580,9 @@ impl ShaderInfoTypeAMD { } } impl ShaderInfoTypeAMD { - pub const STATISTICS: Self = ShaderInfoTypeAMD(0); - pub const BINARY: Self = ShaderInfoTypeAMD(1); - pub const DISASSEMBLY: Self = ShaderInfoTypeAMD(2); + pub const STATISTICS: Self = Self(0); + pub const BINARY: Self = Self(1); + pub const DISASSEMBLY: Self = Self(2); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1597,10 +1597,10 @@ impl QueueGlobalPriorityEXT { } } impl QueueGlobalPriorityEXT { - pub const LOW: Self = QueueGlobalPriorityEXT(128); - pub const MEDIUM: Self = QueueGlobalPriorityEXT(256); - pub const HIGH: Self = QueueGlobalPriorityEXT(512); - pub const REALTIME: Self = QueueGlobalPriorityEXT(1_024); + pub const LOW: Self = Self(128); + pub const MEDIUM: Self = Self(256); + pub const HIGH: Self = Self(512); + pub const REALTIME: Self = Self(1_024); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1615,9 +1615,9 @@ impl ConservativeRasterizationModeEXT { } } impl ConservativeRasterizationModeEXT { - pub const DISABLED: Self = ConservativeRasterizationModeEXT(0); - pub const OVERESTIMATE: Self = ConservativeRasterizationModeEXT(1); - pub const UNDERESTIMATE: Self = ConservativeRasterizationModeEXT(2); + pub const DISABLED: Self = Self(0); + pub const OVERESTIMATE: Self = Self(1); + pub const UNDERESTIMATE: Self = Self(2); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1633,13 +1633,13 @@ impl VendorId { } impl VendorId { #[doc = "Vivante vendor ID"] - pub const VIV: Self = VendorId(0x1_0001); + pub const VIV: Self = Self(0x1_0001); #[doc = "VeriSilicon vendor ID"] - pub const VSI: Self = VendorId(0x1_0002); + pub const VSI: Self = Self(0x1_0002); #[doc = "Kazan Software Renderer"] - pub const KAZAN: Self = VendorId(0x1_0003); + pub const KAZAN: Self = Self(0x1_0003); #[doc = "Codeplay Software Ltd. vendor ID"] - pub const CODEPLAY: Self = VendorId(0x1_0004); + pub const CODEPLAY: Self = Self(0x1_0004); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1655,29 +1655,29 @@ impl DriverId { } impl DriverId { #[doc = "Advanced Micro Devices, Inc."] - pub const AMD_PROPRIETARY: Self = DriverId(1); + pub const AMD_PROPRIETARY: Self = Self(1); #[doc = "Advanced Micro Devices, Inc."] - pub const AMD_OPEN_SOURCE: Self = DriverId(2); + pub const AMD_OPEN_SOURCE: Self = Self(2); #[doc = "Mesa open source project"] - pub const MESA_RADV: Self = DriverId(3); + pub const MESA_RADV: Self = Self(3); #[doc = "NVIDIA Corporation"] - pub const NVIDIA_PROPRIETARY: Self = DriverId(4); + pub const NVIDIA_PROPRIETARY: Self = Self(4); #[doc = "Intel Corporation"] - pub const INTEL_PROPRIETARY_WINDOWS: Self = DriverId(5); + pub const INTEL_PROPRIETARY_WINDOWS: Self = Self(5); #[doc = "Intel Corporation"] - pub const INTEL_OPEN_SOURCE_MESA: Self = DriverId(6); + pub const INTEL_OPEN_SOURCE_MESA: Self = Self(6); #[doc = "Imagination Technologies"] - pub const IMAGINATION_PROPRIETARY: Self = DriverId(7); + pub const IMAGINATION_PROPRIETARY: Self = Self(7); #[doc = "Qualcomm Technologies, Inc."] - pub const QUALCOMM_PROPRIETARY: Self = DriverId(8); + pub const QUALCOMM_PROPRIETARY: Self = Self(8); #[doc = "Arm Limited"] - pub const ARM_PROPRIETARY: Self = DriverId(9); + pub const ARM_PROPRIETARY: Self = Self(9); #[doc = "Google LLC"] - pub const GOOGLE_SWIFTSHADER: Self = DriverId(10); + pub const GOOGLE_SWIFTSHADER: Self = Self(10); #[doc = "Google LLC"] - pub const GGP_PROPRIETARY: Self = DriverId(11); + pub const GGP_PROPRIETARY: Self = Self(11); #[doc = "Broadcom Inc."] - pub const BROADCOM_PROPRIETARY: Self = DriverId(12); + pub const BROADCOM_PROPRIETARY: Self = Self(12); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1692,18 +1692,18 @@ impl ShadingRatePaletteEntryNV { } } impl ShadingRatePaletteEntryNV { - pub const NO_INVOCATIONS: Self = ShadingRatePaletteEntryNV(0); - pub const TYPE_16_INVOCATIONS_PER_PIXEL: Self = ShadingRatePaletteEntryNV(1); - pub const TYPE_8_INVOCATIONS_PER_PIXEL: Self = ShadingRatePaletteEntryNV(2); - pub const TYPE_4_INVOCATIONS_PER_PIXEL: Self = ShadingRatePaletteEntryNV(3); - pub const TYPE_2_INVOCATIONS_PER_PIXEL: Self = ShadingRatePaletteEntryNV(4); - pub const TYPE_1_INVOCATION_PER_PIXEL: Self = ShadingRatePaletteEntryNV(5); - pub const TYPE_1_INVOCATION_PER_2X1_PIXELS: Self = ShadingRatePaletteEntryNV(6); - pub const TYPE_1_INVOCATION_PER_1X2_PIXELS: Self = ShadingRatePaletteEntryNV(7); - pub const TYPE_1_INVOCATION_PER_2X2_PIXELS: Self = ShadingRatePaletteEntryNV(8); - pub const TYPE_1_INVOCATION_PER_4X2_PIXELS: Self = ShadingRatePaletteEntryNV(9); - pub const TYPE_1_INVOCATION_PER_2X4_PIXELS: Self = ShadingRatePaletteEntryNV(10); - pub const TYPE_1_INVOCATION_PER_4X4_PIXELS: Self = ShadingRatePaletteEntryNV(11); + pub const NO_INVOCATIONS: Self = Self(0); + pub const TYPE_16_INVOCATIONS_PER_PIXEL: Self = Self(1); + pub const TYPE_8_INVOCATIONS_PER_PIXEL: Self = Self(2); + pub const TYPE_4_INVOCATIONS_PER_PIXEL: Self = Self(3); + pub const TYPE_2_INVOCATIONS_PER_PIXEL: Self = Self(4); + pub const TYPE_1_INVOCATION_PER_PIXEL: Self = Self(5); + pub const TYPE_1_INVOCATION_PER_2X1_PIXELS: Self = Self(6); + pub const TYPE_1_INVOCATION_PER_1X2_PIXELS: Self = Self(7); + pub const TYPE_1_INVOCATION_PER_2X2_PIXELS: Self = Self(8); + pub const TYPE_1_INVOCATION_PER_4X2_PIXELS: Self = Self(9); + pub const TYPE_1_INVOCATION_PER_2X4_PIXELS: Self = Self(10); + pub const TYPE_1_INVOCATION_PER_4X4_PIXELS: Self = Self(11); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1718,10 +1718,10 @@ impl CoarseSampleOrderTypeNV { } } impl CoarseSampleOrderTypeNV { - pub const DEFAULT: Self = CoarseSampleOrderTypeNV(0); - pub const CUSTOM: Self = CoarseSampleOrderTypeNV(1); - pub const PIXEL_MAJOR: Self = CoarseSampleOrderTypeNV(2); - pub const SAMPLE_MAJOR: Self = CoarseSampleOrderTypeNV(3); + pub const DEFAULT: Self = Self(0); + pub const CUSTOM: Self = Self(1); + pub const PIXEL_MAJOR: Self = Self(2); + pub const SAMPLE_MAJOR: Self = Self(3); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1736,10 +1736,10 @@ impl CopyAccelerationStructureModeKHR { } } impl CopyAccelerationStructureModeKHR { - pub const CLONE: Self = CopyAccelerationStructureModeKHR(0); - pub const COMPACT: Self = CopyAccelerationStructureModeKHR(1); - pub const SERIALIZE: Self = CopyAccelerationStructureModeKHR(2); - pub const DESERIALIZE: Self = CopyAccelerationStructureModeKHR(3); + pub const CLONE: Self = Self(0); + pub const COMPACT: Self = Self(1); + pub const SERIALIZE: Self = Self(2); + pub const DESERIALIZE: Self = Self(3); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1754,8 +1754,8 @@ impl AccelerationStructureTypeKHR { } } impl AccelerationStructureTypeKHR { - pub const TOP_LEVEL: Self = AccelerationStructureTypeKHR(0); - pub const BOTTOM_LEVEL: Self = AccelerationStructureTypeKHR(1); + pub const TOP_LEVEL: Self = Self(0); + pub const BOTTOM_LEVEL: Self = Self(1); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1770,8 +1770,8 @@ impl GeometryTypeKHR { } } impl GeometryTypeKHR { - pub const TRIANGLES: Self = GeometryTypeKHR(0); - pub const AABBS: Self = GeometryTypeKHR(1); + pub const TRIANGLES: Self = Self(0); + pub const AABBS: Self = Self(1); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1786,9 +1786,9 @@ impl AccelerationStructureMemoryRequirementsTypeKHR { } } impl AccelerationStructureMemoryRequirementsTypeKHR { - pub const OBJECT: Self = AccelerationStructureMemoryRequirementsTypeKHR(0); - pub const BUILD_SCRATCH: Self = AccelerationStructureMemoryRequirementsTypeKHR(1); - pub const UPDATE_SCRATCH: Self = AccelerationStructureMemoryRequirementsTypeKHR(2); + pub const OBJECT: Self = Self(0); + pub const BUILD_SCRATCH: Self = Self(1); + pub const UPDATE_SCRATCH: Self = Self(2); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1803,9 +1803,9 @@ impl AccelerationStructureBuildTypeKHR { } } impl AccelerationStructureBuildTypeKHR { - pub const HOST: Self = AccelerationStructureBuildTypeKHR(0); - pub const DEVICE: Self = AccelerationStructureBuildTypeKHR(1); - pub const HOST_OR_DEVICE: Self = AccelerationStructureBuildTypeKHR(2); + pub const HOST: Self = Self(0); + pub const DEVICE: Self = Self(1); + pub const HOST_OR_DEVICE: Self = Self(2); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1820,9 +1820,9 @@ impl RayTracingShaderGroupTypeKHR { } } impl RayTracingShaderGroupTypeKHR { - pub const GENERAL: Self = RayTracingShaderGroupTypeKHR(0); - pub const TRIANGLES_HIT_GROUP: Self = RayTracingShaderGroupTypeKHR(1); - pub const PROCEDURAL_HIT_GROUP: Self = RayTracingShaderGroupTypeKHR(2); + pub const GENERAL: Self = Self(0); + pub const TRIANGLES_HIT_GROUP: Self = Self(1); + pub const PROCEDURAL_HIT_GROUP: Self = Self(2); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1837,9 +1837,9 @@ impl MemoryOverallocationBehaviorAMD { } } impl MemoryOverallocationBehaviorAMD { - pub const DEFAULT: Self = MemoryOverallocationBehaviorAMD(0); - pub const ALLOWED: Self = MemoryOverallocationBehaviorAMD(1); - pub const DISALLOWED: Self = MemoryOverallocationBehaviorAMD(2); + pub const DEFAULT: Self = Self(0); + pub const ALLOWED: Self = Self(1); + pub const DISALLOWED: Self = Self(2); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1854,10 +1854,10 @@ impl ScopeNV { } } impl ScopeNV { - pub const DEVICE: Self = ScopeNV(1); - pub const WORKGROUP: Self = ScopeNV(2); - pub const SUBGROUP: Self = ScopeNV(3); - pub const QUEUE_FAMILY: Self = ScopeNV(5); + pub const DEVICE: Self = Self(1); + pub const WORKGROUP: Self = Self(2); + pub const SUBGROUP: Self = Self(3); + pub const QUEUE_FAMILY: Self = Self(5); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1872,17 +1872,17 @@ impl ComponentTypeNV { } } impl ComponentTypeNV { - pub const FLOAT16: Self = ComponentTypeNV(0); - pub const FLOAT32: Self = ComponentTypeNV(1); - pub const FLOAT64: Self = ComponentTypeNV(2); - pub const SINT8: Self = ComponentTypeNV(3); - pub const SINT16: Self = ComponentTypeNV(4); - pub const SINT32: Self = ComponentTypeNV(5); - pub const SINT64: Self = ComponentTypeNV(6); - pub const UINT8: Self = ComponentTypeNV(7); - pub const UINT16: Self = ComponentTypeNV(8); - pub const UINT32: Self = ComponentTypeNV(9); - pub const UINT64: Self = ComponentTypeNV(10); + pub const FLOAT16: Self = Self(0); + pub const FLOAT32: Self = Self(1); + pub const FLOAT64: Self = Self(2); + pub const SINT8: Self = Self(3); + pub const SINT16: Self = Self(4); + pub const SINT32: Self = Self(5); + pub const SINT64: Self = Self(6); + pub const UINT8: Self = Self(7); + pub const UINT16: Self = Self(8); + pub const UINT32: Self = Self(9); + pub const UINT64: Self = Self(10); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1897,10 +1897,10 @@ impl FullScreenExclusiveEXT { } } impl FullScreenExclusiveEXT { - pub const DEFAULT: Self = FullScreenExclusiveEXT(0); - pub const ALLOWED: Self = FullScreenExclusiveEXT(1); - pub const DISALLOWED: Self = FullScreenExclusiveEXT(2); - pub const APPLICATION_CONTROLLED: Self = FullScreenExclusiveEXT(3); + pub const DEFAULT: Self = Self(0); + pub const ALLOWED: Self = Self(1); + pub const DISALLOWED: Self = Self(2); + pub const APPLICATION_CONTROLLED: Self = Self(3); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1915,9 +1915,9 @@ impl PerformanceCounterScopeKHR { } } impl PerformanceCounterScopeKHR { - pub const COMMAND_BUFFER: Self = PerformanceCounterScopeKHR(0); - pub const RENDER_PASS: Self = PerformanceCounterScopeKHR(1); - pub const COMMAND: Self = PerformanceCounterScopeKHR(2); + pub const COMMAND_BUFFER: Self = Self(0); + pub const RENDER_PASS: Self = Self(1); + pub const COMMAND: Self = Self(2); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1932,17 +1932,17 @@ impl PerformanceCounterUnitKHR { } } impl PerformanceCounterUnitKHR { - pub const GENERIC: Self = PerformanceCounterUnitKHR(0); - pub const PERCENTAGE: Self = PerformanceCounterUnitKHR(1); - pub const NANOSECONDS: Self = PerformanceCounterUnitKHR(2); - pub const BYTES: Self = PerformanceCounterUnitKHR(3); - pub const BYTES_PER_SECOND: Self = PerformanceCounterUnitKHR(4); - pub const KELVIN: Self = PerformanceCounterUnitKHR(5); - pub const WATTS: Self = PerformanceCounterUnitKHR(6); - pub const VOLTS: Self = PerformanceCounterUnitKHR(7); - pub const AMPS: Self = PerformanceCounterUnitKHR(8); - pub const HERTZ: Self = PerformanceCounterUnitKHR(9); - pub const CYCLES: Self = PerformanceCounterUnitKHR(10); + pub const GENERIC: Self = Self(0); + pub const PERCENTAGE: Self = Self(1); + pub const NANOSECONDS: Self = Self(2); + pub const BYTES: Self = Self(3); + pub const BYTES_PER_SECOND: Self = Self(4); + pub const KELVIN: Self = Self(5); + pub const WATTS: Self = Self(6); + pub const VOLTS: Self = Self(7); + pub const AMPS: Self = Self(8); + pub const HERTZ: Self = Self(9); + pub const CYCLES: Self = Self(10); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1957,12 +1957,12 @@ impl PerformanceCounterStorageKHR { } } impl PerformanceCounterStorageKHR { - pub const INT32: Self = PerformanceCounterStorageKHR(0); - pub const INT64: Self = PerformanceCounterStorageKHR(1); - pub const UINT32: Self = PerformanceCounterStorageKHR(2); - pub const UINT64: Self = PerformanceCounterStorageKHR(3); - pub const FLOAT32: Self = PerformanceCounterStorageKHR(4); - pub const FLOAT64: Self = PerformanceCounterStorageKHR(5); + pub const INT32: Self = Self(0); + pub const INT64: Self = Self(1); + pub const UINT32: Self = Self(2); + pub const UINT64: Self = Self(3); + pub const FLOAT32: Self = Self(4); + pub const FLOAT64: Self = Self(5); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1978,7 +1978,7 @@ impl PerformanceConfigurationTypeINTEL { } impl PerformanceConfigurationTypeINTEL { pub const PERFORMANCE_CONFIGURATION_TYPE_COMMAND_QUEUE_METRICS_DISCOVERY_ACTIVATED_INTEL: Self = - PerformanceConfigurationTypeINTEL(0); + Self(0); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -1993,7 +1993,7 @@ impl QueryPoolSamplingModeINTEL { } } impl QueryPoolSamplingModeINTEL { - pub const QUERY_POOL_SAMPLING_MODE_MANUAL_INTEL: Self = QueryPoolSamplingModeINTEL(0); + pub const QUERY_POOL_SAMPLING_MODE_MANUAL_INTEL: Self = Self(0); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -2008,9 +2008,8 @@ impl PerformanceOverrideTypeINTEL { } } impl PerformanceOverrideTypeINTEL { - pub const PERFORMANCE_OVERRIDE_TYPE_NULL_HARDWARE_INTEL: Self = PerformanceOverrideTypeINTEL(0); - pub const PERFORMANCE_OVERRIDE_TYPE_FLUSH_GPU_CACHES_INTEL: Self = - PerformanceOverrideTypeINTEL(1); + pub const PERFORMANCE_OVERRIDE_TYPE_NULL_HARDWARE_INTEL: Self = Self(0); + pub const PERFORMANCE_OVERRIDE_TYPE_FLUSH_GPU_CACHES_INTEL: Self = Self(1); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -2025,10 +2024,8 @@ impl PerformanceParameterTypeINTEL { } } impl PerformanceParameterTypeINTEL { - pub const PERFORMANCE_PARAMETER_TYPE_HW_COUNTERS_SUPPORTED_INTEL: Self = - PerformanceParameterTypeINTEL(0); - pub const PERFORMANCE_PARAMETER_TYPE_STREAM_MARKER_VALIDS_INTEL: Self = - PerformanceParameterTypeINTEL(1); + pub const PERFORMANCE_PARAMETER_TYPE_HW_COUNTERS_SUPPORTED_INTEL: Self = Self(0); + pub const PERFORMANCE_PARAMETER_TYPE_STREAM_MARKER_VALIDS_INTEL: Self = Self(1); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -2043,11 +2040,11 @@ impl PerformanceValueTypeINTEL { } } impl PerformanceValueTypeINTEL { - pub const PERFORMANCE_VALUE_TYPE_UINT32_INTEL: Self = PerformanceValueTypeINTEL(0); - pub const PERFORMANCE_VALUE_TYPE_UINT64_INTEL: Self = PerformanceValueTypeINTEL(1); - pub const PERFORMANCE_VALUE_TYPE_FLOAT_INTEL: Self = PerformanceValueTypeINTEL(2); - pub const PERFORMANCE_VALUE_TYPE_BOOL_INTEL: Self = PerformanceValueTypeINTEL(3); - pub const PERFORMANCE_VALUE_TYPE_STRING_INTEL: Self = PerformanceValueTypeINTEL(4); + pub const PERFORMANCE_VALUE_TYPE_UINT32_INTEL: Self = Self(0); + pub const PERFORMANCE_VALUE_TYPE_UINT64_INTEL: Self = Self(1); + pub const PERFORMANCE_VALUE_TYPE_FLOAT_INTEL: Self = Self(2); + pub const PERFORMANCE_VALUE_TYPE_BOOL_INTEL: Self = Self(3); + pub const PERFORMANCE_VALUE_TYPE_STRING_INTEL: Self = Self(4); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -2062,9 +2059,9 @@ impl ShaderFloatControlsIndependence { } } impl ShaderFloatControlsIndependence { - pub const TYPE_32_ONLY: Self = ShaderFloatControlsIndependence(0); - pub const ALL: Self = ShaderFloatControlsIndependence(1); - pub const NONE: Self = ShaderFloatControlsIndependence(2); + pub const TYPE_32_ONLY: Self = Self(0); + pub const ALL: Self = Self(1); + pub const NONE: Self = Self(2); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -2079,10 +2076,10 @@ impl PipelineExecutableStatisticFormatKHR { } } impl PipelineExecutableStatisticFormatKHR { - pub const BOOL32: Self = PipelineExecutableStatisticFormatKHR(0); - pub const INT64: Self = PipelineExecutableStatisticFormatKHR(1); - pub const UINT64: Self = PipelineExecutableStatisticFormatKHR(2); - pub const FLOAT64: Self = PipelineExecutableStatisticFormatKHR(3); + pub const BOOL32: Self = Self(0); + pub const INT64: Self = Self(1); + pub const UINT64: Self = Self(2); + pub const FLOAT64: Self = Self(3); } #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] #[repr(transparent)] @@ -2097,8 +2094,8 @@ impl LineRasterizationModeEXT { } } impl LineRasterizationModeEXT { - pub const DEFAULT: Self = LineRasterizationModeEXT(0); - pub const RECTANGULAR: Self = LineRasterizationModeEXT(1); - pub const BRESENHAM: Self = LineRasterizationModeEXT(2); - pub const RECTANGULAR_SMOOTH: Self = LineRasterizationModeEXT(3); + pub const DEFAULT: Self = Self(0); + pub const RECTANGULAR: Self = Self(1); + pub const BRESENHAM: Self = Self(2); + pub const RECTANGULAR_SMOOTH: Self = Self(3); } diff --git a/ash/src/vk/extensions.rs b/ash/src/vk/extensions.rs index d830916..76e89af 100644 --- a/ash/src/vk/extensions.rs +++ b/ash/src/vk/extensions.rs @@ -265,15 +265,15 @@ impl KhrSurfaceFn { } #[doc = "Generated from \'VK_KHR_surface\'"] impl Result { - pub const ERROR_SURFACE_LOST_KHR: Self = Result(-1_000_000_000); + pub const ERROR_SURFACE_LOST_KHR: Self = Self(-1_000_000_000); } #[doc = "Generated from \'VK_KHR_surface\'"] impl Result { - pub const ERROR_NATIVE_WINDOW_IN_USE_KHR: Self = Result(-1_000_000_001); + pub const ERROR_NATIVE_WINDOW_IN_USE_KHR: Self = Self(-1_000_000_001); } #[doc = "Generated from \'VK_KHR_surface\'"] impl ObjectType { - pub const SURFACE_KHR: Self = ObjectType(1_000_000_000); + pub const SURFACE_KHR: Self = Self(1_000_000_000); } impl KhrSwapchainFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -693,59 +693,59 @@ impl KhrSwapchainFn { } #[doc = "Generated from \'VK_KHR_swapchain\'"] impl StructureType { - pub const SWAPCHAIN_CREATE_INFO_KHR: Self = StructureType(1_000_001_000); + pub const SWAPCHAIN_CREATE_INFO_KHR: Self = Self(1_000_001_000); } #[doc = "Generated from \'VK_KHR_swapchain\'"] impl StructureType { - pub const PRESENT_INFO_KHR: Self = StructureType(1_000_001_001); + pub const PRESENT_INFO_KHR: Self = Self(1_000_001_001); } #[doc = "Generated from \'VK_KHR_swapchain\'"] impl ImageLayout { - pub const PRESENT_SRC_KHR: Self = ImageLayout(1_000_001_002); + pub const PRESENT_SRC_KHR: Self = Self(1_000_001_002); } #[doc = "Generated from \'VK_KHR_swapchain\'"] impl Result { - pub const SUBOPTIMAL_KHR: Self = Result(1_000_001_003); + pub const SUBOPTIMAL_KHR: Self = Self(1_000_001_003); } #[doc = "Generated from \'VK_KHR_swapchain\'"] impl Result { - pub const ERROR_OUT_OF_DATE_KHR: Self = Result(-1_000_001_004); + pub const ERROR_OUT_OF_DATE_KHR: Self = Self(-1_000_001_004); } #[doc = "Generated from \'VK_KHR_swapchain\'"] impl ObjectType { - pub const SWAPCHAIN_KHR: Self = ObjectType(1_000_001_000); + pub const SWAPCHAIN_KHR: Self = Self(1_000_001_000); } #[doc = "Generated from \'VK_KHR_swapchain\'"] impl StructureType { - pub const DEVICE_GROUP_PRESENT_CAPABILITIES_KHR: Self = StructureType(1_000_060_007); + pub const DEVICE_GROUP_PRESENT_CAPABILITIES_KHR: Self = Self(1_000_060_007); } #[doc = "Generated from \'VK_KHR_swapchain\'"] impl StructureType { - pub const IMAGE_SWAPCHAIN_CREATE_INFO_KHR: Self = StructureType(1_000_060_008); + pub const IMAGE_SWAPCHAIN_CREATE_INFO_KHR: Self = Self(1_000_060_008); } #[doc = "Generated from \'VK_KHR_swapchain\'"] impl StructureType { - pub const BIND_IMAGE_MEMORY_SWAPCHAIN_INFO_KHR: Self = StructureType(1_000_060_009); + pub const BIND_IMAGE_MEMORY_SWAPCHAIN_INFO_KHR: Self = Self(1_000_060_009); } #[doc = "Generated from \'VK_KHR_swapchain\'"] impl StructureType { - pub const ACQUIRE_NEXT_IMAGE_INFO_KHR: Self = StructureType(1_000_060_010); + pub const ACQUIRE_NEXT_IMAGE_INFO_KHR: Self = Self(1_000_060_010); } #[doc = "Generated from \'VK_KHR_swapchain\'"] impl StructureType { - pub const DEVICE_GROUP_PRESENT_INFO_KHR: Self = StructureType(1_000_060_011); + pub const DEVICE_GROUP_PRESENT_INFO_KHR: Self = Self(1_000_060_011); } #[doc = "Generated from \'VK_KHR_swapchain\'"] impl StructureType { - pub const DEVICE_GROUP_SWAPCHAIN_CREATE_INFO_KHR: Self = StructureType(1_000_060_012); + pub const DEVICE_GROUP_SWAPCHAIN_CREATE_INFO_KHR: Self = Self(1_000_060_012); } #[doc = "Generated from \'VK_KHR_swapchain\'"] impl SwapchainCreateFlagsKHR { - pub const SPLIT_INSTANCE_BIND_REGIONS: Self = SwapchainCreateFlagsKHR(0b1); + pub const SPLIT_INSTANCE_BIND_REGIONS: Self = Self(0b1); } #[doc = "Generated from \'VK_KHR_swapchain\'"] impl SwapchainCreateFlagsKHR { - pub const PROTECTED: Self = SwapchainCreateFlagsKHR(0b10); + pub const PROTECTED: Self = Self(0b10); } impl KhrDisplayFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -1109,19 +1109,19 @@ impl KhrDisplayFn { } #[doc = "Generated from \'VK_KHR_display\'"] impl StructureType { - pub const DISPLAY_MODE_CREATE_INFO_KHR: Self = StructureType(1_000_002_000); + pub const DISPLAY_MODE_CREATE_INFO_KHR: Self = Self(1_000_002_000); } #[doc = "Generated from \'VK_KHR_display\'"] impl StructureType { - pub const DISPLAY_SURFACE_CREATE_INFO_KHR: Self = StructureType(1_000_002_001); + pub const DISPLAY_SURFACE_CREATE_INFO_KHR: Self = Self(1_000_002_001); } #[doc = "Generated from \'VK_KHR_display\'"] impl ObjectType { - pub const DISPLAY_KHR: Self = ObjectType(1_000_002_000); + pub const DISPLAY_KHR: Self = Self(1_000_002_000); } #[doc = "Generated from \'VK_KHR_display\'"] impl ObjectType { - pub const DISPLAY_MODE_KHR: Self = ObjectType(1_000_002_001); + pub const DISPLAY_MODE_KHR: Self = Self(1_000_002_001); } impl KhrDisplaySwapchainFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -1205,11 +1205,11 @@ impl KhrDisplaySwapchainFn { } #[doc = "Generated from \'VK_KHR_display_swapchain\'"] impl StructureType { - pub const DISPLAY_PRESENT_INFO_KHR: Self = StructureType(1_000_003_000); + pub const DISPLAY_PRESENT_INFO_KHR: Self = Self(1_000_003_000); } #[doc = "Generated from \'VK_KHR_display_swapchain\'"] impl Result { - pub const ERROR_INCOMPATIBLE_DISPLAY_KHR: Self = Result(-1_000_003_001); + pub const ERROR_INCOMPATIBLE_DISPLAY_KHR: Self = Self(-1_000_003_001); } impl KhrXlibSurfaceFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -1334,7 +1334,7 @@ impl KhrXlibSurfaceFn { } #[doc = "Generated from \'VK_KHR_xlib_surface\'"] impl StructureType { - pub const XLIB_SURFACE_CREATE_INFO_KHR: Self = StructureType(1_000_004_000); + pub const XLIB_SURFACE_CREATE_INFO_KHR: Self = Self(1_000_004_000); } impl KhrXcbSurfaceFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -1459,7 +1459,7 @@ impl KhrXcbSurfaceFn { } #[doc = "Generated from \'VK_KHR_xcb_surface\'"] impl StructureType { - pub const XCB_SURFACE_CREATE_INFO_KHR: Self = StructureType(1_000_005_000); + pub const XCB_SURFACE_CREATE_INFO_KHR: Self = Self(1_000_005_000); } impl KhrWaylandSurfaceFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -1579,7 +1579,7 @@ impl KhrWaylandSurfaceFn { } #[doc = "Generated from \'VK_KHR_wayland_surface\'"] impl StructureType { - pub const WAYLAND_SURFACE_CREATE_INFO_KHR: Self = StructureType(1_000_006_000); + pub const WAYLAND_SURFACE_CREATE_INFO_KHR: Self = Self(1_000_006_000); } impl KhrMirSurfaceFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -1675,7 +1675,7 @@ impl KhrAndroidSurfaceFn { } #[doc = "Generated from \'VK_KHR_android_surface\'"] impl StructureType { - pub const ANDROID_SURFACE_CREATE_INFO_KHR: Self = StructureType(1_000_008_000); + pub const ANDROID_SURFACE_CREATE_INFO_KHR: Self = Self(1_000_008_000); } impl KhrWin32SurfaceFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -1786,7 +1786,7 @@ impl KhrWin32SurfaceFn { } #[doc = "Generated from \'VK_KHR_win32_surface\'"] impl StructureType { - pub const WIN32_SURFACE_CREATE_INFO_KHR: Self = StructureType(1_000_009_000); + pub const WIN32_SURFACE_CREATE_INFO_KHR: Self = Self(1_000_009_000); } impl AndroidNativeBufferFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -2024,15 +2024,15 @@ impl AndroidNativeBufferFn { } #[doc = "Generated from \'VK_ANDROID_native_buffer\'"] impl StructureType { - pub const NATIVE_BUFFER_ANDROID: Self = StructureType(1_000_010_000); + pub const NATIVE_BUFFER_ANDROID: Self = Self(1_000_010_000); } #[doc = "Generated from \'VK_ANDROID_native_buffer\'"] impl StructureType { - pub const SWAPCHAIN_IMAGE_CREATE_INFO_ANDROID: Self = StructureType(1_000_010_001); + pub const SWAPCHAIN_IMAGE_CREATE_INFO_ANDROID: Self = Self(1_000_010_001); } #[doc = "Generated from \'VK_ANDROID_native_buffer\'"] impl StructureType { - pub const PHYSICAL_DEVICE_PRESENTATION_PROPERTIES_ANDROID: Self = StructureType(1_000_010_002); + pub const PHYSICAL_DEVICE_PRESENTATION_PROPERTIES_ANDROID: Self = Self(1_000_010_002); } impl ExtDebugReportFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -2217,7 +2217,7 @@ impl ExtDebugReportFn { } #[doc = "Generated from \'VK_EXT_debug_report\'"] impl StructureType { - pub const DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT: Self = StructureType(1_000_011_000); + pub const DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT: Self = Self(1_000_011_000); } #[doc = "Generated from \'VK_EXT_debug_report\'"] impl StructureType { @@ -2226,19 +2226,19 @@ impl StructureType { } #[doc = "Generated from \'VK_EXT_debug_report\'"] impl Result { - pub const ERROR_VALIDATION_FAILED_EXT: Self = Result(-1_000_011_001); + pub const ERROR_VALIDATION_FAILED_EXT: Self = Self(-1_000_011_001); } #[doc = "Generated from \'VK_EXT_debug_report\'"] impl ObjectType { - pub const DEBUG_REPORT_CALLBACK_EXT: Self = ObjectType(1_000_011_000); + pub const DEBUG_REPORT_CALLBACK_EXT: Self = Self(1_000_011_000); } #[doc = "Generated from \'VK_EXT_debug_report\'"] impl DebugReportObjectTypeEXT { - pub const SAMPLER_YCBCR_CONVERSION: Self = DebugReportObjectTypeEXT(1_000_156_000); + pub const SAMPLER_YCBCR_CONVERSION: Self = Self(1_000_156_000); } #[doc = "Generated from \'VK_EXT_debug_report\'"] impl DebugReportObjectTypeEXT { - pub const DESCRIPTOR_UPDATE_TEMPLATE: Self = DebugReportObjectTypeEXT(1_000_085_000); + pub const DESCRIPTOR_UPDATE_TEMPLATE: Self = Self(1_000_085_000); } impl NvGlslShaderFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -2264,7 +2264,7 @@ impl NvGlslShaderFn { } #[doc = "Generated from \'VK_NV_glsl_shader\'"] impl Result { - pub const ERROR_INVALID_SHADER_NV: Self = Result(-1_000_012_000); + pub const ERROR_INVALID_SHADER_NV: Self = Self(-1_000_012_000); } impl ExtDepthRangeUnrestrictedFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -2312,7 +2312,7 @@ impl KhrSamplerMirrorClampToEdgeFn { } #[doc = "Generated from \'VK_KHR_sampler_mirror_clamp_to_edge\'"] impl SamplerAddressMode { - pub const MIRROR_CLAMP_TO_EDGE: Self = SamplerAddressMode(4); + pub const MIRROR_CLAMP_TO_EDGE: Self = Self(4); } #[doc = "Generated from \'VK_KHR_sampler_mirror_clamp_to_edge\'"] impl SamplerAddressMode { @@ -2342,11 +2342,11 @@ impl ImgFilterCubicFn { } #[doc = "Generated from \'VK_IMG_filter_cubic\'"] impl Filter { - pub const CUBIC_IMG: Self = Filter(1_000_015_000); + pub const CUBIC_IMG: Self = Self(1_000_015_000); } #[doc = "Generated from \'VK_IMG_filter_cubic\'"] impl FormatFeatureFlags { - pub const SAMPLED_IMAGE_FILTER_CUBIC_IMG: Self = FormatFeatureFlags(0b10_0000_0000_0000); + pub const SAMPLED_IMAGE_FILTER_CUBIC_IMG: Self = Self(0b10_0000_0000_0000); } impl AmdExtension17Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -2416,8 +2416,7 @@ impl AmdRasterizationOrderFn { } #[doc = "Generated from \'VK_AMD_rasterization_order\'"] impl StructureType { - pub const PIPELINE_RASTERIZATION_STATE_RASTERIZATION_ORDER_AMD: Self = - StructureType(1_000_018_000); + pub const PIPELINE_RASTERIZATION_STATE_RASTERIZATION_ORDER_AMD: Self = Self(1_000_018_000); } impl AmdExtension20Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -2682,15 +2681,15 @@ impl ExtDebugMarkerFn { } #[doc = "Generated from \'VK_EXT_debug_marker\'"] impl StructureType { - pub const DEBUG_MARKER_OBJECT_NAME_INFO_EXT: Self = StructureType(1_000_022_000); + pub const DEBUG_MARKER_OBJECT_NAME_INFO_EXT: Self = Self(1_000_022_000); } #[doc = "Generated from \'VK_EXT_debug_marker\'"] impl StructureType { - pub const DEBUG_MARKER_OBJECT_TAG_INFO_EXT: Self = StructureType(1_000_022_001); + pub const DEBUG_MARKER_OBJECT_TAG_INFO_EXT: Self = Self(1_000_022_001); } #[doc = "Generated from \'VK_EXT_debug_marker\'"] impl StructureType { - pub const DEBUG_MARKER_MARKER_INFO_EXT: Self = StructureType(1_000_022_002); + pub const DEBUG_MARKER_MARKER_INFO_EXT: Self = Self(1_000_022_002); } impl AmdExtension24Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -2716,51 +2715,51 @@ impl AmdExtension24Fn { } #[doc = "Generated from \'VK_AMD_extension_24\'"] impl QueueFlags { - pub const RESERVED_6_KHR: Self = QueueFlags(0b100_0000); + pub const RESERVED_6_KHR: Self = Self(0b100_0000); } #[doc = "Generated from \'VK_AMD_extension_24\'"] impl PipelineStageFlags { - pub const RESERVED_27_KHR: Self = PipelineStageFlags(0b1000_0000_0000_0000_0000_0000_0000); + pub const RESERVED_27_KHR: Self = Self(0b1000_0000_0000_0000_0000_0000_0000); } #[doc = "Generated from \'VK_AMD_extension_24\'"] impl AccessFlags { - pub const RESERVED_30_KHR: Self = AccessFlags(0b100_0000_0000_0000_0000_0000_0000_0000); + pub const RESERVED_30_KHR: Self = Self(0b100_0000_0000_0000_0000_0000_0000_0000); } #[doc = "Generated from \'VK_AMD_extension_24\'"] impl AccessFlags { - pub const RESERVED_31_KHR: Self = AccessFlags(0b1000_0000_0000_0000_0000_0000_0000_0000); + pub const RESERVED_31_KHR: Self = Self(0b1000_0000_0000_0000_0000_0000_0000_0000); } #[doc = "Generated from \'VK_AMD_extension_24\'"] impl BufferUsageFlags { - pub const RESERVED_15_KHR: Self = BufferUsageFlags(0b1000_0000_0000_0000); + pub const RESERVED_15_KHR: Self = Self(0b1000_0000_0000_0000); } #[doc = "Generated from \'VK_AMD_extension_24\'"] impl BufferUsageFlags { - pub const RESERVED_16_KHR: Self = BufferUsageFlags(0b1_0000_0000_0000_0000); + pub const RESERVED_16_KHR: Self = Self(0b1_0000_0000_0000_0000); } #[doc = "Generated from \'VK_AMD_extension_24\'"] impl ImageUsageFlags { - pub const RESERVED_13_KHR: Self = ImageUsageFlags(0b10_0000_0000_0000); + pub const RESERVED_13_KHR: Self = Self(0b10_0000_0000_0000); } #[doc = "Generated from \'VK_AMD_extension_24\'"] impl ImageUsageFlags { - pub const RESERVED_14_KHR: Self = ImageUsageFlags(0b100_0000_0000_0000); + pub const RESERVED_14_KHR: Self = Self(0b100_0000_0000_0000); } #[doc = "Generated from \'VK_AMD_extension_24\'"] impl ImageUsageFlags { - pub const RESERVED_15_KHR: Self = ImageUsageFlags(0b1000_0000_0000_0000); + pub const RESERVED_15_KHR: Self = Self(0b1000_0000_0000_0000); } #[doc = "Generated from \'VK_AMD_extension_24\'"] impl FormatFeatureFlags { - pub const RESERVED_27_KHR: Self = FormatFeatureFlags(0b1000_0000_0000_0000_0000_0000_0000); + pub const RESERVED_27_KHR: Self = Self(0b1000_0000_0000_0000_0000_0000_0000); } #[doc = "Generated from \'VK_AMD_extension_24\'"] impl FormatFeatureFlags { - pub const RESERVED_28_KHR: Self = FormatFeatureFlags(0b1_0000_0000_0000_0000_0000_0000_0000); + pub const RESERVED_28_KHR: Self = Self(0b1_0000_0000_0000_0000_0000_0000_0000); } #[doc = "Generated from \'VK_AMD_extension_24\'"] impl QueryType { - pub const RESERVED_8: Self = QueryType(1_000_023_008); + pub const RESERVED_8: Self = Self(1_000_023_008); } impl AmdExtension25Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -2786,51 +2785,51 @@ impl AmdExtension25Fn { } #[doc = "Generated from \'VK_AMD_extension_25\'"] impl QueueFlags { - pub const RESERVED_5_KHR: Self = QueueFlags(0b10_0000); + pub const RESERVED_5_KHR: Self = Self(0b10_0000); } #[doc = "Generated from \'VK_AMD_extension_25\'"] impl PipelineStageFlags { - pub const RESERVED_26_KHR: Self = PipelineStageFlags(0b100_0000_0000_0000_0000_0000_0000); + pub const RESERVED_26_KHR: Self = Self(0b100_0000_0000_0000_0000_0000_0000); } #[doc = "Generated from \'VK_AMD_extension_25\'"] impl AccessFlags { - pub const RESERVED_28_KHR: Self = AccessFlags(0b1_0000_0000_0000_0000_0000_0000_0000); + pub const RESERVED_28_KHR: Self = Self(0b1_0000_0000_0000_0000_0000_0000_0000); } #[doc = "Generated from \'VK_AMD_extension_25\'"] impl AccessFlags { - pub const RESERVED_29_KHR: Self = AccessFlags(0b10_0000_0000_0000_0000_0000_0000_0000); + pub const RESERVED_29_KHR: Self = Self(0b10_0000_0000_0000_0000_0000_0000_0000); } #[doc = "Generated from \'VK_AMD_extension_25\'"] impl BufferUsageFlags { - pub const RESERVED_13_KHR: Self = BufferUsageFlags(0b10_0000_0000_0000); + pub const RESERVED_13_KHR: Self = Self(0b10_0000_0000_0000); } #[doc = "Generated from \'VK_AMD_extension_25\'"] impl BufferUsageFlags { - pub const RESERVED_14_KHR: Self = BufferUsageFlags(0b100_0000_0000_0000); + pub const RESERVED_14_KHR: Self = Self(0b100_0000_0000_0000); } #[doc = "Generated from \'VK_AMD_extension_25\'"] impl ImageUsageFlags { - pub const RESERVED_10_KHR: Self = ImageUsageFlags(0b100_0000_0000); + pub const RESERVED_10_KHR: Self = Self(0b100_0000_0000); } #[doc = "Generated from \'VK_AMD_extension_25\'"] impl ImageUsageFlags { - pub const RESERVED_11_KHR: Self = ImageUsageFlags(0b1000_0000_0000); + pub const RESERVED_11_KHR: Self = Self(0b1000_0000_0000); } #[doc = "Generated from \'VK_AMD_extension_25\'"] impl ImageUsageFlags { - pub const RESERVED_12_KHR: Self = ImageUsageFlags(0b1_0000_0000_0000); + pub const RESERVED_12_KHR: Self = Self(0b1_0000_0000_0000); } #[doc = "Generated from \'VK_AMD_extension_25\'"] impl FormatFeatureFlags { - pub const RESERVED_25_KHR: Self = FormatFeatureFlags(0b10_0000_0000_0000_0000_0000_0000); + pub const RESERVED_25_KHR: Self = Self(0b10_0000_0000_0000_0000_0000_0000); } #[doc = "Generated from \'VK_AMD_extension_25\'"] impl FormatFeatureFlags { - pub const RESERVED_26_KHR: Self = FormatFeatureFlags(0b100_0000_0000_0000_0000_0000_0000); + pub const RESERVED_26_KHR: Self = Self(0b100_0000_0000_0000_0000_0000_0000); } #[doc = "Generated from \'VK_AMD_extension_25\'"] impl QueryType { - pub const RESERVED_4: Self = QueryType(1_000_024_004); + pub const RESERVED_4: Self = Self(1_000_024_004); } impl AmdGcnShaderFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -2878,15 +2877,15 @@ impl NvDedicatedAllocationFn { } #[doc = "Generated from \'VK_NV_dedicated_allocation\'"] impl StructureType { - pub const DEDICATED_ALLOCATION_IMAGE_CREATE_INFO_NV: Self = StructureType(1_000_026_000); + pub const DEDICATED_ALLOCATION_IMAGE_CREATE_INFO_NV: Self = Self(1_000_026_000); } #[doc = "Generated from \'VK_NV_dedicated_allocation\'"] impl StructureType { - pub const DEDICATED_ALLOCATION_BUFFER_CREATE_INFO_NV: Self = StructureType(1_000_026_001); + pub const DEDICATED_ALLOCATION_BUFFER_CREATE_INFO_NV: Self = Self(1_000_026_001); } #[doc = "Generated from \'VK_NV_dedicated_allocation\'"] impl StructureType { - pub const DEDICATED_ALLOCATION_MEMORY_ALLOCATE_INFO_NV: Self = StructureType(1_000_026_002); + pub const DEDICATED_ALLOCATION_MEMORY_ALLOCATE_INFO_NV: Self = Self(1_000_026_002); } impl ExtExtension28Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -3266,47 +3265,44 @@ impl ExtTransformFeedbackFn { } #[doc = "Generated from \'VK_EXT_transform_feedback\'"] impl StructureType { - pub const PHYSICAL_DEVICE_TRANSFORM_FEEDBACK_FEATURES_EXT: Self = StructureType(1_000_028_000); + pub const PHYSICAL_DEVICE_TRANSFORM_FEEDBACK_FEATURES_EXT: Self = Self(1_000_028_000); } #[doc = "Generated from \'VK_EXT_transform_feedback\'"] impl StructureType { - pub const PHYSICAL_DEVICE_TRANSFORM_FEEDBACK_PROPERTIES_EXT: Self = - StructureType(1_000_028_001); + pub const PHYSICAL_DEVICE_TRANSFORM_FEEDBACK_PROPERTIES_EXT: Self = Self(1_000_028_001); } #[doc = "Generated from \'VK_EXT_transform_feedback\'"] impl StructureType { - pub const PIPELINE_RASTERIZATION_STATE_STREAM_CREATE_INFO_EXT: Self = - StructureType(1_000_028_002); + pub const PIPELINE_RASTERIZATION_STATE_STREAM_CREATE_INFO_EXT: Self = Self(1_000_028_002); } #[doc = "Generated from \'VK_EXT_transform_feedback\'"] impl QueryType { - pub const TRANSFORM_FEEDBACK_STREAM_EXT: Self = QueryType(1_000_028_004); + pub const TRANSFORM_FEEDBACK_STREAM_EXT: Self = Self(1_000_028_004); } #[doc = "Generated from \'VK_EXT_transform_feedback\'"] impl BufferUsageFlags { - pub const TRANSFORM_FEEDBACK_BUFFER_EXT: Self = BufferUsageFlags(0b1000_0000_0000); + pub const TRANSFORM_FEEDBACK_BUFFER_EXT: Self = Self(0b1000_0000_0000); } #[doc = "Generated from \'VK_EXT_transform_feedback\'"] impl BufferUsageFlags { - pub const TRANSFORM_FEEDBACK_COUNTER_BUFFER_EXT: Self = BufferUsageFlags(0b1_0000_0000_0000); + pub const TRANSFORM_FEEDBACK_COUNTER_BUFFER_EXT: Self = Self(0b1_0000_0000_0000); } #[doc = "Generated from \'VK_EXT_transform_feedback\'"] impl AccessFlags { - pub const TRANSFORM_FEEDBACK_WRITE_EXT: Self = AccessFlags(0b10_0000_0000_0000_0000_0000_0000); + pub const TRANSFORM_FEEDBACK_WRITE_EXT: Self = Self(0b10_0000_0000_0000_0000_0000_0000); } #[doc = "Generated from \'VK_EXT_transform_feedback\'"] impl AccessFlags { - pub const TRANSFORM_FEEDBACK_COUNTER_READ_EXT: Self = - AccessFlags(0b100_0000_0000_0000_0000_0000_0000); + pub const TRANSFORM_FEEDBACK_COUNTER_READ_EXT: Self = Self(0b100_0000_0000_0000_0000_0000_0000); } #[doc = "Generated from \'VK_EXT_transform_feedback\'"] impl AccessFlags { pub const TRANSFORM_FEEDBACK_COUNTER_WRITE_EXT: Self = - AccessFlags(0b1000_0000_0000_0000_0000_0000_0000); + Self(0b1000_0000_0000_0000_0000_0000_0000); } #[doc = "Generated from \'VK_EXT_transform_feedback\'"] impl PipelineStageFlags { - pub const TRANSFORM_FEEDBACK_EXT: Self = PipelineStageFlags(0b1_0000_0000_0000_0000_0000_0000); + pub const TRANSFORM_FEEDBACK_EXT: Self = Self(0b1_0000_0000_0000_0000_0000_0000); } impl NvxExtension30Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -3390,7 +3386,7 @@ impl NvxImageViewHandleFn { } #[doc = "Generated from \'VK_NVX_image_view_handle\'"] impl StructureType { - pub const IMAGE_VIEW_HANDLE_INFO_NVX: Self = StructureType(1_000_030_000); + pub const IMAGE_VIEW_HANDLE_INFO_NVX: Self = Self(1_000_030_000); } impl AmdExtension32Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -3769,7 +3765,7 @@ impl AmdTextureGatherBiasLodFn { } #[doc = "Generated from \'VK_AMD_texture_gather_bias_lod\'"] impl StructureType { - pub const TEXTURE_LOD_GATHER_FORMAT_PROPERTIES_AMD: Self = StructureType(1_000_041_000); + pub const TEXTURE_LOD_GATHER_FORMAT_PROPERTIES_AMD: Self = Self(1_000_041_000); } impl AmdShaderInfoFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -4057,7 +4053,7 @@ impl GgpStreamDescriptorSurfaceFn { } #[doc = "Generated from \'VK_GGP_stream_descriptor_surface\'"] impl StructureType { - pub const STREAM_DESCRIPTOR_SURFACE_CREATE_INFO_GGP: Self = StructureType(1_000_049_000); + pub const STREAM_DESCRIPTOR_SURFACE_CREATE_INFO_GGP: Self = Self(1_000_049_000); } impl NvCornerSampledImageFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -4083,11 +4079,11 @@ impl NvCornerSampledImageFn { } #[doc = "Generated from \'VK_NV_corner_sampled_image\'"] impl ImageCreateFlags { - pub const CORNER_SAMPLED_NV: Self = ImageCreateFlags(0b10_0000_0000_0000); + pub const CORNER_SAMPLED_NV: Self = Self(0b10_0000_0000_0000); } #[doc = "Generated from \'VK_NV_corner_sampled_image\'"] impl StructureType { - pub const PHYSICAL_DEVICE_CORNER_SAMPLED_IMAGE_FEATURES_NV: Self = StructureType(1_000_050_000); + pub const PHYSICAL_DEVICE_CORNER_SAMPLED_IMAGE_FEATURES_NV: Self = Self(1_000_050_000); } impl NvExtension52Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -4113,11 +4109,11 @@ impl NvExtension52Fn { } #[doc = "Generated from \'VK_NV_extension_52\'"] impl ShaderModuleCreateFlags { - pub const RESERVED_0_NV: Self = ShaderModuleCreateFlags(0b1); + pub const RESERVED_0_NV: Self = Self(0b1); } #[doc = "Generated from \'VK_NV_extension_52\'"] impl PipelineShaderStageCreateFlags { - pub const RESERVED_2_NV: Self = PipelineShaderStageCreateFlags(0b100); + pub const RESERVED_2_NV: Self = Self(0b100); } impl NvExtension53Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -4206,35 +4202,35 @@ impl ImgFormatPvrtcFn { } #[doc = "Generated from \'VK_IMG_format_pvrtc\'"] impl Format { - pub const PVRTC1_2BPP_UNORM_BLOCK_IMG: Self = Format(1_000_054_000); + pub const PVRTC1_2BPP_UNORM_BLOCK_IMG: Self = Self(1_000_054_000); } #[doc = "Generated from \'VK_IMG_format_pvrtc\'"] impl Format { - pub const PVRTC1_4BPP_UNORM_BLOCK_IMG: Self = Format(1_000_054_001); + pub const PVRTC1_4BPP_UNORM_BLOCK_IMG: Self = Self(1_000_054_001); } #[doc = "Generated from \'VK_IMG_format_pvrtc\'"] impl Format { - pub const PVRTC2_2BPP_UNORM_BLOCK_IMG: Self = Format(1_000_054_002); + pub const PVRTC2_2BPP_UNORM_BLOCK_IMG: Self = Self(1_000_054_002); } #[doc = "Generated from \'VK_IMG_format_pvrtc\'"] impl Format { - pub const PVRTC2_4BPP_UNORM_BLOCK_IMG: Self = Format(1_000_054_003); + pub const PVRTC2_4BPP_UNORM_BLOCK_IMG: Self = Self(1_000_054_003); } #[doc = "Generated from \'VK_IMG_format_pvrtc\'"] impl Format { - pub const PVRTC1_2BPP_SRGB_BLOCK_IMG: Self = Format(1_000_054_004); + pub const PVRTC1_2BPP_SRGB_BLOCK_IMG: Self = Self(1_000_054_004); } #[doc = "Generated from \'VK_IMG_format_pvrtc\'"] impl Format { - pub const PVRTC1_4BPP_SRGB_BLOCK_IMG: Self = Format(1_000_054_005); + pub const PVRTC1_4BPP_SRGB_BLOCK_IMG: Self = Self(1_000_054_005); } #[doc = "Generated from \'VK_IMG_format_pvrtc\'"] impl Format { - pub const PVRTC2_2BPP_SRGB_BLOCK_IMG: Self = Format(1_000_054_006); + pub const PVRTC2_2BPP_SRGB_BLOCK_IMG: Self = Self(1_000_054_006); } #[doc = "Generated from \'VK_IMG_format_pvrtc\'"] impl Format { - pub const PVRTC2_4BPP_SRGB_BLOCK_IMG: Self = Format(1_000_054_007); + pub const PVRTC2_4BPP_SRGB_BLOCK_IMG: Self = Self(1_000_054_007); } impl NvExternalMemoryCapabilitiesFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -4356,11 +4352,11 @@ impl NvExternalMemoryFn { } #[doc = "Generated from \'VK_NV_external_memory\'"] impl StructureType { - pub const EXTERNAL_MEMORY_IMAGE_CREATE_INFO_NV: Self = StructureType(1_000_056_000); + pub const EXTERNAL_MEMORY_IMAGE_CREATE_INFO_NV: Self = Self(1_000_056_000); } #[doc = "Generated from \'VK_NV_external_memory\'"] impl StructureType { - pub const EXPORT_MEMORY_ALLOCATE_INFO_NV: Self = StructureType(1_000_056_001); + pub const EXPORT_MEMORY_ALLOCATE_INFO_NV: Self = Self(1_000_056_001); } impl NvExternalMemoryWin32Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -4434,11 +4430,11 @@ impl NvExternalMemoryWin32Fn { } #[doc = "Generated from \'VK_NV_external_memory_win32\'"] impl StructureType { - pub const IMPORT_MEMORY_WIN32_HANDLE_INFO_NV: Self = StructureType(1_000_057_000); + pub const IMPORT_MEMORY_WIN32_HANDLE_INFO_NV: Self = Self(1_000_057_000); } #[doc = "Generated from \'VK_NV_external_memory_win32\'"] impl StructureType { - pub const EXPORT_MEMORY_WIN32_HANDLE_INFO_NV: Self = StructureType(1_000_057_001); + pub const EXPORT_MEMORY_WIN32_HANDLE_INFO_NV: Self = Self(1_000_057_001); } impl NvWin32KeyedMutexFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -4464,7 +4460,7 @@ impl NvWin32KeyedMutexFn { } #[doc = "Generated from \'VK_NV_win32_keyed_mutex\'"] impl StructureType { - pub const WIN32_KEYED_MUTEX_ACQUIRE_RELEASE_INFO_NV: Self = StructureType(1_000_058_000); + pub const WIN32_KEYED_MUTEX_ACQUIRE_RELEASE_INFO_NV: Self = Self(1_000_058_000); } impl KhrGetPhysicalDeviceProperties2Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -5252,7 +5248,7 @@ impl ExtValidationFlagsFn { } #[doc = "Generated from \'VK_EXT_validation_flags\'"] impl StructureType { - pub const VALIDATION_FLAGS_EXT: Self = StructureType(1_000_061_000); + pub const VALIDATION_FLAGS_EXT: Self = Self(1_000_061_000); } impl NnViSurfaceFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -5323,7 +5319,7 @@ impl NnViSurfaceFn { } #[doc = "Generated from \'VK_NN_vi_surface\'"] impl StructureType { - pub const VI_SURFACE_CREATE_INFO_NN: Self = StructureType(1_000_062_000); + pub const VI_SURFACE_CREATE_INFO_NN: Self = Self(1_000_062_000); } impl KhrShaderDrawParametersFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -5415,64 +5411,63 @@ impl ExtTextureCompressionAstcHdrFn { } #[doc = "Generated from \'VK_EXT_texture_compression_astc_hdr\'"] impl StructureType { - pub const PHYSICAL_DEVICE_TEXTURE_COMPRESSION_ASTC_HDR_FEATURES_EXT: Self = - StructureType(1_000_066_000); + pub const PHYSICAL_DEVICE_TEXTURE_COMPRESSION_ASTC_HDR_FEATURES_EXT: Self = Self(1_000_066_000); } #[doc = "Generated from \'VK_EXT_texture_compression_astc_hdr\'"] impl Format { - pub const ASTC_4X4_SFLOAT_BLOCK_EXT: Self = Format(1_000_066_000); + pub const ASTC_4X4_SFLOAT_BLOCK_EXT: Self = Self(1_000_066_000); } #[doc = "Generated from \'VK_EXT_texture_compression_astc_hdr\'"] impl Format { - pub const ASTC_5X4_SFLOAT_BLOCK_EXT: Self = Format(1_000_066_001); + pub const ASTC_5X4_SFLOAT_BLOCK_EXT: Self = Self(1_000_066_001); } #[doc = "Generated from \'VK_EXT_texture_compression_astc_hdr\'"] impl Format { - pub const ASTC_5X5_SFLOAT_BLOCK_EXT: Self = Format(1_000_066_002); + pub const ASTC_5X5_SFLOAT_BLOCK_EXT: Self = Self(1_000_066_002); } #[doc = "Generated from \'VK_EXT_texture_compression_astc_hdr\'"] impl Format { - pub const ASTC_6X5_SFLOAT_BLOCK_EXT: Self = Format(1_000_066_003); + pub const ASTC_6X5_SFLOAT_BLOCK_EXT: Self = Self(1_000_066_003); } #[doc = "Generated from \'VK_EXT_texture_compression_astc_hdr\'"] impl Format { - pub const ASTC_6X6_SFLOAT_BLOCK_EXT: Self = Format(1_000_066_004); + pub const ASTC_6X6_SFLOAT_BLOCK_EXT: Self = Self(1_000_066_004); } #[doc = "Generated from \'VK_EXT_texture_compression_astc_hdr\'"] impl Format { - pub const ASTC_8X5_SFLOAT_BLOCK_EXT: Self = Format(1_000_066_005); + pub const ASTC_8X5_SFLOAT_BLOCK_EXT: Self = Self(1_000_066_005); } #[doc = "Generated from \'VK_EXT_texture_compression_astc_hdr\'"] impl Format { - pub const ASTC_8X6_SFLOAT_BLOCK_EXT: Self = Format(1_000_066_006); + pub const ASTC_8X6_SFLOAT_BLOCK_EXT: Self = Self(1_000_066_006); } #[doc = "Generated from \'VK_EXT_texture_compression_astc_hdr\'"] impl Format { - pub const ASTC_8X8_SFLOAT_BLOCK_EXT: Self = Format(1_000_066_007); + pub const ASTC_8X8_SFLOAT_BLOCK_EXT: Self = Self(1_000_066_007); } #[doc = "Generated from \'VK_EXT_texture_compression_astc_hdr\'"] impl Format { - pub const ASTC_10X5_SFLOAT_BLOCK_EXT: Self = Format(1_000_066_008); + pub const ASTC_10X5_SFLOAT_BLOCK_EXT: Self = Self(1_000_066_008); } #[doc = "Generated from \'VK_EXT_texture_compression_astc_hdr\'"] impl Format { - pub const ASTC_10X6_SFLOAT_BLOCK_EXT: Self = Format(1_000_066_009); + pub const ASTC_10X6_SFLOAT_BLOCK_EXT: Self = Self(1_000_066_009); } #[doc = "Generated from \'VK_EXT_texture_compression_astc_hdr\'"] impl Format { - pub const ASTC_10X8_SFLOAT_BLOCK_EXT: Self = Format(1_000_066_010); + pub const ASTC_10X8_SFLOAT_BLOCK_EXT: Self = Self(1_000_066_010); } #[doc = "Generated from \'VK_EXT_texture_compression_astc_hdr\'"] impl Format { - pub const ASTC_10X10_SFLOAT_BLOCK_EXT: Self = Format(1_000_066_011); + pub const ASTC_10X10_SFLOAT_BLOCK_EXT: Self = Self(1_000_066_011); } #[doc = "Generated from \'VK_EXT_texture_compression_astc_hdr\'"] impl Format { - pub const ASTC_12X10_SFLOAT_BLOCK_EXT: Self = Format(1_000_066_012); + pub const ASTC_12X10_SFLOAT_BLOCK_EXT: Self = Self(1_000_066_012); } #[doc = "Generated from \'VK_EXT_texture_compression_astc_hdr\'"] impl Format { - pub const ASTC_12X12_SFLOAT_BLOCK_EXT: Self = Format(1_000_066_013); + pub const ASTC_12X12_SFLOAT_BLOCK_EXT: Self = Self(1_000_066_013); } impl ExtAstcDecodeModeFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -5498,11 +5493,11 @@ impl ExtAstcDecodeModeFn { } #[doc = "Generated from \'VK_EXT_astc_decode_mode\'"] impl StructureType { - pub const IMAGE_VIEW_ASTC_DECODE_MODE_EXT: Self = StructureType(1_000_067_000); + pub const IMAGE_VIEW_ASTC_DECODE_MODE_EXT: Self = Self(1_000_067_000); } #[doc = "Generated from \'VK_EXT_astc_decode_mode\'"] impl StructureType { - pub const PHYSICAL_DEVICE_ASTC_DECODE_FEATURES_EXT: Self = StructureType(1_000_067_001); + pub const PHYSICAL_DEVICE_ASTC_DECODE_FEATURES_EXT: Self = Self(1_000_067_001); } impl ImgExtension69Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -5995,19 +5990,19 @@ impl KhrExternalMemoryWin32Fn { } #[doc = "Generated from \'VK_KHR_external_memory_win32\'"] impl StructureType { - pub const IMPORT_MEMORY_WIN32_HANDLE_INFO_KHR: Self = StructureType(1_000_073_000); + pub const IMPORT_MEMORY_WIN32_HANDLE_INFO_KHR: Self = Self(1_000_073_000); } #[doc = "Generated from \'VK_KHR_external_memory_win32\'"] impl StructureType { - pub const EXPORT_MEMORY_WIN32_HANDLE_INFO_KHR: Self = StructureType(1_000_073_001); + pub const EXPORT_MEMORY_WIN32_HANDLE_INFO_KHR: Self = Self(1_000_073_001); } #[doc = "Generated from \'VK_KHR_external_memory_win32\'"] impl StructureType { - pub const MEMORY_WIN32_HANDLE_PROPERTIES_KHR: Self = StructureType(1_000_073_002); + pub const MEMORY_WIN32_HANDLE_PROPERTIES_KHR: Self = Self(1_000_073_002); } #[doc = "Generated from \'VK_KHR_external_memory_win32\'"] impl StructureType { - pub const MEMORY_GET_WIN32_HANDLE_INFO_KHR: Self = StructureType(1_000_073_003); + pub const MEMORY_GET_WIN32_HANDLE_INFO_KHR: Self = Self(1_000_073_003); } impl KhrExternalMemoryFdFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -6119,15 +6114,15 @@ impl KhrExternalMemoryFdFn { } #[doc = "Generated from \'VK_KHR_external_memory_fd\'"] impl StructureType { - pub const IMPORT_MEMORY_FD_INFO_KHR: Self = StructureType(1_000_074_000); + pub const IMPORT_MEMORY_FD_INFO_KHR: Self = Self(1_000_074_000); } #[doc = "Generated from \'VK_KHR_external_memory_fd\'"] impl StructureType { - pub const MEMORY_FD_PROPERTIES_KHR: Self = StructureType(1_000_074_001); + pub const MEMORY_FD_PROPERTIES_KHR: Self = Self(1_000_074_001); } #[doc = "Generated from \'VK_KHR_external_memory_fd\'"] impl StructureType { - pub const MEMORY_GET_FD_INFO_KHR: Self = StructureType(1_000_074_002); + pub const MEMORY_GET_FD_INFO_KHR: Self = Self(1_000_074_002); } impl KhrWin32KeyedMutexFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -6153,7 +6148,7 @@ impl KhrWin32KeyedMutexFn { } #[doc = "Generated from \'VK_KHR_win32_keyed_mutex\'"] impl StructureType { - pub const WIN32_KEYED_MUTEX_ACQUIRE_RELEASE_INFO_KHR: Self = StructureType(1_000_075_000); + pub const WIN32_KEYED_MUTEX_ACQUIRE_RELEASE_INFO_KHR: Self = Self(1_000_075_000); } impl KhrExternalSemaphoreCapabilitiesFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -6406,19 +6401,19 @@ impl KhrExternalSemaphoreWin32Fn { } #[doc = "Generated from \'VK_KHR_external_semaphore_win32\'"] impl StructureType { - pub const IMPORT_SEMAPHORE_WIN32_HANDLE_INFO_KHR: Self = StructureType(1_000_078_000); + pub const IMPORT_SEMAPHORE_WIN32_HANDLE_INFO_KHR: Self = Self(1_000_078_000); } #[doc = "Generated from \'VK_KHR_external_semaphore_win32\'"] impl StructureType { - pub const EXPORT_SEMAPHORE_WIN32_HANDLE_INFO_KHR: Self = StructureType(1_000_078_001); + pub const EXPORT_SEMAPHORE_WIN32_HANDLE_INFO_KHR: Self = Self(1_000_078_001); } #[doc = "Generated from \'VK_KHR_external_semaphore_win32\'"] impl StructureType { - pub const D3D12_FENCE_SUBMIT_INFO_KHR: Self = StructureType(1_000_078_002); + pub const D3D12_FENCE_SUBMIT_INFO_KHR: Self = Self(1_000_078_002); } #[doc = "Generated from \'VK_KHR_external_semaphore_win32\'"] impl StructureType { - pub const SEMAPHORE_GET_WIN32_HANDLE_INFO_KHR: Self = StructureType(1_000_078_003); + pub const SEMAPHORE_GET_WIN32_HANDLE_INFO_KHR: Self = Self(1_000_078_003); } impl KhrExternalSemaphoreFdFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -6522,11 +6517,11 @@ impl KhrExternalSemaphoreFdFn { } #[doc = "Generated from \'VK_KHR_external_semaphore_fd\'"] impl StructureType { - pub const IMPORT_SEMAPHORE_FD_INFO_KHR: Self = StructureType(1_000_079_000); + pub const IMPORT_SEMAPHORE_FD_INFO_KHR: Self = Self(1_000_079_000); } #[doc = "Generated from \'VK_KHR_external_semaphore_fd\'"] impl StructureType { - pub const SEMAPHORE_GET_FD_INFO_KHR: Self = StructureType(1_000_079_001); + pub const SEMAPHORE_GET_FD_INFO_KHR: Self = Self(1_000_079_001); } impl KhrPushDescriptorFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -6671,15 +6666,15 @@ impl KhrPushDescriptorFn { } #[doc = "Generated from \'VK_KHR_push_descriptor\'"] impl StructureType { - pub const PHYSICAL_DEVICE_PUSH_DESCRIPTOR_PROPERTIES_KHR: Self = StructureType(1_000_080_000); + pub const PHYSICAL_DEVICE_PUSH_DESCRIPTOR_PROPERTIES_KHR: Self = Self(1_000_080_000); } #[doc = "Generated from \'VK_KHR_push_descriptor\'"] impl DescriptorSetLayoutCreateFlags { - pub const PUSH_DESCRIPTOR_KHR: Self = DescriptorSetLayoutCreateFlags(0b1); + pub const PUSH_DESCRIPTOR_KHR: Self = Self(0b1); } #[doc = "Generated from \'VK_KHR_push_descriptor\'"] impl DescriptorUpdateTemplateType { - pub const PUSH_DESCRIPTORS_KHR: Self = DescriptorUpdateTemplateType(1); + pub const PUSH_DESCRIPTORS_KHR: Self = Self(1); } impl ExtConditionalRenderingFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -6776,29 +6771,27 @@ impl ExtConditionalRenderingFn { } #[doc = "Generated from \'VK_EXT_conditional_rendering\'"] impl StructureType { - pub const COMMAND_BUFFER_INHERITANCE_CONDITIONAL_RENDERING_INFO_EXT: Self = - StructureType(1_000_081_000); + pub const COMMAND_BUFFER_INHERITANCE_CONDITIONAL_RENDERING_INFO_EXT: Self = Self(1_000_081_000); } #[doc = "Generated from \'VK_EXT_conditional_rendering\'"] impl StructureType { - pub const PHYSICAL_DEVICE_CONDITIONAL_RENDERING_FEATURES_EXT: Self = - StructureType(1_000_081_001); + pub const PHYSICAL_DEVICE_CONDITIONAL_RENDERING_FEATURES_EXT: Self = Self(1_000_081_001); } #[doc = "Generated from \'VK_EXT_conditional_rendering\'"] impl StructureType { - pub const CONDITIONAL_RENDERING_BEGIN_INFO_EXT: Self = StructureType(1_000_081_002); + pub const CONDITIONAL_RENDERING_BEGIN_INFO_EXT: Self = Self(1_000_081_002); } #[doc = "Generated from \'VK_EXT_conditional_rendering\'"] impl AccessFlags { - pub const CONDITIONAL_RENDERING_READ_EXT: Self = AccessFlags(0b1_0000_0000_0000_0000_0000); + pub const CONDITIONAL_RENDERING_READ_EXT: Self = Self(0b1_0000_0000_0000_0000_0000); } #[doc = "Generated from \'VK_EXT_conditional_rendering\'"] impl BufferUsageFlags { - pub const CONDITIONAL_RENDERING_EXT: Self = BufferUsageFlags(0b10_0000_0000); + pub const CONDITIONAL_RENDERING_EXT: Self = Self(0b10_0000_0000); } #[doc = "Generated from \'VK_EXT_conditional_rendering\'"] impl PipelineStageFlags { - pub const CONDITIONAL_RENDERING_EXT: Self = PipelineStageFlags(0b100_0000_0000_0000_0000); + pub const CONDITIONAL_RENDERING_EXT: Self = Self(0b100_0000_0000_0000_0000); } impl KhrShaderFloat16Int8Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -6883,7 +6876,7 @@ impl KhrIncrementalPresentFn { } #[doc = "Generated from \'VK_KHR_incremental_present\'"] impl StructureType { - pub const PRESENT_REGIONS_KHR: Self = StructureType(1_000_084_000); + pub const PRESENT_REGIONS_KHR: Self = Self(1_000_084_000); } impl KhrDescriptorUpdateTemplateFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -7220,11 +7213,11 @@ impl NvClipSpaceWScalingFn { } #[doc = "Generated from \'VK_NV_clip_space_w_scaling\'"] impl StructureType { - pub const PIPELINE_VIEWPORT_W_SCALING_STATE_CREATE_INFO_NV: Self = StructureType(1_000_087_000); + pub const PIPELINE_VIEWPORT_W_SCALING_STATE_CREATE_INFO_NV: Self = Self(1_000_087_000); } #[doc = "Generated from \'VK_NV_clip_space_w_scaling\'"] impl DynamicState { - pub const VIEWPORT_W_SCALING_NV: Self = DynamicState(1_000_087_000); + pub const VIEWPORT_W_SCALING_NV: Self = Self(1_000_087_000); } impl ExtDirectModeDisplayFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -7465,7 +7458,7 @@ impl ExtDisplaySurfaceCounterFn { } #[doc = "Generated from \'VK_EXT_display_surface_counter\'"] impl StructureType { - pub const SURFACE_CAPABILITIES_2_EXT: Self = StructureType(1_000_090_000); + pub const SURFACE_CAPABILITIES_2_EXT: Self = Self(1_000_090_000); } #[doc = "Generated from \'VK_EXT_display_surface_counter\'"] impl StructureType { @@ -7684,19 +7677,19 @@ impl ExtDisplayControlFn { } #[doc = "Generated from \'VK_EXT_display_control\'"] impl StructureType { - pub const DISPLAY_POWER_INFO_EXT: Self = StructureType(1_000_091_000); + pub const DISPLAY_POWER_INFO_EXT: Self = Self(1_000_091_000); } #[doc = "Generated from \'VK_EXT_display_control\'"] impl StructureType { - pub const DEVICE_EVENT_INFO_EXT: Self = StructureType(1_000_091_001); + pub const DEVICE_EVENT_INFO_EXT: Self = Self(1_000_091_001); } #[doc = "Generated from \'VK_EXT_display_control\'"] impl StructureType { - pub const DISPLAY_EVENT_INFO_EXT: Self = StructureType(1_000_091_002); + pub const DISPLAY_EVENT_INFO_EXT: Self = Self(1_000_091_002); } #[doc = "Generated from \'VK_EXT_display_control\'"] impl StructureType { - pub const SWAPCHAIN_COUNTER_CREATE_INFO_EXT: Self = StructureType(1_000_091_003); + pub const SWAPCHAIN_COUNTER_CREATE_INFO_EXT: Self = Self(1_000_091_003); } impl GoogleDisplayTimingFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -7816,7 +7809,7 @@ impl GoogleDisplayTimingFn { } #[doc = "Generated from \'VK_GOOGLE_display_timing\'"] impl StructureType { - pub const PRESENT_TIMES_INFO_GOOGLE: Self = StructureType(1_000_092_000); + pub const PRESENT_TIMES_INFO_GOOGLE: Self = Self(1_000_092_000); } impl NvSampleMaskOverrideCoverageFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -7909,15 +7902,15 @@ impl NvxMultiviewPerViewAttributesFn { #[doc = "Generated from \'VK_NVX_multiview_per_view_attributes\'"] impl StructureType { pub const PHYSICAL_DEVICE_MULTIVIEW_PER_VIEW_ATTRIBUTES_PROPERTIES_NVX: Self = - StructureType(1_000_097_000); + Self(1_000_097_000); } #[doc = "Generated from \'VK_NVX_multiview_per_view_attributes\'"] impl SubpassDescriptionFlags { - pub const PER_VIEW_ATTRIBUTES_NVX: Self = SubpassDescriptionFlags(0b1); + pub const PER_VIEW_ATTRIBUTES_NVX: Self = Self(0b1); } #[doc = "Generated from \'VK_NVX_multiview_per_view_attributes\'"] impl SubpassDescriptionFlags { - pub const PER_VIEW_POSITION_X_ONLY_NVX: Self = SubpassDescriptionFlags(0b10); + pub const PER_VIEW_POSITION_X_ONLY_NVX: Self = Self(0b10); } impl NvViewportSwizzleFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -7943,7 +7936,7 @@ impl NvViewportSwizzleFn { } #[doc = "Generated from \'VK_NV_viewport_swizzle\'"] impl StructureType { - pub const PIPELINE_VIEWPORT_SWIZZLE_STATE_CREATE_INFO_NV: Self = StructureType(1_000_098_000); + pub const PIPELINE_VIEWPORT_SWIZZLE_STATE_CREATE_INFO_NV: Self = Self(1_000_098_000); } impl ExtDiscardRectanglesFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -8022,15 +8015,15 @@ impl ExtDiscardRectanglesFn { } #[doc = "Generated from \'VK_EXT_discard_rectangles\'"] impl StructureType { - pub const PHYSICAL_DEVICE_DISCARD_RECTANGLE_PROPERTIES_EXT: Self = StructureType(1_000_099_000); + pub const PHYSICAL_DEVICE_DISCARD_RECTANGLE_PROPERTIES_EXT: Self = Self(1_000_099_000); } #[doc = "Generated from \'VK_EXT_discard_rectangles\'"] impl StructureType { - pub const PIPELINE_DISCARD_RECTANGLE_STATE_CREATE_INFO_EXT: Self = StructureType(1_000_099_001); + pub const PIPELINE_DISCARD_RECTANGLE_STATE_CREATE_INFO_EXT: Self = Self(1_000_099_001); } #[doc = "Generated from \'VK_EXT_discard_rectangles\'"] impl DynamicState { - pub const DISCARD_RECTANGLE_EXT: Self = DynamicState(1_000_099_000); + pub const DISCARD_RECTANGLE_EXT: Self = Self(1_000_099_000); } impl NvExtension101Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -8078,13 +8071,11 @@ impl ExtConservativeRasterizationFn { } #[doc = "Generated from \'VK_EXT_conservative_rasterization\'"] impl StructureType { - pub const PHYSICAL_DEVICE_CONSERVATIVE_RASTERIZATION_PROPERTIES_EXT: Self = - StructureType(1_000_101_000); + pub const PHYSICAL_DEVICE_CONSERVATIVE_RASTERIZATION_PROPERTIES_EXT: Self = Self(1_000_101_000); } #[doc = "Generated from \'VK_EXT_conservative_rasterization\'"] impl StructureType { - pub const PIPELINE_RASTERIZATION_CONSERVATIVE_STATE_CREATE_INFO_EXT: Self = - StructureType(1_000_101_001); + pub const PIPELINE_RASTERIZATION_CONSERVATIVE_STATE_CREATE_INFO_EXT: Self = Self(1_000_101_001); } impl ExtDepthClipEnableFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -8110,12 +8101,11 @@ impl ExtDepthClipEnableFn { } #[doc = "Generated from \'VK_EXT_depth_clip_enable\'"] impl StructureType { - pub const PHYSICAL_DEVICE_DEPTH_CLIP_ENABLE_FEATURES_EXT: Self = StructureType(1_000_102_000); + pub const PHYSICAL_DEVICE_DEPTH_CLIP_ENABLE_FEATURES_EXT: Self = Self(1_000_102_000); } #[doc = "Generated from \'VK_EXT_depth_clip_enable\'"] impl StructureType { - pub const PIPELINE_RASTERIZATION_DEPTH_CLIP_STATE_CREATE_INFO_EXT: Self = - StructureType(1_000_102_001); + pub const PIPELINE_RASTERIZATION_DEPTH_CLIP_STATE_CREATE_INFO_EXT: Self = Self(1_000_102_001); } impl NvExtension104Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -8163,59 +8153,59 @@ impl ExtSwapchainColorspaceFn { } #[doc = "Generated from \'VK_EXT_swapchain_colorspace\'"] impl ColorSpaceKHR { - pub const DISPLAY_P3_NONLINEAR_EXT: Self = ColorSpaceKHR(1_000_104_001); + pub const DISPLAY_P3_NONLINEAR_EXT: Self = Self(1_000_104_001); } #[doc = "Generated from \'VK_EXT_swapchain_colorspace\'"] impl ColorSpaceKHR { - pub const EXTENDED_SRGB_LINEAR_EXT: Self = ColorSpaceKHR(1_000_104_002); + pub const EXTENDED_SRGB_LINEAR_EXT: Self = Self(1_000_104_002); } #[doc = "Generated from \'VK_EXT_swapchain_colorspace\'"] impl ColorSpaceKHR { - pub const DISPLAY_P3_LINEAR_EXT: Self = ColorSpaceKHR(1_000_104_003); + pub const DISPLAY_P3_LINEAR_EXT: Self = Self(1_000_104_003); } #[doc = "Generated from \'VK_EXT_swapchain_colorspace\'"] impl ColorSpaceKHR { - pub const DCI_P3_NONLINEAR_EXT: Self = ColorSpaceKHR(1_000_104_004); + pub const DCI_P3_NONLINEAR_EXT: Self = Self(1_000_104_004); } #[doc = "Generated from \'VK_EXT_swapchain_colorspace\'"] impl ColorSpaceKHR { - pub const BT709_LINEAR_EXT: Self = ColorSpaceKHR(1_000_104_005); + pub const BT709_LINEAR_EXT: Self = Self(1_000_104_005); } #[doc = "Generated from \'VK_EXT_swapchain_colorspace\'"] impl ColorSpaceKHR { - pub const BT709_NONLINEAR_EXT: Self = ColorSpaceKHR(1_000_104_006); + pub const BT709_NONLINEAR_EXT: Self = Self(1_000_104_006); } #[doc = "Generated from \'VK_EXT_swapchain_colorspace\'"] impl ColorSpaceKHR { - pub const BT2020_LINEAR_EXT: Self = ColorSpaceKHR(1_000_104_007); + pub const BT2020_LINEAR_EXT: Self = Self(1_000_104_007); } #[doc = "Generated from \'VK_EXT_swapchain_colorspace\'"] impl ColorSpaceKHR { - pub const HDR10_ST2084_EXT: Self = ColorSpaceKHR(1_000_104_008); + pub const HDR10_ST2084_EXT: Self = Self(1_000_104_008); } #[doc = "Generated from \'VK_EXT_swapchain_colorspace\'"] impl ColorSpaceKHR { - pub const DOLBYVISION_EXT: Self = ColorSpaceKHR(1_000_104_009); + pub const DOLBYVISION_EXT: Self = Self(1_000_104_009); } #[doc = "Generated from \'VK_EXT_swapchain_colorspace\'"] impl ColorSpaceKHR { - pub const HDR10_HLG_EXT: Self = ColorSpaceKHR(1_000_104_010); + pub const HDR10_HLG_EXT: Self = Self(1_000_104_010); } #[doc = "Generated from \'VK_EXT_swapchain_colorspace\'"] impl ColorSpaceKHR { - pub const ADOBERGB_LINEAR_EXT: Self = ColorSpaceKHR(1_000_104_011); + pub const ADOBERGB_LINEAR_EXT: Self = Self(1_000_104_011); } #[doc = "Generated from \'VK_EXT_swapchain_colorspace\'"] impl ColorSpaceKHR { - pub const ADOBERGB_NONLINEAR_EXT: Self = ColorSpaceKHR(1_000_104_012); + pub const ADOBERGB_NONLINEAR_EXT: Self = Self(1_000_104_012); } #[doc = "Generated from \'VK_EXT_swapchain_colorspace\'"] impl ColorSpaceKHR { - pub const PASS_THROUGH_EXT: Self = ColorSpaceKHR(1_000_104_013); + pub const PASS_THROUGH_EXT: Self = Self(1_000_104_013); } #[doc = "Generated from \'VK_EXT_swapchain_colorspace\'"] impl ColorSpaceKHR { - pub const EXTENDED_SRGB_NONLINEAR_EXT: Self = ColorSpaceKHR(1_000_104_014); + pub const EXTENDED_SRGB_NONLINEAR_EXT: Self = Self(1_000_104_014); } #[doc = "Generated from \'VK_EXT_swapchain_colorspace\'"] impl ColorSpaceKHR { @@ -8290,7 +8280,7 @@ impl ExtHdrMetadataFn { } #[doc = "Generated from \'VK_EXT_hdr_metadata\'"] impl StructureType { - pub const HDR_METADATA_EXT: Self = StructureType(1_000_105_000); + pub const HDR_METADATA_EXT: Self = Self(1_000_105_000); } impl ImgExtension107Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -8681,19 +8671,19 @@ impl KhrSharedPresentableImageFn { } #[doc = "Generated from \'VK_KHR_shared_presentable_image\'"] impl StructureType { - pub const SHARED_PRESENT_SURFACE_CAPABILITIES_KHR: Self = StructureType(1_000_111_000); + pub const SHARED_PRESENT_SURFACE_CAPABILITIES_KHR: Self = Self(1_000_111_000); } #[doc = "Generated from \'VK_KHR_shared_presentable_image\'"] impl PresentModeKHR { - pub const SHARED_DEMAND_REFRESH: Self = PresentModeKHR(1_000_111_000); + pub const SHARED_DEMAND_REFRESH: Self = Self(1_000_111_000); } #[doc = "Generated from \'VK_KHR_shared_presentable_image\'"] impl PresentModeKHR { - pub const SHARED_CONTINUOUS_REFRESH: Self = PresentModeKHR(1_000_111_001); + pub const SHARED_CONTINUOUS_REFRESH: Self = Self(1_000_111_001); } #[doc = "Generated from \'VK_KHR_shared_presentable_image\'"] impl ImageLayout { - pub const SHARED_PRESENT_KHR: Self = ImageLayout(1_000_111_000); + pub const SHARED_PRESENT_KHR: Self = Self(1_000_111_000); } impl KhrExternalFenceCapabilitiesFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -8940,15 +8930,15 @@ impl KhrExternalFenceWin32Fn { } #[doc = "Generated from \'VK_KHR_external_fence_win32\'"] impl StructureType { - pub const IMPORT_FENCE_WIN32_HANDLE_INFO_KHR: Self = StructureType(1_000_114_000); + pub const IMPORT_FENCE_WIN32_HANDLE_INFO_KHR: Self = Self(1_000_114_000); } #[doc = "Generated from \'VK_KHR_external_fence_win32\'"] impl StructureType { - pub const EXPORT_FENCE_WIN32_HANDLE_INFO_KHR: Self = StructureType(1_000_114_001); + pub const EXPORT_FENCE_WIN32_HANDLE_INFO_KHR: Self = Self(1_000_114_001); } #[doc = "Generated from \'VK_KHR_external_fence_win32\'"] impl StructureType { - pub const FENCE_GET_WIN32_HANDLE_INFO_KHR: Self = StructureType(1_000_114_002); + pub const FENCE_GET_WIN32_HANDLE_INFO_KHR: Self = Self(1_000_114_002); } impl KhrExternalFenceFdFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -9049,11 +9039,11 @@ impl KhrExternalFenceFdFn { } #[doc = "Generated from \'VK_KHR_external_fence_fd\'"] impl StructureType { - pub const IMPORT_FENCE_FD_INFO_KHR: Self = StructureType(1_000_115_000); + pub const IMPORT_FENCE_FD_INFO_KHR: Self = Self(1_000_115_000); } #[doc = "Generated from \'VK_KHR_external_fence_fd\'"] impl StructureType { - pub const FENCE_GET_FD_INFO_KHR: Self = StructureType(1_000_115_001); + pub const FENCE_GET_FD_INFO_KHR: Self = Self(1_000_115_001); } impl KhrPerformanceQueryFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -9248,35 +9238,35 @@ impl KhrPerformanceQueryFn { } #[doc = "Generated from \'VK_KHR_performance_query\'"] impl QueryType { - pub const PERFORMANCE_QUERY_KHR: Self = QueryType(1_000_116_000); + pub const PERFORMANCE_QUERY_KHR: Self = Self(1_000_116_000); } #[doc = "Generated from \'VK_KHR_performance_query\'"] impl StructureType { - pub const PHYSICAL_DEVICE_PERFORMANCE_QUERY_FEATURES_KHR: Self = StructureType(1_000_116_000); + pub const PHYSICAL_DEVICE_PERFORMANCE_QUERY_FEATURES_KHR: Self = Self(1_000_116_000); } #[doc = "Generated from \'VK_KHR_performance_query\'"] impl StructureType { - pub const PHYSICAL_DEVICE_PERFORMANCE_QUERY_PROPERTIES_KHR: Self = StructureType(1_000_116_001); + pub const PHYSICAL_DEVICE_PERFORMANCE_QUERY_PROPERTIES_KHR: Self = Self(1_000_116_001); } #[doc = "Generated from \'VK_KHR_performance_query\'"] impl StructureType { - pub const QUERY_POOL_PERFORMANCE_CREATE_INFO_KHR: Self = StructureType(1_000_116_002); + pub const QUERY_POOL_PERFORMANCE_CREATE_INFO_KHR: Self = Self(1_000_116_002); } #[doc = "Generated from \'VK_KHR_performance_query\'"] impl StructureType { - pub const PERFORMANCE_QUERY_SUBMIT_INFO_KHR: Self = StructureType(1_000_116_003); + pub const PERFORMANCE_QUERY_SUBMIT_INFO_KHR: Self = Self(1_000_116_003); } #[doc = "Generated from \'VK_KHR_performance_query\'"] impl StructureType { - pub const ACQUIRE_PROFILING_LOCK_INFO_KHR: Self = StructureType(1_000_116_004); + pub const ACQUIRE_PROFILING_LOCK_INFO_KHR: Self = Self(1_000_116_004); } #[doc = "Generated from \'VK_KHR_performance_query\'"] impl StructureType { - pub const PERFORMANCE_COUNTER_KHR: Self = StructureType(1_000_116_005); + pub const PERFORMANCE_COUNTER_KHR: Self = Self(1_000_116_005); } #[doc = "Generated from \'VK_KHR_performance_query\'"] impl StructureType { - pub const PERFORMANCE_COUNTER_DESCRIPTION_KHR: Self = StructureType(1_000_116_006); + pub const PERFORMANCE_COUNTER_DESCRIPTION_KHR: Self = Self(1_000_116_006); } impl KhrMaintenance2Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -9498,15 +9488,15 @@ impl KhrGetSurfaceCapabilities2Fn { } #[doc = "Generated from \'VK_KHR_get_surface_capabilities2\'"] impl StructureType { - pub const PHYSICAL_DEVICE_SURFACE_INFO_2_KHR: Self = StructureType(1_000_119_000); + pub const PHYSICAL_DEVICE_SURFACE_INFO_2_KHR: Self = Self(1_000_119_000); } #[doc = "Generated from \'VK_KHR_get_surface_capabilities2\'"] impl StructureType { - pub const SURFACE_CAPABILITIES_2_KHR: Self = StructureType(1_000_119_001); + pub const SURFACE_CAPABILITIES_2_KHR: Self = Self(1_000_119_001); } #[doc = "Generated from \'VK_KHR_get_surface_capabilities2\'"] impl StructureType { - pub const SURFACE_FORMAT_2_KHR: Self = StructureType(1_000_119_002); + pub const SURFACE_FORMAT_2_KHR: Self = Self(1_000_119_002); } impl KhrVariablePointersFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -9754,23 +9744,23 @@ impl KhrGetDisplayProperties2Fn { } #[doc = "Generated from \'VK_KHR_get_display_properties2\'"] impl StructureType { - pub const DISPLAY_PROPERTIES_2_KHR: Self = StructureType(1_000_121_000); + pub const DISPLAY_PROPERTIES_2_KHR: Self = Self(1_000_121_000); } #[doc = "Generated from \'VK_KHR_get_display_properties2\'"] impl StructureType { - pub const DISPLAY_PLANE_PROPERTIES_2_KHR: Self = StructureType(1_000_121_001); + pub const DISPLAY_PLANE_PROPERTIES_2_KHR: Self = Self(1_000_121_001); } #[doc = "Generated from \'VK_KHR_get_display_properties2\'"] impl StructureType { - pub const DISPLAY_MODE_PROPERTIES_2_KHR: Self = StructureType(1_000_121_002); + pub const DISPLAY_MODE_PROPERTIES_2_KHR: Self = Self(1_000_121_002); } #[doc = "Generated from \'VK_KHR_get_display_properties2\'"] impl StructureType { - pub const DISPLAY_PLANE_INFO_2_KHR: Self = StructureType(1_000_121_003); + pub const DISPLAY_PLANE_INFO_2_KHR: Self = Self(1_000_121_003); } #[doc = "Generated from \'VK_KHR_get_display_properties2\'"] impl StructureType { - pub const DISPLAY_PLANE_CAPABILITIES_2_KHR: Self = StructureType(1_000_121_004); + pub const DISPLAY_PLANE_CAPABILITIES_2_KHR: Self = Self(1_000_121_004); } impl MvkIosSurfaceFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -9844,7 +9834,7 @@ impl MvkIosSurfaceFn { } #[doc = "Generated from \'VK_MVK_ios_surface\'"] impl StructureType { - pub const IOS_SURFACE_CREATE_INFO_M: Self = StructureType(1_000_122_000); + pub const IOS_SURFACE_CREATE_INFO_M: Self = Self(1_000_122_000); } impl MvkMacosSurfaceFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -9918,7 +9908,7 @@ impl MvkMacosSurfaceFn { } #[doc = "Generated from \'VK_MVK_macos_surface\'"] impl StructureType { - pub const MACOS_SURFACE_CREATE_INFO_M: Self = StructureType(1_000_123_000); + pub const MACOS_SURFACE_CREATE_INFO_M: Self = Self(1_000_123_000); } impl MvkMoltenvkFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -9965,8 +9955,7 @@ impl ExtExternalMemoryDmaBufFn { } #[doc = "Generated from \'VK_EXT_external_memory_dma_buf\'"] impl ExternalMemoryHandleTypeFlags { - pub const EXTERNAL_MEMORY_HANDLE_TYPE_DMA_BUF: Self = - ExternalMemoryHandleTypeFlags(0b10_0000_0000); + pub const EXTERNAL_MEMORY_HANDLE_TYPE_DMA_BUF: Self = Self(0b10_0000_0000); } impl ExtQueueFamilyForeignFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -10444,27 +10433,27 @@ impl ExtDebugUtilsFn { } #[doc = "Generated from \'VK_EXT_debug_utils\'"] impl StructureType { - pub const DEBUG_UTILS_OBJECT_NAME_INFO_EXT: Self = StructureType(1_000_128_000); + pub const DEBUG_UTILS_OBJECT_NAME_INFO_EXT: Self = Self(1_000_128_000); } #[doc = "Generated from \'VK_EXT_debug_utils\'"] impl StructureType { - pub const DEBUG_UTILS_OBJECT_TAG_INFO_EXT: Self = StructureType(1_000_128_001); + pub const DEBUG_UTILS_OBJECT_TAG_INFO_EXT: Self = Self(1_000_128_001); } #[doc = "Generated from \'VK_EXT_debug_utils\'"] impl StructureType { - pub const DEBUG_UTILS_LABEL_EXT: Self = StructureType(1_000_128_002); + pub const DEBUG_UTILS_LABEL_EXT: Self = Self(1_000_128_002); } #[doc = "Generated from \'VK_EXT_debug_utils\'"] impl StructureType { - pub const DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT: Self = StructureType(1_000_128_003); + pub const DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT: Self = Self(1_000_128_003); } #[doc = "Generated from \'VK_EXT_debug_utils\'"] impl StructureType { - pub const DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT: Self = StructureType(1_000_128_004); + pub const DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT: Self = Self(1_000_128_004); } #[doc = "Generated from \'VK_EXT_debug_utils\'"] impl ObjectType { - pub const DEBUG_UTILS_MESSENGER_EXT: Self = ObjectType(1_000_128_000); + pub const DEBUG_UTILS_MESSENGER_EXT: Self = Self(1_000_128_000); } impl AndroidExternalMemoryAndroidHardwareBufferFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -10580,32 +10569,31 @@ impl AndroidExternalMemoryAndroidHardwareBufferFn { #[doc = "Generated from \'VK_ANDROID_external_memory_android_hardware_buffer\'"] impl ExternalMemoryHandleTypeFlags { pub const EXTERNAL_MEMORY_HANDLE_TYPE_ANDROID_HARDWARE_BUFFER_ANDROID: Self = - ExternalMemoryHandleTypeFlags(0b100_0000_0000); + Self(0b100_0000_0000); } #[doc = "Generated from \'VK_ANDROID_external_memory_android_hardware_buffer\'"] impl StructureType { - pub const ANDROID_HARDWARE_BUFFER_USAGE_ANDROID: Self = StructureType(1_000_129_000); + pub const ANDROID_HARDWARE_BUFFER_USAGE_ANDROID: Self = Self(1_000_129_000); } #[doc = "Generated from \'VK_ANDROID_external_memory_android_hardware_buffer\'"] impl StructureType { - pub const ANDROID_HARDWARE_BUFFER_PROPERTIES_ANDROID: Self = StructureType(1_000_129_001); + pub const ANDROID_HARDWARE_BUFFER_PROPERTIES_ANDROID: Self = Self(1_000_129_001); } #[doc = "Generated from \'VK_ANDROID_external_memory_android_hardware_buffer\'"] impl StructureType { - pub const ANDROID_HARDWARE_BUFFER_FORMAT_PROPERTIES_ANDROID: Self = - StructureType(1_000_129_002); + pub const ANDROID_HARDWARE_BUFFER_FORMAT_PROPERTIES_ANDROID: Self = Self(1_000_129_002); } #[doc = "Generated from \'VK_ANDROID_external_memory_android_hardware_buffer\'"] impl StructureType { - pub const IMPORT_ANDROID_HARDWARE_BUFFER_INFO_ANDROID: Self = StructureType(1_000_129_003); + pub const IMPORT_ANDROID_HARDWARE_BUFFER_INFO_ANDROID: Self = Self(1_000_129_003); } #[doc = "Generated from \'VK_ANDROID_external_memory_android_hardware_buffer\'"] impl StructureType { - pub const MEMORY_GET_ANDROID_HARDWARE_BUFFER_INFO_ANDROID: Self = StructureType(1_000_129_004); + pub const MEMORY_GET_ANDROID_HARDWARE_BUFFER_INFO_ANDROID: Self = Self(1_000_129_004); } #[doc = "Generated from \'VK_ANDROID_external_memory_android_hardware_buffer\'"] impl StructureType { - pub const EXTERNAL_FORMAT_ANDROID: Self = StructureType(1_000_129_005); + pub const EXTERNAL_FORMAT_ANDROID: Self = Self(1_000_129_005); } impl ExtSamplerFilterMinmaxFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -10834,26 +10822,23 @@ impl ExtInlineUniformBlockFn { } #[doc = "Generated from \'VK_EXT_inline_uniform_block\'"] impl DescriptorType { - pub const INLINE_UNIFORM_BLOCK_EXT: Self = DescriptorType(1_000_138_000); + pub const INLINE_UNIFORM_BLOCK_EXT: Self = Self(1_000_138_000); } #[doc = "Generated from \'VK_EXT_inline_uniform_block\'"] impl StructureType { - pub const PHYSICAL_DEVICE_INLINE_UNIFORM_BLOCK_FEATURES_EXT: Self = - StructureType(1_000_138_000); + pub const PHYSICAL_DEVICE_INLINE_UNIFORM_BLOCK_FEATURES_EXT: Self = Self(1_000_138_000); } #[doc = "Generated from \'VK_EXT_inline_uniform_block\'"] impl StructureType { - pub const PHYSICAL_DEVICE_INLINE_UNIFORM_BLOCK_PROPERTIES_EXT: Self = - StructureType(1_000_138_001); + pub const PHYSICAL_DEVICE_INLINE_UNIFORM_BLOCK_PROPERTIES_EXT: Self = Self(1_000_138_001); } #[doc = "Generated from \'VK_EXT_inline_uniform_block\'"] impl StructureType { - pub const WRITE_DESCRIPTOR_SET_INLINE_UNIFORM_BLOCK_EXT: Self = StructureType(1_000_138_002); + pub const WRITE_DESCRIPTOR_SET_INLINE_UNIFORM_BLOCK_EXT: Self = Self(1_000_138_002); } #[doc = "Generated from \'VK_EXT_inline_uniform_block\'"] impl StructureType { - pub const DESCRIPTOR_POOL_INLINE_UNIFORM_BLOCK_CREATE_INFO_EXT: Self = - StructureType(1_000_138_003); + pub const DESCRIPTOR_POOL_INLINE_UNIFORM_BLOCK_CREATE_INFO_EXT: Self = Self(1_000_138_003); } impl AmdExtension140Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -11053,31 +11038,31 @@ impl ExtSampleLocationsFn { } #[doc = "Generated from \'VK_EXT_sample_locations\'"] impl ImageCreateFlags { - pub const SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_EXT: Self = ImageCreateFlags(0b1_0000_0000_0000); + pub const SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_EXT: Self = Self(0b1_0000_0000_0000); } #[doc = "Generated from \'VK_EXT_sample_locations\'"] impl StructureType { - pub const SAMPLE_LOCATIONS_INFO_EXT: Self = StructureType(1_000_143_000); + pub const SAMPLE_LOCATIONS_INFO_EXT: Self = Self(1_000_143_000); } #[doc = "Generated from \'VK_EXT_sample_locations\'"] impl StructureType { - pub const RENDER_PASS_SAMPLE_LOCATIONS_BEGIN_INFO_EXT: Self = StructureType(1_000_143_001); + pub const RENDER_PASS_SAMPLE_LOCATIONS_BEGIN_INFO_EXT: Self = Self(1_000_143_001); } #[doc = "Generated from \'VK_EXT_sample_locations\'"] impl StructureType { - pub const PIPELINE_SAMPLE_LOCATIONS_STATE_CREATE_INFO_EXT: Self = StructureType(1_000_143_002); + pub const PIPELINE_SAMPLE_LOCATIONS_STATE_CREATE_INFO_EXT: Self = Self(1_000_143_002); } #[doc = "Generated from \'VK_EXT_sample_locations\'"] impl StructureType { - pub const PHYSICAL_DEVICE_SAMPLE_LOCATIONS_PROPERTIES_EXT: Self = StructureType(1_000_143_003); + pub const PHYSICAL_DEVICE_SAMPLE_LOCATIONS_PROPERTIES_EXT: Self = Self(1_000_143_003); } #[doc = "Generated from \'VK_EXT_sample_locations\'"] impl StructureType { - pub const MULTISAMPLE_PROPERTIES_EXT: Self = StructureType(1_000_143_004); + pub const MULTISAMPLE_PROPERTIES_EXT: Self = Self(1_000_143_004); } #[doc = "Generated from \'VK_EXT_sample_locations\'"] impl DynamicState { - pub const SAMPLE_LOCATIONS_EXT: Self = DynamicState(1_000_143_000); + pub const SAMPLE_LOCATIONS_EXT: Self = Self(1_000_143_000); } impl KhrRelaxedBlockLayoutFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -11334,206 +11319,203 @@ impl ExtBlendOperationAdvancedFn { } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl StructureType { - pub const PHYSICAL_DEVICE_BLEND_OPERATION_ADVANCED_FEATURES_EXT: Self = - StructureType(1_000_148_000); + pub const PHYSICAL_DEVICE_BLEND_OPERATION_ADVANCED_FEATURES_EXT: Self = Self(1_000_148_000); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl StructureType { - pub const PHYSICAL_DEVICE_BLEND_OPERATION_ADVANCED_PROPERTIES_EXT: Self = - StructureType(1_000_148_001); + pub const PHYSICAL_DEVICE_BLEND_OPERATION_ADVANCED_PROPERTIES_EXT: Self = Self(1_000_148_001); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl StructureType { - pub const PIPELINE_COLOR_BLEND_ADVANCED_STATE_CREATE_INFO_EXT: Self = - StructureType(1_000_148_002); + pub const PIPELINE_COLOR_BLEND_ADVANCED_STATE_CREATE_INFO_EXT: Self = Self(1_000_148_002); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const ZERO_EXT: Self = BlendOp(1_000_148_000); + pub const ZERO_EXT: Self = Self(1_000_148_000); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const SRC_EXT: Self = BlendOp(1_000_148_001); + pub const SRC_EXT: Self = Self(1_000_148_001); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const DST_EXT: Self = BlendOp(1_000_148_002); + pub const DST_EXT: Self = Self(1_000_148_002); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const SRC_OVER_EXT: Self = BlendOp(1_000_148_003); + pub const SRC_OVER_EXT: Self = Self(1_000_148_003); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const DST_OVER_EXT: Self = BlendOp(1_000_148_004); + pub const DST_OVER_EXT: Self = Self(1_000_148_004); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const SRC_IN_EXT: Self = BlendOp(1_000_148_005); + pub const SRC_IN_EXT: Self = Self(1_000_148_005); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const DST_IN_EXT: Self = BlendOp(1_000_148_006); + pub const DST_IN_EXT: Self = Self(1_000_148_006); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const SRC_OUT_EXT: Self = BlendOp(1_000_148_007); + pub const SRC_OUT_EXT: Self = Self(1_000_148_007); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const DST_OUT_EXT: Self = BlendOp(1_000_148_008); + pub const DST_OUT_EXT: Self = Self(1_000_148_008); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const SRC_ATOP_EXT: Self = BlendOp(1_000_148_009); + pub const SRC_ATOP_EXT: Self = Self(1_000_148_009); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const DST_ATOP_EXT: Self = BlendOp(1_000_148_010); + pub const DST_ATOP_EXT: Self = Self(1_000_148_010); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const XOR_EXT: Self = BlendOp(1_000_148_011); + pub const XOR_EXT: Self = Self(1_000_148_011); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const MULTIPLY_EXT: Self = BlendOp(1_000_148_012); + pub const MULTIPLY_EXT: Self = Self(1_000_148_012); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const SCREEN_EXT: Self = BlendOp(1_000_148_013); + pub const SCREEN_EXT: Self = Self(1_000_148_013); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const OVERLAY_EXT: Self = BlendOp(1_000_148_014); + pub const OVERLAY_EXT: Self = Self(1_000_148_014); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const DARKEN_EXT: Self = BlendOp(1_000_148_015); + pub const DARKEN_EXT: Self = Self(1_000_148_015); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const LIGHTEN_EXT: Self = BlendOp(1_000_148_016); + pub const LIGHTEN_EXT: Self = Self(1_000_148_016); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const COLORDODGE_EXT: Self = BlendOp(1_000_148_017); + pub const COLORDODGE_EXT: Self = Self(1_000_148_017); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const COLORBURN_EXT: Self = BlendOp(1_000_148_018); + pub const COLORBURN_EXT: Self = Self(1_000_148_018); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const HARDLIGHT_EXT: Self = BlendOp(1_000_148_019); + pub const HARDLIGHT_EXT: Self = Self(1_000_148_019); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const SOFTLIGHT_EXT: Self = BlendOp(1_000_148_020); + pub const SOFTLIGHT_EXT: Self = Self(1_000_148_020); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const DIFFERENCE_EXT: Self = BlendOp(1_000_148_021); + pub const DIFFERENCE_EXT: Self = Self(1_000_148_021); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const EXCLUSION_EXT: Self = BlendOp(1_000_148_022); + pub const EXCLUSION_EXT: Self = Self(1_000_148_022); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const INVERT_EXT: Self = BlendOp(1_000_148_023); + pub const INVERT_EXT: Self = Self(1_000_148_023); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const INVERT_RGB_EXT: Self = BlendOp(1_000_148_024); + pub const INVERT_RGB_EXT: Self = Self(1_000_148_024); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const LINEARDODGE_EXT: Self = BlendOp(1_000_148_025); + pub const LINEARDODGE_EXT: Self = Self(1_000_148_025); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const LINEARBURN_EXT: Self = BlendOp(1_000_148_026); + pub const LINEARBURN_EXT: Self = Self(1_000_148_026); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const VIVIDLIGHT_EXT: Self = BlendOp(1_000_148_027); + pub const VIVIDLIGHT_EXT: Self = Self(1_000_148_027); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const LINEARLIGHT_EXT: Self = BlendOp(1_000_148_028); + pub const LINEARLIGHT_EXT: Self = Self(1_000_148_028); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const PINLIGHT_EXT: Self = BlendOp(1_000_148_029); + pub const PINLIGHT_EXT: Self = Self(1_000_148_029); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const HARDMIX_EXT: Self = BlendOp(1_000_148_030); + pub const HARDMIX_EXT: Self = Self(1_000_148_030); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const HSL_HUE_EXT: Self = BlendOp(1_000_148_031); + pub const HSL_HUE_EXT: Self = Self(1_000_148_031); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const HSL_SATURATION_EXT: Self = BlendOp(1_000_148_032); + pub const HSL_SATURATION_EXT: Self = Self(1_000_148_032); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const HSL_COLOR_EXT: Self = BlendOp(1_000_148_033); + pub const HSL_COLOR_EXT: Self = Self(1_000_148_033); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const HSL_LUMINOSITY_EXT: Self = BlendOp(1_000_148_034); + pub const HSL_LUMINOSITY_EXT: Self = Self(1_000_148_034); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const PLUS_EXT: Self = BlendOp(1_000_148_035); + pub const PLUS_EXT: Self = Self(1_000_148_035); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const PLUS_CLAMPED_EXT: Self = BlendOp(1_000_148_036); + pub const PLUS_CLAMPED_EXT: Self = Self(1_000_148_036); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const PLUS_CLAMPED_ALPHA_EXT: Self = BlendOp(1_000_148_037); + pub const PLUS_CLAMPED_ALPHA_EXT: Self = Self(1_000_148_037); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const PLUS_DARKER_EXT: Self = BlendOp(1_000_148_038); + pub const PLUS_DARKER_EXT: Self = Self(1_000_148_038); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const MINUS_EXT: Self = BlendOp(1_000_148_039); + pub const MINUS_EXT: Self = Self(1_000_148_039); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const MINUS_CLAMPED_EXT: Self = BlendOp(1_000_148_040); + pub const MINUS_CLAMPED_EXT: Self = Self(1_000_148_040); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const CONTRAST_EXT: Self = BlendOp(1_000_148_041); + pub const CONTRAST_EXT: Self = Self(1_000_148_041); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const INVERT_OVG_EXT: Self = BlendOp(1_000_148_042); + pub const INVERT_OVG_EXT: Self = Self(1_000_148_042); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const RED_EXT: Self = BlendOp(1_000_148_043); + pub const RED_EXT: Self = Self(1_000_148_043); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const GREEN_EXT: Self = BlendOp(1_000_148_044); + pub const GREEN_EXT: Self = Self(1_000_148_044); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl BlendOp { - pub const BLUE_EXT: Self = BlendOp(1_000_148_045); + pub const BLUE_EXT: Self = Self(1_000_148_045); } #[doc = "Generated from \'VK_EXT_blend_operation_advanced\'"] impl AccessFlags { - pub const COLOR_ATTACHMENT_READ_NONCOHERENT_EXT: Self = AccessFlags(0b1000_0000_0000_0000_0000); + pub const COLOR_ATTACHMENT_READ_NONCOHERENT_EXT: Self = Self(0b1000_0000_0000_0000_0000); } impl NvFragmentCoverageToColorFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -11559,7 +11541,7 @@ impl NvFragmentCoverageToColorFn { } #[doc = "Generated from \'VK_NV_fragment_coverage_to_color\'"] impl StructureType { - pub const PIPELINE_COVERAGE_TO_COLOR_STATE_CREATE_INFO_NV: Self = StructureType(1_000_149_000); + pub const PIPELINE_COVERAGE_TO_COLOR_STATE_CREATE_INFO_NV: Self = Self(1_000_149_000); } impl KhrRayTracingFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -12655,205 +12637,196 @@ impl KhrRayTracingFn { } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl StructureType { - pub const BIND_ACCELERATION_STRUCTURE_MEMORY_INFO_KHR: Self = StructureType(1_000_165_006); + pub const BIND_ACCELERATION_STRUCTURE_MEMORY_INFO_KHR: Self = Self(1_000_165_006); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl StructureType { - pub const WRITE_DESCRIPTOR_SET_ACCELERATION_STRUCTURE_KHR: Self = StructureType(1_000_165_007); + pub const WRITE_DESCRIPTOR_SET_ACCELERATION_STRUCTURE_KHR: Self = Self(1_000_165_007); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl StructureType { - pub const ACCELERATION_STRUCTURE_BUILD_GEOMETRY_INFO_KHR: Self = StructureType(1_000_150_000); + pub const ACCELERATION_STRUCTURE_BUILD_GEOMETRY_INFO_KHR: Self = Self(1_000_150_000); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl StructureType { - pub const ACCELERATION_STRUCTURE_CREATE_GEOMETRY_TYPE_INFO_KHR: Self = - StructureType(1_000_150_001); + pub const ACCELERATION_STRUCTURE_CREATE_GEOMETRY_TYPE_INFO_KHR: Self = Self(1_000_150_001); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl StructureType { - pub const ACCELERATION_STRUCTURE_DEVICE_ADDRESS_INFO_KHR: Self = StructureType(1_000_150_002); + pub const ACCELERATION_STRUCTURE_DEVICE_ADDRESS_INFO_KHR: Self = Self(1_000_150_002); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl StructureType { - pub const ACCELERATION_STRUCTURE_GEOMETRY_AABBS_DATA_KHR: Self = StructureType(1_000_150_003); + pub const ACCELERATION_STRUCTURE_GEOMETRY_AABBS_DATA_KHR: Self = Self(1_000_150_003); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl StructureType { - pub const ACCELERATION_STRUCTURE_GEOMETRY_INSTANCES_DATA_KHR: Self = - StructureType(1_000_150_004); + pub const ACCELERATION_STRUCTURE_GEOMETRY_INSTANCES_DATA_KHR: Self = Self(1_000_150_004); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl StructureType { - pub const ACCELERATION_STRUCTURE_GEOMETRY_TRIANGLES_DATA_KHR: Self = - StructureType(1_000_150_005); + pub const ACCELERATION_STRUCTURE_GEOMETRY_TRIANGLES_DATA_KHR: Self = Self(1_000_150_005); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl StructureType { - pub const ACCELERATION_STRUCTURE_GEOMETRY_KHR: Self = StructureType(1_000_150_006); + pub const ACCELERATION_STRUCTURE_GEOMETRY_KHR: Self = Self(1_000_150_006); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl StructureType { - pub const ACCELERATION_STRUCTURE_INFO_KHR: Self = StructureType(1_000_150_007); + pub const ACCELERATION_STRUCTURE_INFO_KHR: Self = Self(1_000_150_007); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl StructureType { - pub const ACCELERATION_STRUCTURE_MEMORY_REQUIREMENTS_INFO_KHR: Self = - StructureType(1_000_150_008); + pub const ACCELERATION_STRUCTURE_MEMORY_REQUIREMENTS_INFO_KHR: Self = Self(1_000_150_008); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl StructureType { - pub const ACCELERATION_STRUCTURE_VERSION_KHR: Self = StructureType(1_000_150_009); + pub const ACCELERATION_STRUCTURE_VERSION_KHR: Self = Self(1_000_150_009); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl StructureType { - pub const COPY_ACCELERATION_STRUCTURE_INFO_KHR: Self = StructureType(1_000_150_010); + pub const COPY_ACCELERATION_STRUCTURE_INFO_KHR: Self = Self(1_000_150_010); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl StructureType { - pub const COPY_ACCELERATION_STRUCTURE_TO_MEMORY_INFO_KHR: Self = StructureType(1_000_150_011); + pub const COPY_ACCELERATION_STRUCTURE_TO_MEMORY_INFO_KHR: Self = Self(1_000_150_011); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl StructureType { - pub const COPY_MEMORY_TO_ACCELERATION_STRUCTURE_INFO_KHR: Self = StructureType(1_000_150_012); + pub const COPY_MEMORY_TO_ACCELERATION_STRUCTURE_INFO_KHR: Self = Self(1_000_150_012); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl StructureType { - pub const PHYSICAL_DEVICE_RAY_TRACING_FEATURES_KHR: Self = StructureType(1_000_150_013); + pub const PHYSICAL_DEVICE_RAY_TRACING_FEATURES_KHR: Self = Self(1_000_150_013); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl StructureType { - pub const PHYSICAL_DEVICE_RAY_TRACING_PROPERTIES_KHR: Self = StructureType(1_000_150_014); + pub const PHYSICAL_DEVICE_RAY_TRACING_PROPERTIES_KHR: Self = Self(1_000_150_014); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl StructureType { - pub const RAY_TRACING_PIPELINE_CREATE_INFO_KHR: Self = StructureType(1_000_150_015); + pub const RAY_TRACING_PIPELINE_CREATE_INFO_KHR: Self = Self(1_000_150_015); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl StructureType { - pub const RAY_TRACING_SHADER_GROUP_CREATE_INFO_KHR: Self = StructureType(1_000_150_016); + pub const RAY_TRACING_SHADER_GROUP_CREATE_INFO_KHR: Self = Self(1_000_150_016); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl StructureType { - pub const ACCELERATION_STRUCTURE_CREATE_INFO_KHR: Self = StructureType(1_000_150_017); + pub const ACCELERATION_STRUCTURE_CREATE_INFO_KHR: Self = Self(1_000_150_017); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl StructureType { - pub const RAY_TRACING_PIPELINE_INTERFACE_CREATE_INFO_KHR: Self = StructureType(1_000_150_018); + pub const RAY_TRACING_PIPELINE_INTERFACE_CREATE_INFO_KHR: Self = Self(1_000_150_018); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl ShaderStageFlags { - pub const RAYGEN_KHR: Self = ShaderStageFlags(0b1_0000_0000); + pub const RAYGEN_KHR: Self = Self(0b1_0000_0000); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl ShaderStageFlags { - pub const ANY_HIT_KHR: Self = ShaderStageFlags(0b10_0000_0000); + pub const ANY_HIT_KHR: Self = Self(0b10_0000_0000); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl ShaderStageFlags { - pub const CLOSEST_HIT_KHR: Self = ShaderStageFlags(0b100_0000_0000); + pub const CLOSEST_HIT_KHR: Self = Self(0b100_0000_0000); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl ShaderStageFlags { - pub const MISS_KHR: Self = ShaderStageFlags(0b1000_0000_0000); + pub const MISS_KHR: Self = Self(0b1000_0000_0000); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl ShaderStageFlags { - pub const INTERSECTION_KHR: Self = ShaderStageFlags(0b1_0000_0000_0000); + pub const INTERSECTION_KHR: Self = Self(0b1_0000_0000_0000); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl ShaderStageFlags { - pub const CALLABLE_KHR: Self = ShaderStageFlags(0b10_0000_0000_0000); + pub const CALLABLE_KHR: Self = Self(0b10_0000_0000_0000); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl PipelineStageFlags { - pub const RAY_TRACING_SHADER_KHR: Self = PipelineStageFlags(0b10_0000_0000_0000_0000_0000); + pub const RAY_TRACING_SHADER_KHR: Self = Self(0b10_0000_0000_0000_0000_0000); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl PipelineStageFlags { - pub const ACCELERATION_STRUCTURE_BUILD_KHR: Self = - PipelineStageFlags(0b10_0000_0000_0000_0000_0000_0000); + pub const ACCELERATION_STRUCTURE_BUILD_KHR: Self = Self(0b10_0000_0000_0000_0000_0000_0000); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl BufferUsageFlags { - pub const RAY_TRACING_KHR: Self = BufferUsageFlags(0b100_0000_0000); + pub const RAY_TRACING_KHR: Self = Self(0b100_0000_0000); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl PipelineBindPoint { - pub const RAY_TRACING_KHR: Self = PipelineBindPoint(1_000_165_000); + pub const RAY_TRACING_KHR: Self = Self(1_000_165_000); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl DescriptorType { - pub const ACCELERATION_STRUCTURE_KHR: Self = DescriptorType(1_000_165_000); + pub const ACCELERATION_STRUCTURE_KHR: Self = Self(1_000_165_000); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl AccessFlags { - pub const ACCELERATION_STRUCTURE_READ_KHR: Self = AccessFlags(0b10_0000_0000_0000_0000_0000); + pub const ACCELERATION_STRUCTURE_READ_KHR: Self = Self(0b10_0000_0000_0000_0000_0000); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl AccessFlags { - pub const ACCELERATION_STRUCTURE_WRITE_KHR: Self = AccessFlags(0b100_0000_0000_0000_0000_0000); + pub const ACCELERATION_STRUCTURE_WRITE_KHR: Self = Self(0b100_0000_0000_0000_0000_0000); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl QueryType { - pub const ACCELERATION_STRUCTURE_COMPACTED_SIZE_KHR: Self = QueryType(1_000_165_000); + pub const ACCELERATION_STRUCTURE_COMPACTED_SIZE_KHR: Self = Self(1_000_165_000); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl QueryType { - pub const ACCELERATION_STRUCTURE_SERIALIZATION_SIZE_KHR: Self = QueryType(1_000_150_000); + pub const ACCELERATION_STRUCTURE_SERIALIZATION_SIZE_KHR: Self = Self(1_000_150_000); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl ObjectType { - pub const ACCELERATION_STRUCTURE_KHR: Self = ObjectType(1_000_165_000); + pub const ACCELERATION_STRUCTURE_KHR: Self = Self(1_000_165_000); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl DebugReportObjectTypeEXT { - pub const ACCELERATION_STRUCTURE_KHR: Self = DebugReportObjectTypeEXT(1_000_165_000); + pub const ACCELERATION_STRUCTURE_KHR: Self = Self(1_000_165_000); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl IndexType { - pub const NONE_KHR: Self = IndexType(1_000_165_000); + pub const NONE_KHR: Self = Self(1_000_165_000); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl GeometryTypeKHR { - pub const INSTANCES: Self = GeometryTypeKHR(1_000_150_000); + pub const INSTANCES: Self = Self(1_000_150_000); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl Result { - pub const ERROR_INCOMPATIBLE_VERSION_KHR: Self = Result(-1_000_150_000); + pub const ERROR_INCOMPATIBLE_VERSION_KHR: Self = Self(-1_000_150_000); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl FormatFeatureFlags { pub const ACCELERATION_STRUCTURE_VERTEX_BUFFER_KHR: Self = - FormatFeatureFlags(0b10_0000_0000_0000_0000_0000_0000_0000); + Self(0b10_0000_0000_0000_0000_0000_0000_0000); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl PipelineCreateFlags { - pub const RAY_TRACING_NO_NULL_ANY_HIT_SHADERS_KHR: Self = - PipelineCreateFlags(0b100_0000_0000_0000); + pub const RAY_TRACING_NO_NULL_ANY_HIT_SHADERS_KHR: Self = Self(0b100_0000_0000_0000); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl PipelineCreateFlags { - pub const RAY_TRACING_NO_NULL_CLOSEST_HIT_SHADERS_KHR: Self = - PipelineCreateFlags(0b1000_0000_0000_0000); + pub const RAY_TRACING_NO_NULL_CLOSEST_HIT_SHADERS_KHR: Self = Self(0b1000_0000_0000_0000); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl PipelineCreateFlags { - pub const RAY_TRACING_NO_NULL_MISS_SHADERS_KHR: Self = - PipelineCreateFlags(0b1_0000_0000_0000_0000); + pub const RAY_TRACING_NO_NULL_MISS_SHADERS_KHR: Self = Self(0b1_0000_0000_0000_0000); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl PipelineCreateFlags { - pub const RAY_TRACING_NO_NULL_INTERSECTION_SHADERS_KHR: Self = - PipelineCreateFlags(0b10_0000_0000_0000_0000); + pub const RAY_TRACING_NO_NULL_INTERSECTION_SHADERS_KHR: Self = Self(0b10_0000_0000_0000_0000); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl PipelineCreateFlags { - pub const RAY_TRACING_SKIP_TRIANGLES_KHR: Self = PipelineCreateFlags(0b1_0000_0000_0000); + pub const RAY_TRACING_SKIP_TRIANGLES_KHR: Self = Self(0b1_0000_0000_0000); } #[doc = "Generated from \'VK_KHR_ray_tracing\'"] impl PipelineCreateFlags { - pub const RAY_TRACING_SKIP_AABBS_KHR: Self = PipelineCreateFlags(0b10_0000_0000_0000); + pub const RAY_TRACING_SKIP_AABBS_KHR: Self = Self(0b10_0000_0000_0000); } impl NvExtension152Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -12901,8 +12874,7 @@ impl NvFramebufferMixedSamplesFn { } #[doc = "Generated from \'VK_NV_framebuffer_mixed_samples\'"] impl StructureType { - pub const PIPELINE_COVERAGE_MODULATION_STATE_CREATE_INFO_NV: Self = - StructureType(1_000_152_000); + pub const PIPELINE_COVERAGE_MODULATION_STATE_CREATE_INFO_NV: Self = Self(1_000_152_000); } impl NvFillRectangleFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -12928,7 +12900,7 @@ impl NvFillRectangleFn { } #[doc = "Generated from \'VK_NV_fill_rectangle\'"] impl PolygonMode { - pub const FILL_RECTANGLE_NV: Self = PolygonMode(1_000_153_000); + pub const FILL_RECTANGLE_NV: Self = Self(1_000_153_000); } impl NvShaderSmBuiltinsFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -12954,11 +12926,11 @@ impl NvShaderSmBuiltinsFn { } #[doc = "Generated from \'VK_NV_shader_sm_builtins\'"] impl StructureType { - pub const PHYSICAL_DEVICE_SHADER_SM_BUILTINS_FEATURES_NV: Self = StructureType(1_000_154_000); + pub const PHYSICAL_DEVICE_SHADER_SM_BUILTINS_FEATURES_NV: Self = Self(1_000_154_000); } #[doc = "Generated from \'VK_NV_shader_sm_builtins\'"] impl StructureType { - pub const PHYSICAL_DEVICE_SHADER_SM_BUILTINS_PROPERTIES_NV: Self = StructureType(1_000_154_001); + pub const PHYSICAL_DEVICE_SHADER_SM_BUILTINS_PROPERTIES_NV: Self = Self(1_000_154_001); } impl ExtPostDepthCoverageFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -13560,53 +13532,51 @@ impl ExtImageDrmFormatModifierFn { } #[doc = "Generated from \'VK_EXT_image_drm_format_modifier\'"] impl Result { - pub const ERROR_INVALID_DRM_FORMAT_MODIFIER_PLANE_LAYOUT_EXT: Self = Result(-1_000_158_000); + pub const ERROR_INVALID_DRM_FORMAT_MODIFIER_PLANE_LAYOUT_EXT: Self = Self(-1_000_158_000); } #[doc = "Generated from \'VK_EXT_image_drm_format_modifier\'"] impl StructureType { - pub const DRM_FORMAT_MODIFIER_PROPERTIES_LIST_EXT: Self = StructureType(1_000_158_000); + pub const DRM_FORMAT_MODIFIER_PROPERTIES_LIST_EXT: Self = Self(1_000_158_000); } #[doc = "Generated from \'VK_EXT_image_drm_format_modifier\'"] impl StructureType { - pub const DRM_FORMAT_MODIFIER_PROPERTIES_EXT: Self = StructureType(1_000_158_001); + pub const DRM_FORMAT_MODIFIER_PROPERTIES_EXT: Self = Self(1_000_158_001); } #[doc = "Generated from \'VK_EXT_image_drm_format_modifier\'"] impl StructureType { - pub const PHYSICAL_DEVICE_IMAGE_DRM_FORMAT_MODIFIER_INFO_EXT: Self = - StructureType(1_000_158_002); + pub const PHYSICAL_DEVICE_IMAGE_DRM_FORMAT_MODIFIER_INFO_EXT: Self = Self(1_000_158_002); } #[doc = "Generated from \'VK_EXT_image_drm_format_modifier\'"] impl StructureType { - pub const IMAGE_DRM_FORMAT_MODIFIER_LIST_CREATE_INFO_EXT: Self = StructureType(1_000_158_003); + pub const IMAGE_DRM_FORMAT_MODIFIER_LIST_CREATE_INFO_EXT: Self = Self(1_000_158_003); } #[doc = "Generated from \'VK_EXT_image_drm_format_modifier\'"] impl StructureType { - pub const IMAGE_DRM_FORMAT_MODIFIER_EXPLICIT_CREATE_INFO_EXT: Self = - StructureType(1_000_158_004); + pub const IMAGE_DRM_FORMAT_MODIFIER_EXPLICIT_CREATE_INFO_EXT: Self = Self(1_000_158_004); } #[doc = "Generated from \'VK_EXT_image_drm_format_modifier\'"] impl StructureType { - pub const IMAGE_DRM_FORMAT_MODIFIER_PROPERTIES_EXT: Self = StructureType(1_000_158_005); + pub const IMAGE_DRM_FORMAT_MODIFIER_PROPERTIES_EXT: Self = Self(1_000_158_005); } #[doc = "Generated from \'VK_EXT_image_drm_format_modifier\'"] impl ImageTiling { - pub const DRM_FORMAT_MODIFIER_EXT: Self = ImageTiling(1_000_158_000); + pub const DRM_FORMAT_MODIFIER_EXT: Self = Self(1_000_158_000); } #[doc = "Generated from \'VK_EXT_image_drm_format_modifier\'"] impl ImageAspectFlags { - pub const MEMORY_PLANE_0_EXT: Self = ImageAspectFlags(0b1000_0000); + pub const MEMORY_PLANE_0_EXT: Self = Self(0b1000_0000); } #[doc = "Generated from \'VK_EXT_image_drm_format_modifier\'"] impl ImageAspectFlags { - pub const MEMORY_PLANE_1_EXT: Self = ImageAspectFlags(0b1_0000_0000); + pub const MEMORY_PLANE_1_EXT: Self = Self(0b1_0000_0000); } #[doc = "Generated from \'VK_EXT_image_drm_format_modifier\'"] impl ImageAspectFlags { - pub const MEMORY_PLANE_2_EXT: Self = ImageAspectFlags(0b10_0000_0000); + pub const MEMORY_PLANE_2_EXT: Self = Self(0b10_0000_0000); } #[doc = "Generated from \'VK_EXT_image_drm_format_modifier\'"] impl ImageAspectFlags { - pub const MEMORY_PLANE_3_EXT: Self = ImageAspectFlags(0b100_0000_0000); + pub const MEMORY_PLANE_3_EXT: Self = Self(0b100_0000_0000); } impl ExtExtension160Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -13833,15 +13803,15 @@ impl ExtValidationCacheFn { } #[doc = "Generated from \'VK_EXT_validation_cache\'"] impl StructureType { - pub const VALIDATION_CACHE_CREATE_INFO_EXT: Self = StructureType(1_000_160_000); + pub const VALIDATION_CACHE_CREATE_INFO_EXT: Self = Self(1_000_160_000); } #[doc = "Generated from \'VK_EXT_validation_cache\'"] impl StructureType { - pub const SHADER_MODULE_VALIDATION_CACHE_CREATE_INFO_EXT: Self = StructureType(1_000_160_001); + pub const SHADER_MODULE_VALIDATION_CACHE_CREATE_INFO_EXT: Self = Self(1_000_160_001); } #[doc = "Generated from \'VK_EXT_validation_cache\'"] impl ObjectType { - pub const VALIDATION_CACHE_EXT: Self = ObjectType(1_000_160_000); + pub const VALIDATION_CACHE_EXT: Self = Self(1_000_160_000); } impl ExtDescriptorIndexingFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -14133,45 +14103,44 @@ impl NvShadingRateImageFn { } #[doc = "Generated from \'VK_NV_shading_rate_image\'"] impl StructureType { - pub const PIPELINE_VIEWPORT_SHADING_RATE_IMAGE_STATE_CREATE_INFO_NV: Self = - StructureType(1_000_164_000); + pub const PIPELINE_VIEWPORT_SHADING_RATE_IMAGE_STATE_CREATE_INFO_NV: Self = Self(1_000_164_000); } #[doc = "Generated from \'VK_NV_shading_rate_image\'"] impl StructureType { - pub const PHYSICAL_DEVICE_SHADING_RATE_IMAGE_FEATURES_NV: Self = StructureType(1_000_164_001); + pub const PHYSICAL_DEVICE_SHADING_RATE_IMAGE_FEATURES_NV: Self = Self(1_000_164_001); } #[doc = "Generated from \'VK_NV_shading_rate_image\'"] impl StructureType { - pub const PHYSICAL_DEVICE_SHADING_RATE_IMAGE_PROPERTIES_NV: Self = StructureType(1_000_164_002); + pub const PHYSICAL_DEVICE_SHADING_RATE_IMAGE_PROPERTIES_NV: Self = Self(1_000_164_002); } #[doc = "Generated from \'VK_NV_shading_rate_image\'"] impl ImageLayout { - pub const SHADING_RATE_OPTIMAL_NV: Self = ImageLayout(1_000_164_003); + pub const SHADING_RATE_OPTIMAL_NV: Self = Self(1_000_164_003); } #[doc = "Generated from \'VK_NV_shading_rate_image\'"] impl DynamicState { - pub const VIEWPORT_SHADING_RATE_PALETTE_NV: Self = DynamicState(1_000_164_004); + pub const VIEWPORT_SHADING_RATE_PALETTE_NV: Self = Self(1_000_164_004); } #[doc = "Generated from \'VK_NV_shading_rate_image\'"] impl AccessFlags { - pub const SHADING_RATE_IMAGE_READ_NV: Self = AccessFlags(0b1000_0000_0000_0000_0000_0000); + pub const SHADING_RATE_IMAGE_READ_NV: Self = Self(0b1000_0000_0000_0000_0000_0000); } #[doc = "Generated from \'VK_NV_shading_rate_image\'"] impl ImageUsageFlags { - pub const SHADING_RATE_IMAGE_NV: Self = ImageUsageFlags(0b1_0000_0000); + pub const SHADING_RATE_IMAGE_NV: Self = Self(0b1_0000_0000); } #[doc = "Generated from \'VK_NV_shading_rate_image\'"] impl PipelineStageFlags { - pub const SHADING_RATE_IMAGE_NV: Self = PipelineStageFlags(0b100_0000_0000_0000_0000_0000); + pub const SHADING_RATE_IMAGE_NV: Self = Self(0b100_0000_0000_0000_0000_0000); } #[doc = "Generated from \'VK_NV_shading_rate_image\'"] impl StructureType { pub const PIPELINE_VIEWPORT_COARSE_SAMPLE_ORDER_STATE_CREATE_INFO_NV: Self = - StructureType(1_000_164_005); + Self(1_000_164_005); } #[doc = "Generated from \'VK_NV_shading_rate_image\'"] impl DynamicState { - pub const VIEWPORT_COARSE_SAMPLE_ORDER_NV: Self = DynamicState(1_000_164_006); + pub const VIEWPORT_COARSE_SAMPLE_ORDER_NV: Self = Self(1_000_164_006); } impl NvRayTracingFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -14835,23 +14804,23 @@ impl NvRayTracingFn { } #[doc = "Generated from \'VK_NV_ray_tracing\'"] impl StructureType { - pub const RAY_TRACING_PIPELINE_CREATE_INFO_NV: Self = StructureType(1_000_165_000); + pub const RAY_TRACING_PIPELINE_CREATE_INFO_NV: Self = Self(1_000_165_000); } #[doc = "Generated from \'VK_NV_ray_tracing\'"] impl StructureType { - pub const ACCELERATION_STRUCTURE_CREATE_INFO_NV: Self = StructureType(1_000_165_001); + pub const ACCELERATION_STRUCTURE_CREATE_INFO_NV: Self = Self(1_000_165_001); } #[doc = "Generated from \'VK_NV_ray_tracing\'"] impl StructureType { - pub const GEOMETRY_NV: Self = StructureType(1_000_165_003); + pub const GEOMETRY_NV: Self = Self(1_000_165_003); } #[doc = "Generated from \'VK_NV_ray_tracing\'"] impl StructureType { - pub const GEOMETRY_TRIANGLES_NV: Self = StructureType(1_000_165_004); + pub const GEOMETRY_TRIANGLES_NV: Self = Self(1_000_165_004); } #[doc = "Generated from \'VK_NV_ray_tracing\'"] impl StructureType { - pub const GEOMETRY_AABB_NV: Self = StructureType(1_000_165_005); + pub const GEOMETRY_AABB_NV: Self = Self(1_000_165_005); } #[doc = "Generated from \'VK_NV_ray_tracing\'"] impl StructureType { @@ -14865,20 +14834,19 @@ impl StructureType { } #[doc = "Generated from \'VK_NV_ray_tracing\'"] impl StructureType { - pub const ACCELERATION_STRUCTURE_MEMORY_REQUIREMENTS_INFO_NV: Self = - StructureType(1_000_165_008); + pub const ACCELERATION_STRUCTURE_MEMORY_REQUIREMENTS_INFO_NV: Self = Self(1_000_165_008); } #[doc = "Generated from \'VK_NV_ray_tracing\'"] impl StructureType { - pub const PHYSICAL_DEVICE_RAY_TRACING_PROPERTIES_NV: Self = StructureType(1_000_165_009); + pub const PHYSICAL_DEVICE_RAY_TRACING_PROPERTIES_NV: Self = Self(1_000_165_009); } #[doc = "Generated from \'VK_NV_ray_tracing\'"] impl StructureType { - pub const RAY_TRACING_SHADER_GROUP_CREATE_INFO_NV: Self = StructureType(1_000_165_011); + pub const RAY_TRACING_SHADER_GROUP_CREATE_INFO_NV: Self = Self(1_000_165_011); } #[doc = "Generated from \'VK_NV_ray_tracing\'"] impl StructureType { - pub const ACCELERATION_STRUCTURE_INFO_NV: Self = StructureType(1_000_165_012); + pub const ACCELERATION_STRUCTURE_INFO_NV: Self = Self(1_000_165_012); } #[doc = "Generated from \'VK_NV_ray_tracing\'"] impl ShaderStageFlags { @@ -14940,7 +14908,7 @@ impl QueryType { } #[doc = "Generated from \'VK_NV_ray_tracing\'"] impl PipelineCreateFlags { - pub const DEFER_COMPILE_NV: Self = PipelineCreateFlags(0b10_0000); + pub const DEFER_COMPILE_NV: Self = Self(0b10_0000); } #[doc = "Generated from \'VK_NV_ray_tracing\'"] impl ObjectType { @@ -15076,13 +15044,12 @@ impl NvRepresentativeFragmentTestFn { } #[doc = "Generated from \'VK_NV_representative_fragment_test\'"] impl StructureType { - pub const PHYSICAL_DEVICE_REPRESENTATIVE_FRAGMENT_TEST_FEATURES_NV: Self = - StructureType(1_000_166_000); + pub const PHYSICAL_DEVICE_REPRESENTATIVE_FRAGMENT_TEST_FEATURES_NV: Self = Self(1_000_166_000); } #[doc = "Generated from \'VK_NV_representative_fragment_test\'"] impl StructureType { pub const PIPELINE_REPRESENTATIVE_FRAGMENT_TEST_STATE_CREATE_INFO_NV: Self = - StructureType(1_000_166_001); + Self(1_000_166_001); } impl NvExtension168Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -15350,12 +15317,11 @@ impl FormatFeatureFlags { } #[doc = "Generated from \'VK_EXT_filter_cubic\'"] impl StructureType { - pub const PHYSICAL_DEVICE_IMAGE_VIEW_IMAGE_FORMAT_INFO_EXT: Self = StructureType(1_000_170_000); + pub const PHYSICAL_DEVICE_IMAGE_VIEW_IMAGE_FORMAT_INFO_EXT: Self = Self(1_000_170_000); } #[doc = "Generated from \'VK_EXT_filter_cubic\'"] impl StructureType { - pub const FILTER_CUBIC_IMAGE_VIEW_IMAGE_FORMAT_PROPERTIES_EXT: Self = - StructureType(1_000_170_001); + pub const FILTER_CUBIC_IMAGE_VIEW_IMAGE_FORMAT_PROPERTIES_EXT: Self = Self(1_000_170_001); } impl QcomExtension172Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -15381,11 +15347,11 @@ impl QcomExtension172Fn { } #[doc = "Generated from \'VK_QCOM_extension_172\'"] impl SubpassDescriptionFlags { - pub const RESERVED_2_QCOM: Self = SubpassDescriptionFlags(0b100); + pub const RESERVED_2_QCOM: Self = Self(0b100); } #[doc = "Generated from \'VK_QCOM_extension_172\'"] impl SubpassDescriptionFlags { - pub const RESERVED_3_QCOM: Self = SubpassDescriptionFlags(0b1000); + pub const RESERVED_3_QCOM: Self = Self(0b1000); } impl QcomExtension173Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -15411,15 +15377,15 @@ impl QcomExtension173Fn { } #[doc = "Generated from \'VK_QCOM_extension_173\'"] impl BufferUsageFlags { - pub const RESERVED_18_QCOM: Self = BufferUsageFlags(0b100_0000_0000_0000_0000); + pub const RESERVED_18_QCOM: Self = Self(0b100_0000_0000_0000_0000); } #[doc = "Generated from \'VK_QCOM_extension_173\'"] impl ImageUsageFlags { - pub const RESERVED_16_QCOM: Self = ImageUsageFlags(0b1_0000_0000_0000_0000); + pub const RESERVED_16_QCOM: Self = Self(0b1_0000_0000_0000_0000); } #[doc = "Generated from \'VK_QCOM_extension_173\'"] impl ImageUsageFlags { - pub const RESERVED_17_QCOM: Self = ImageUsageFlags(0b10_0000_0000_0000_0000); + pub const RESERVED_17_QCOM: Self = Self(0b10_0000_0000_0000_0000); } impl QcomExtension174Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -15467,11 +15433,11 @@ impl ExtGlobalPriorityFn { } #[doc = "Generated from \'VK_EXT_global_priority\'"] impl StructureType { - pub const DEVICE_QUEUE_GLOBAL_PRIORITY_CREATE_INFO_EXT: Self = StructureType(1_000_174_000); + pub const DEVICE_QUEUE_GLOBAL_PRIORITY_CREATE_INFO_EXT: Self = Self(1_000_174_000); } #[doc = "Generated from \'VK_EXT_global_priority\'"] impl Result { - pub const ERROR_NOT_PERMITTED_EXT: Self = Result(-1_000_174_001); + pub const ERROR_NOT_PERMITTED_EXT: Self = Self(-1_000_174_001); } impl KhrShaderSubgroupExtendedTypesFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -15626,26 +15592,23 @@ impl ExtExternalMemoryHostFn { } #[doc = "Generated from \'VK_EXT_external_memory_host\'"] impl StructureType { - pub const IMPORT_MEMORY_HOST_POINTER_INFO_EXT: Self = StructureType(1_000_178_000); + pub const IMPORT_MEMORY_HOST_POINTER_INFO_EXT: Self = Self(1_000_178_000); } #[doc = "Generated from \'VK_EXT_external_memory_host\'"] impl StructureType { - pub const MEMORY_HOST_POINTER_PROPERTIES_EXT: Self = StructureType(1_000_178_001); + pub const MEMORY_HOST_POINTER_PROPERTIES_EXT: Self = Self(1_000_178_001); } #[doc = "Generated from \'VK_EXT_external_memory_host\'"] impl StructureType { - pub const PHYSICAL_DEVICE_EXTERNAL_MEMORY_HOST_PROPERTIES_EXT: Self = - StructureType(1_000_178_002); + pub const PHYSICAL_DEVICE_EXTERNAL_MEMORY_HOST_PROPERTIES_EXT: Self = Self(1_000_178_002); } #[doc = "Generated from \'VK_EXT_external_memory_host\'"] impl ExternalMemoryHandleTypeFlags { - pub const EXTERNAL_MEMORY_HANDLE_TYPE_HOST_ALLOCATION: Self = - ExternalMemoryHandleTypeFlags(0b1000_0000); + pub const EXTERNAL_MEMORY_HANDLE_TYPE_HOST_ALLOCATION: Self = Self(0b1000_0000); } #[doc = "Generated from \'VK_EXT_external_memory_host\'"] impl ExternalMemoryHandleTypeFlags { - pub const EXTERNAL_MEMORY_HANDLE_TYPE_HOST_MAPPED_FOREIGN_MEMORY: Self = - ExternalMemoryHandleTypeFlags(0b1_0000_0000); + pub const EXTERNAL_MEMORY_HANDLE_TYPE_HOST_MAPPED_FOREIGN_MEMORY: Self = Self(0b1_0000_0000); } impl AmdBufferMarkerFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -15778,7 +15741,7 @@ impl KhrShaderClockFn { } #[doc = "Generated from \'VK_KHR_shader_clock\'"] impl StructureType { - pub const PHYSICAL_DEVICE_SHADER_CLOCK_FEATURES_KHR: Self = StructureType(1_000_181_000); + pub const PHYSICAL_DEVICE_SHADER_CLOCK_FEATURES_KHR: Self = Self(1_000_181_000); } impl AmdExtension183Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -15826,7 +15789,7 @@ impl AmdPipelineCompilerControlFn { } #[doc = "Generated from \'VK_AMD_pipeline_compiler_control\'"] impl StructureType { - pub const PIPELINE_COMPILER_CONTROL_CREATE_INFO_AMD: Self = StructureType(1_000_183_000); + pub const PIPELINE_COMPILER_CONTROL_CREATE_INFO_AMD: Self = Self(1_000_183_000); } impl ExtCalibratedTimestampsFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -15956,7 +15919,7 @@ impl ExtCalibratedTimestampsFn { } #[doc = "Generated from \'VK_EXT_calibrated_timestamps\'"] impl StructureType { - pub const CALIBRATED_TIMESTAMP_INFO_EXT: Self = StructureType(1_000_184_000); + pub const CALIBRATED_TIMESTAMP_INFO_EXT: Self = Self(1_000_184_000); } impl AmdShaderCorePropertiesFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -15982,7 +15945,7 @@ impl AmdShaderCorePropertiesFn { } #[doc = "Generated from \'VK_AMD_shader_core_properties\'"] impl StructureType { - pub const PHYSICAL_DEVICE_SHADER_CORE_PROPERTIES_AMD: Self = StructureType(1_000_185_000); + pub const PHYSICAL_DEVICE_SHADER_CORE_PROPERTIES_AMD: Self = Self(1_000_185_000); } impl AmdExtension187Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -16074,7 +16037,7 @@ impl AmdMemoryOverallocationBehaviorFn { } #[doc = "Generated from \'VK_AMD_memory_overallocation_behavior\'"] impl StructureType { - pub const DEVICE_MEMORY_OVERALLOCATION_CREATE_INFO_AMD: Self = StructureType(1_000_189_000); + pub const DEVICE_MEMORY_OVERALLOCATION_CREATE_INFO_AMD: Self = Self(1_000_189_000); } impl ExtVertexAttributeDivisorFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -16100,18 +16063,15 @@ impl ExtVertexAttributeDivisorFn { } #[doc = "Generated from \'VK_EXT_vertex_attribute_divisor\'"] impl StructureType { - pub const PHYSICAL_DEVICE_VERTEX_ATTRIBUTE_DIVISOR_PROPERTIES_EXT: Self = - StructureType(1_000_190_000); + pub const PHYSICAL_DEVICE_VERTEX_ATTRIBUTE_DIVISOR_PROPERTIES_EXT: Self = Self(1_000_190_000); } #[doc = "Generated from \'VK_EXT_vertex_attribute_divisor\'"] impl StructureType { - pub const PIPELINE_VERTEX_INPUT_DIVISOR_STATE_CREATE_INFO_EXT: Self = - StructureType(1_000_190_001); + pub const PIPELINE_VERTEX_INPUT_DIVISOR_STATE_CREATE_INFO_EXT: Self = Self(1_000_190_001); } #[doc = "Generated from \'VK_EXT_vertex_attribute_divisor\'"] impl StructureType { - pub const PHYSICAL_DEVICE_VERTEX_ATTRIBUTE_DIVISOR_FEATURES_EXT: Self = - StructureType(1_000_190_002); + pub const PHYSICAL_DEVICE_VERTEX_ATTRIBUTE_DIVISOR_FEATURES_EXT: Self = Self(1_000_190_002); } impl GgpFrameTokenFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -16137,7 +16097,7 @@ impl GgpFrameTokenFn { } #[doc = "Generated from \'VK_GGP_frame_token\'"] impl StructureType { - pub const PRESENT_FRAME_TOKEN_GGP: Self = StructureType(1_000_191_000); + pub const PRESENT_FRAME_TOKEN_GGP: Self = Self(1_000_191_000); } impl ExtPipelineCreationFeedbackFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -16163,7 +16123,7 @@ impl ExtPipelineCreationFeedbackFn { } #[doc = "Generated from \'VK_EXT_pipeline_creation_feedback\'"] impl StructureType { - pub const PIPELINE_CREATION_FEEDBACK_CREATE_INFO_EXT: Self = StructureType(1_000_192_000); + pub const PIPELINE_CREATION_FEEDBACK_CREATE_INFO_EXT: Self = Self(1_000_192_000); } impl GoogleExtension194Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -16369,7 +16329,7 @@ impl NvShaderSubgroupPartitionedFn { } #[doc = "Generated from \'VK_NV_shader_subgroup_partitioned\'"] impl SubgroupFeatureFlags { - pub const PARTITIONED_NV: Self = SubgroupFeatureFlags(0b1_0000_0000); + pub const PARTITIONED_NV: Self = Self(0b1_0000_0000); } impl KhrDepthStencilResolveFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -16447,7 +16407,7 @@ impl KhrSwapchainMutableFormatFn { } #[doc = "Generated from \'VK_KHR_swapchain_mutable_format\'"] impl SwapchainCreateFlagsKHR { - pub const MUTABLE_FORMAT: Self = SwapchainCreateFlagsKHR(0b100); + pub const MUTABLE_FORMAT: Self = Self(0b100); } impl NvComputeShaderDerivativesFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -16473,8 +16433,7 @@ impl NvComputeShaderDerivativesFn { } #[doc = "Generated from \'VK_NV_compute_shader_derivatives\'"] impl StructureType { - pub const PHYSICAL_DEVICE_COMPUTE_SHADER_DERIVATIVES_FEATURES_NV: Self = - StructureType(1_000_201_000); + pub const PHYSICAL_DEVICE_COMPUTE_SHADER_DERIVATIVES_FEATURES_NV: Self = Self(1_000_201_000); } impl NvMeshShaderFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -16655,27 +16614,27 @@ impl NvMeshShaderFn { } #[doc = "Generated from \'VK_NV_mesh_shader\'"] impl StructureType { - pub const PHYSICAL_DEVICE_MESH_SHADER_FEATURES_NV: Self = StructureType(1_000_202_000); + pub const PHYSICAL_DEVICE_MESH_SHADER_FEATURES_NV: Self = Self(1_000_202_000); } #[doc = "Generated from \'VK_NV_mesh_shader\'"] impl StructureType { - pub const PHYSICAL_DEVICE_MESH_SHADER_PROPERTIES_NV: Self = StructureType(1_000_202_001); + pub const PHYSICAL_DEVICE_MESH_SHADER_PROPERTIES_NV: Self = Self(1_000_202_001); } #[doc = "Generated from \'VK_NV_mesh_shader\'"] impl ShaderStageFlags { - pub const TASK_NV: Self = ShaderStageFlags(0b100_0000); + pub const TASK_NV: Self = Self(0b100_0000); } #[doc = "Generated from \'VK_NV_mesh_shader\'"] impl ShaderStageFlags { - pub const MESH_NV: Self = ShaderStageFlags(0b1000_0000); + pub const MESH_NV: Self = Self(0b1000_0000); } #[doc = "Generated from \'VK_NV_mesh_shader\'"] impl PipelineStageFlags { - pub const TASK_SHADER_NV: Self = PipelineStageFlags(0b1000_0000_0000_0000_0000); + pub const TASK_SHADER_NV: Self = Self(0b1000_0000_0000_0000_0000); } #[doc = "Generated from \'VK_NV_mesh_shader\'"] impl PipelineStageFlags { - pub const MESH_SHADER_NV: Self = PipelineStageFlags(0b1_0000_0000_0000_0000_0000); + pub const MESH_SHADER_NV: Self = Self(0b1_0000_0000_0000_0000_0000); } impl NvFragmentShaderBarycentricFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -16701,8 +16660,7 @@ impl NvFragmentShaderBarycentricFn { } #[doc = "Generated from \'VK_NV_fragment_shader_barycentric\'"] impl StructureType { - pub const PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_FEATURES_NV: Self = - StructureType(1_000_203_000); + pub const PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_FEATURES_NV: Self = Self(1_000_203_000); } impl NvShaderImageFootprintFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -16728,8 +16686,7 @@ impl NvShaderImageFootprintFn { } #[doc = "Generated from \'VK_NV_shader_image_footprint\'"] impl StructureType { - pub const PHYSICAL_DEVICE_SHADER_IMAGE_FOOTPRINT_FEATURES_NV: Self = - StructureType(1_000_204_000); + pub const PHYSICAL_DEVICE_SHADER_IMAGE_FOOTPRINT_FEATURES_NV: Self = Self(1_000_204_000); } impl NvScissorExclusiveFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -16808,16 +16765,15 @@ impl NvScissorExclusiveFn { } #[doc = "Generated from \'VK_NV_scissor_exclusive\'"] impl StructureType { - pub const PIPELINE_VIEWPORT_EXCLUSIVE_SCISSOR_STATE_CREATE_INFO_NV: Self = - StructureType(1_000_205_000); + pub const PIPELINE_VIEWPORT_EXCLUSIVE_SCISSOR_STATE_CREATE_INFO_NV: Self = Self(1_000_205_000); } #[doc = "Generated from \'VK_NV_scissor_exclusive\'"] impl DynamicState { - pub const EXCLUSIVE_SCISSOR_NV: Self = DynamicState(1_000_205_001); + pub const EXCLUSIVE_SCISSOR_NV: Self = Self(1_000_205_001); } #[doc = "Generated from \'VK_NV_scissor_exclusive\'"] impl StructureType { - pub const PHYSICAL_DEVICE_EXCLUSIVE_SCISSOR_FEATURES_NV: Self = StructureType(1_000_205_002); + pub const PHYSICAL_DEVICE_EXCLUSIVE_SCISSOR_FEATURES_NV: Self = Self(1_000_205_002); } impl NvDeviceDiagnosticCheckpointsFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -16922,11 +16878,11 @@ impl NvDeviceDiagnosticCheckpointsFn { } #[doc = "Generated from \'VK_NV_device_diagnostic_checkpoints\'"] impl StructureType { - pub const CHECKPOINT_DATA_NV: Self = StructureType(1_000_206_000); + pub const CHECKPOINT_DATA_NV: Self = Self(1_000_206_000); } #[doc = "Generated from \'VK_NV_device_diagnostic_checkpoints\'"] impl StructureType { - pub const QUEUE_FAMILY_CHECKPOINT_PROPERTIES_NV: Self = StructureType(1_000_206_001); + pub const QUEUE_FAMILY_CHECKPOINT_PROPERTIES_NV: Self = Self(1_000_206_001); } impl KhrTimelineSemaphoreFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -17141,8 +17097,7 @@ impl IntelShaderIntegerFunctions2Fn { } #[doc = "Generated from \'VK_INTEL_shader_integer_functions2\'"] impl StructureType { - pub const PHYSICAL_DEVICE_SHADER_INTEGER_FUNCTIONS_2_FEATURES_INTEL: Self = - StructureType(1_000_209_000); + pub const PHYSICAL_DEVICE_SHADER_INTEGER_FUNCTIONS_2_FEATURES_INTEL: Self = Self(1_000_209_000); } impl IntelPerformanceQueryFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -17492,35 +17447,35 @@ impl IntelPerformanceQueryFn { } #[doc = "Generated from \'VK_INTEL_performance_query\'"] impl StructureType { - pub const QUERY_POOL_CREATE_INFO_INTEL: Self = StructureType(1_000_210_000); + pub const QUERY_POOL_CREATE_INFO_INTEL: Self = Self(1_000_210_000); } #[doc = "Generated from \'VK_INTEL_performance_query\'"] impl StructureType { - pub const INITIALIZE_PERFORMANCE_API_INFO_INTEL: Self = StructureType(1_000_210_001); + pub const INITIALIZE_PERFORMANCE_API_INFO_INTEL: Self = Self(1_000_210_001); } #[doc = "Generated from \'VK_INTEL_performance_query\'"] impl StructureType { - pub const PERFORMANCE_MARKER_INFO_INTEL: Self = StructureType(1_000_210_002); + pub const PERFORMANCE_MARKER_INFO_INTEL: Self = Self(1_000_210_002); } #[doc = "Generated from \'VK_INTEL_performance_query\'"] impl StructureType { - pub const PERFORMANCE_STREAM_MARKER_INFO_INTEL: Self = StructureType(1_000_210_003); + pub const PERFORMANCE_STREAM_MARKER_INFO_INTEL: Self = Self(1_000_210_003); } #[doc = "Generated from \'VK_INTEL_performance_query\'"] impl StructureType { - pub const PERFORMANCE_OVERRIDE_INFO_INTEL: Self = StructureType(1_000_210_004); + pub const PERFORMANCE_OVERRIDE_INFO_INTEL: Self = Self(1_000_210_004); } #[doc = "Generated from \'VK_INTEL_performance_query\'"] impl StructureType { - pub const PERFORMANCE_CONFIGURATION_ACQUIRE_INFO_INTEL: Self = StructureType(1_000_210_005); + pub const PERFORMANCE_CONFIGURATION_ACQUIRE_INFO_INTEL: Self = Self(1_000_210_005); } #[doc = "Generated from \'VK_INTEL_performance_query\'"] impl QueryType { - pub const PERFORMANCE_QUERY_INTEL: Self = QueryType(1_000_210_000); + pub const PERFORMANCE_QUERY_INTEL: Self = Self(1_000_210_000); } #[doc = "Generated from \'VK_INTEL_performance_query\'"] impl ObjectType { - pub const PERFORMANCE_CONFIGURATION_INTEL: Self = ObjectType(1_000_210_000); + pub const PERFORMANCE_CONFIGURATION_INTEL: Self = Self(1_000_210_000); } impl KhrVulkanMemoryModelFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -17573,7 +17528,7 @@ impl ExtPciBusInfoFn { } #[doc = "Generated from \'VK_EXT_pci_bus_info\'"] impl StructureType { - pub const PHYSICAL_DEVICE_PCI_BUS_INFO_PROPERTIES_EXT: Self = StructureType(1_000_212_000); + pub const PHYSICAL_DEVICE_PCI_BUS_INFO_PROPERTIES_EXT: Self = Self(1_000_212_000); } impl AmdDisplayNativeHdrFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -17643,15 +17598,15 @@ impl AmdDisplayNativeHdrFn { } #[doc = "Generated from \'VK_AMD_display_native_hdr\'"] impl StructureType { - pub const DISPLAY_NATIVE_HDR_SURFACE_CAPABILITIES_AMD: Self = StructureType(1_000_213_000); + pub const DISPLAY_NATIVE_HDR_SURFACE_CAPABILITIES_AMD: Self = Self(1_000_213_000); } #[doc = "Generated from \'VK_AMD_display_native_hdr\'"] impl StructureType { - pub const SWAPCHAIN_DISPLAY_NATIVE_HDR_CREATE_INFO_AMD: Self = StructureType(1_000_213_001); + pub const SWAPCHAIN_DISPLAY_NATIVE_HDR_CREATE_INFO_AMD: Self = Self(1_000_213_001); } #[doc = "Generated from \'VK_AMD_display_native_hdr\'"] impl ColorSpaceKHR { - pub const DISPLAY_NATIVE_AMD: Self = ColorSpaceKHR(1_000_213_000); + pub const DISPLAY_NATIVE_AMD: Self = Self(1_000_213_000); } impl FuchsiaImagepipeSurfaceFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -17725,7 +17680,7 @@ impl FuchsiaImagepipeSurfaceFn { } #[doc = "Generated from \'VK_FUCHSIA_imagepipe_surface\'"] impl StructureType { - pub const IMAGEPIPE_SURFACE_CREATE_INFO_FUCHSIA: Self = StructureType(1_000_214_000); + pub const IMAGEPIPE_SURFACE_CREATE_INFO_FUCHSIA: Self = Self(1_000_214_000); } impl GoogleExtension216Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -17843,7 +17798,7 @@ impl ExtMetalSurfaceFn { } #[doc = "Generated from \'VK_EXT_metal_surface\'"] impl StructureType { - pub const METAL_SURFACE_CREATE_INFO_EXT: Self = StructureType(1_000_217_000); + pub const METAL_SURFACE_CREATE_INFO_EXT: Self = Self(1_000_217_000); } impl ExtFragmentDensityMapFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -17869,55 +17824,51 @@ impl ExtFragmentDensityMapFn { } #[doc = "Generated from \'VK_EXT_fragment_density_map\'"] impl StructureType { - pub const PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_FEATURES_EXT: Self = - StructureType(1_000_218_000); + pub const PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_FEATURES_EXT: Self = Self(1_000_218_000); } #[doc = "Generated from \'VK_EXT_fragment_density_map\'"] impl StructureType { - pub const PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_PROPERTIES_EXT: Self = - StructureType(1_000_218_001); + pub const PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_PROPERTIES_EXT: Self = Self(1_000_218_001); } #[doc = "Generated from \'VK_EXT_fragment_density_map\'"] impl StructureType { - pub const RENDER_PASS_FRAGMENT_DENSITY_MAP_CREATE_INFO_EXT: Self = StructureType(1_000_218_002); + pub const RENDER_PASS_FRAGMENT_DENSITY_MAP_CREATE_INFO_EXT: Self = Self(1_000_218_002); } #[doc = "Generated from \'VK_EXT_fragment_density_map\'"] impl ImageCreateFlags { - pub const SUBSAMPLED_EXT: Self = ImageCreateFlags(0b100_0000_0000_0000); + pub const SUBSAMPLED_EXT: Self = Self(0b100_0000_0000_0000); } #[doc = "Generated from \'VK_EXT_fragment_density_map\'"] impl ImageLayout { - pub const FRAGMENT_DENSITY_MAP_OPTIMAL_EXT: Self = ImageLayout(1_000_218_000); + pub const FRAGMENT_DENSITY_MAP_OPTIMAL_EXT: Self = Self(1_000_218_000); } #[doc = "Generated from \'VK_EXT_fragment_density_map\'"] impl AccessFlags { - pub const FRAGMENT_DENSITY_MAP_READ_EXT: Self = AccessFlags(0b1_0000_0000_0000_0000_0000_0000); + pub const FRAGMENT_DENSITY_MAP_READ_EXT: Self = Self(0b1_0000_0000_0000_0000_0000_0000); } #[doc = "Generated from \'VK_EXT_fragment_density_map\'"] impl FormatFeatureFlags { - pub const FRAGMENT_DENSITY_MAP_EXT: Self = - FormatFeatureFlags(0b1_0000_0000_0000_0000_0000_0000); + pub const FRAGMENT_DENSITY_MAP_EXT: Self = Self(0b1_0000_0000_0000_0000_0000_0000); } #[doc = "Generated from \'VK_EXT_fragment_density_map\'"] impl ImageUsageFlags { - pub const FRAGMENT_DENSITY_MAP_EXT: Self = ImageUsageFlags(0b10_0000_0000); + pub const FRAGMENT_DENSITY_MAP_EXT: Self = Self(0b10_0000_0000); } #[doc = "Generated from \'VK_EXT_fragment_density_map\'"] impl ImageViewCreateFlags { - pub const FRAGMENT_DENSITY_MAP_DYNAMIC_EXT: Self = ImageViewCreateFlags(0b1); + pub const FRAGMENT_DENSITY_MAP_DYNAMIC_EXT: Self = Self(0b1); } #[doc = "Generated from \'VK_EXT_fragment_density_map\'"] impl PipelineStageFlags { - pub const FRAGMENT_DENSITY_PROCESS_EXT: Self = - PipelineStageFlags(0b1000_0000_0000_0000_0000_0000); + pub const FRAGMENT_DENSITY_PROCESS_EXT: Self = Self(0b1000_0000_0000_0000_0000_0000); } #[doc = "Generated from \'VK_EXT_fragment_density_map\'"] impl SamplerCreateFlags { - pub const SUBSAMPLED_EXT: Self = SamplerCreateFlags(0b1); + pub const SUBSAMPLED_EXT: Self = Self(0b1); } #[doc = "Generated from \'VK_EXT_fragment_density_map\'"] impl SamplerCreateFlags { - pub const SUBSAMPLED_COARSE_RECONSTRUCTION_EXT: Self = SamplerCreateFlags(0b10); + pub const SUBSAMPLED_COARSE_RECONSTRUCTION_EXT: Self = Self(0b10); } impl ExtExtension220Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -17965,7 +17916,7 @@ impl KhrExtension221Fn { } #[doc = "Generated from \'VK_KHR_extension_221\'"] impl RenderPassCreateFlags { - pub const RESERVED_0_KHR: Self = RenderPassCreateFlags(0b1); + pub const RESERVED_0_KHR: Self = Self(0b1); } impl ExtScalarBlockLayoutFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -18084,26 +18035,24 @@ impl ExtSubgroupSizeControlFn { } #[doc = "Generated from \'VK_EXT_subgroup_size_control\'"] impl StructureType { - pub const PHYSICAL_DEVICE_SUBGROUP_SIZE_CONTROL_PROPERTIES_EXT: Self = - StructureType(1_000_225_000); + pub const PHYSICAL_DEVICE_SUBGROUP_SIZE_CONTROL_PROPERTIES_EXT: Self = Self(1_000_225_000); } #[doc = "Generated from \'VK_EXT_subgroup_size_control\'"] impl StructureType { pub const PIPELINE_SHADER_STAGE_REQUIRED_SUBGROUP_SIZE_CREATE_INFO_EXT: Self = - StructureType(1_000_225_001); + Self(1_000_225_001); } #[doc = "Generated from \'VK_EXT_subgroup_size_control\'"] impl StructureType { - pub const PHYSICAL_DEVICE_SUBGROUP_SIZE_CONTROL_FEATURES_EXT: Self = - StructureType(1_000_225_002); + pub const PHYSICAL_DEVICE_SUBGROUP_SIZE_CONTROL_FEATURES_EXT: Self = Self(1_000_225_002); } #[doc = "Generated from \'VK_EXT_subgroup_size_control\'"] impl PipelineShaderStageCreateFlags { - pub const ALLOW_VARYING_SUBGROUP_SIZE_EXT: Self = PipelineShaderStageCreateFlags(0b1); + pub const ALLOW_VARYING_SUBGROUP_SIZE_EXT: Self = Self(0b1); } #[doc = "Generated from \'VK_EXT_subgroup_size_control\'"] impl PipelineShaderStageCreateFlags { - pub const REQUIRE_FULL_SUBGROUPS_EXT: Self = PipelineShaderStageCreateFlags(0b10); + pub const REQUIRE_FULL_SUBGROUPS_EXT: Self = Self(0b10); } impl AmdExtension227Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -18151,7 +18100,7 @@ impl AmdShaderCoreProperties2Fn { } #[doc = "Generated from \'VK_AMD_shader_core_properties2\'"] impl StructureType { - pub const PHYSICAL_DEVICE_SHADER_CORE_PROPERTIES_2_AMD: Self = StructureType(1_000_227_000); + pub const PHYSICAL_DEVICE_SHADER_CORE_PROPERTIES_2_AMD: Self = Self(1_000_227_000); } impl AmdExtension229Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -18199,15 +18148,15 @@ impl AmdDeviceCoherentMemoryFn { } #[doc = "Generated from \'VK_AMD_device_coherent_memory\'"] impl MemoryPropertyFlags { - pub const DEVICE_COHERENT_AMD: Self = MemoryPropertyFlags(0b100_0000); + pub const DEVICE_COHERENT_AMD: Self = Self(0b100_0000); } #[doc = "Generated from \'VK_AMD_device_coherent_memory\'"] impl MemoryPropertyFlags { - pub const DEVICE_UNCACHED_AMD: Self = MemoryPropertyFlags(0b1000_0000); + pub const DEVICE_UNCACHED_AMD: Self = Self(0b1000_0000); } #[doc = "Generated from \'VK_AMD_device_coherent_memory\'"] impl StructureType { - pub const PHYSICAL_DEVICE_COHERENT_MEMORY_FEATURES_AMD: Self = StructureType(1_000_229_000); + pub const PHYSICAL_DEVICE_COHERENT_MEMORY_FEATURES_AMD: Self = Self(1_000_229_000); } impl AmdExtension231Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -18387,7 +18336,7 @@ impl ExtMemoryBudgetFn { } #[doc = "Generated from \'VK_EXT_memory_budget\'"] impl StructureType { - pub const PHYSICAL_DEVICE_MEMORY_BUDGET_PROPERTIES_EXT: Self = StructureType(1_000_237_000); + pub const PHYSICAL_DEVICE_MEMORY_BUDGET_PROPERTIES_EXT: Self = Self(1_000_237_000); } impl ExtMemoryPriorityFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -18413,11 +18362,11 @@ impl ExtMemoryPriorityFn { } #[doc = "Generated from \'VK_EXT_memory_priority\'"] impl StructureType { - pub const PHYSICAL_DEVICE_MEMORY_PRIORITY_FEATURES_EXT: Self = StructureType(1_000_238_000); + pub const PHYSICAL_DEVICE_MEMORY_PRIORITY_FEATURES_EXT: Self = Self(1_000_238_000); } #[doc = "Generated from \'VK_EXT_memory_priority\'"] impl StructureType { - pub const MEMORY_PRIORITY_ALLOCATE_INFO_EXT: Self = StructureType(1_000_238_001); + pub const MEMORY_PRIORITY_ALLOCATE_INFO_EXT: Self = Self(1_000_238_001); } impl KhrSurfaceProtectedCapabilitiesFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -18443,7 +18392,7 @@ impl KhrSurfaceProtectedCapabilitiesFn { } #[doc = "Generated from \'VK_KHR_surface_protected_capabilities\'"] impl StructureType { - pub const SURFACE_PROTECTED_CAPABILITIES_KHR: Self = StructureType(1_000_239_000); + pub const SURFACE_PROTECTED_CAPABILITIES_KHR: Self = Self(1_000_239_000); } impl NvDedicatedAllocationImageAliasingFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -18470,7 +18419,7 @@ impl NvDedicatedAllocationImageAliasingFn { #[doc = "Generated from \'VK_NV_dedicated_allocation_image_aliasing\'"] impl StructureType { pub const PHYSICAL_DEVICE_DEDICATED_ALLOCATION_IMAGE_ALIASING_FEATURES_NV: Self = - StructureType(1_000_240_000); + Self(1_000_240_000); } impl KhrSeparateDepthStencilLayoutsFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -18629,8 +18578,7 @@ impl ExtBufferDeviceAddressFn { } #[doc = "Generated from \'VK_EXT_buffer_device_address\'"] impl StructureType { - pub const PHYSICAL_DEVICE_BUFFER_DEVICE_ADDRESS_FEATURES_EXT: Self = - StructureType(1_000_244_000); + pub const PHYSICAL_DEVICE_BUFFER_DEVICE_ADDRESS_FEATURES_EXT: Self = Self(1_000_244_000); } #[doc = "Generated from \'VK_EXT_buffer_device_address\'"] impl StructureType { @@ -18643,7 +18591,7 @@ impl StructureType { } #[doc = "Generated from \'VK_EXT_buffer_device_address\'"] impl StructureType { - pub const BUFFER_DEVICE_ADDRESS_CREATE_INFO_EXT: Self = StructureType(1_000_244_002); + pub const BUFFER_DEVICE_ADDRESS_CREATE_INFO_EXT: Self = Self(1_000_244_002); } #[doc = "Generated from \'VK_EXT_buffer_device_address\'"] impl BufferUsageFlags { @@ -18730,15 +18678,15 @@ impl ExtToolingInfoFn { } #[doc = "Generated from \'VK_EXT_tooling_info\'"] impl StructureType { - pub const PHYSICAL_DEVICE_TOOL_PROPERTIES_EXT: Self = StructureType(1_000_245_000); + pub const PHYSICAL_DEVICE_TOOL_PROPERTIES_EXT: Self = Self(1_000_245_000); } #[doc = "Generated from \'VK_EXT_tooling_info\'"] impl ToolPurposeFlagsEXT { - pub const DEBUG_REPORTING: Self = ToolPurposeFlagsEXT(0b10_0000); + pub const DEBUG_REPORTING: Self = Self(0b10_0000); } #[doc = "Generated from \'VK_EXT_tooling_info\'"] impl ToolPurposeFlagsEXT { - pub const DEBUG_MARKERS: Self = ToolPurposeFlagsEXT(0b100_0000); + pub const DEBUG_MARKERS: Self = Self(0b100_0000); } impl ExtSeparateStencilUsageFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -18791,7 +18739,7 @@ impl ExtValidationFeaturesFn { } #[doc = "Generated from \'VK_EXT_validation_features\'"] impl StructureType { - pub const VALIDATION_FEATURES_EXT: Self = StructureType(1_000_247_000); + pub const VALIDATION_FEATURES_EXT: Self = Self(1_000_247_000); } impl KhrExtension249Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -18888,15 +18836,15 @@ impl NvCooperativeMatrixFn { } #[doc = "Generated from \'VK_NV_cooperative_matrix\'"] impl StructureType { - pub const PHYSICAL_DEVICE_COOPERATIVE_MATRIX_FEATURES_NV: Self = StructureType(1_000_249_000); + pub const PHYSICAL_DEVICE_COOPERATIVE_MATRIX_FEATURES_NV: Self = Self(1_000_249_000); } #[doc = "Generated from \'VK_NV_cooperative_matrix\'"] impl StructureType { - pub const COOPERATIVE_MATRIX_PROPERTIES_NV: Self = StructureType(1_000_249_001); + pub const COOPERATIVE_MATRIX_PROPERTIES_NV: Self = Self(1_000_249_001); } #[doc = "Generated from \'VK_NV_cooperative_matrix\'"] impl StructureType { - pub const PHYSICAL_DEVICE_COOPERATIVE_MATRIX_PROPERTIES_NV: Self = StructureType(1_000_249_002); + pub const PHYSICAL_DEVICE_COOPERATIVE_MATRIX_PROPERTIES_NV: Self = Self(1_000_249_002); } impl NvCoverageReductionModeFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -18976,16 +18924,15 @@ impl NvCoverageReductionModeFn { } #[doc = "Generated from \'VK_NV_coverage_reduction_mode\'"] impl StructureType { - pub const PHYSICAL_DEVICE_COVERAGE_REDUCTION_MODE_FEATURES_NV: Self = - StructureType(1_000_250_000); + pub const PHYSICAL_DEVICE_COVERAGE_REDUCTION_MODE_FEATURES_NV: Self = Self(1_000_250_000); } #[doc = "Generated from \'VK_NV_coverage_reduction_mode\'"] impl StructureType { - pub const PIPELINE_COVERAGE_REDUCTION_STATE_CREATE_INFO_NV: Self = StructureType(1_000_250_001); + pub const PIPELINE_COVERAGE_REDUCTION_STATE_CREATE_INFO_NV: Self = Self(1_000_250_001); } #[doc = "Generated from \'VK_NV_coverage_reduction_mode\'"] impl StructureType { - pub const FRAMEBUFFER_MIXED_SAMPLES_COMBINATION_NV: Self = StructureType(1_000_250_002); + pub const FRAMEBUFFER_MIXED_SAMPLES_COMBINATION_NV: Self = Self(1_000_250_002); } impl ExtFragmentShaderInterlockFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -19011,8 +18958,7 @@ impl ExtFragmentShaderInterlockFn { } #[doc = "Generated from \'VK_EXT_fragment_shader_interlock\'"] impl StructureType { - pub const PHYSICAL_DEVICE_FRAGMENT_SHADER_INTERLOCK_FEATURES_EXT: Self = - StructureType(1_000_251_000); + pub const PHYSICAL_DEVICE_FRAGMENT_SHADER_INTERLOCK_FEATURES_EXT: Self = Self(1_000_251_000); } impl ExtYcbcrImageArraysFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -19038,7 +18984,7 @@ impl ExtYcbcrImageArraysFn { } #[doc = "Generated from \'VK_EXT_ycbcr_image_arrays\'"] impl StructureType { - pub const PHYSICAL_DEVICE_YCBCR_IMAGE_ARRAYS_FEATURES_EXT: Self = StructureType(1_000_252_000); + pub const PHYSICAL_DEVICE_YCBCR_IMAGE_ARRAYS_FEATURES_EXT: Self = Self(1_000_252_000); } impl KhrUniformBufferStandardLayoutFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -19275,19 +19221,19 @@ impl ExtFullScreenExclusiveFn { } #[doc = "Generated from \'VK_EXT_full_screen_exclusive\'"] impl StructureType { - pub const SURFACE_FULL_SCREEN_EXCLUSIVE_INFO_EXT: Self = StructureType(1_000_255_000); + pub const SURFACE_FULL_SCREEN_EXCLUSIVE_INFO_EXT: Self = Self(1_000_255_000); } #[doc = "Generated from \'VK_EXT_full_screen_exclusive\'"] impl StructureType { - pub const SURFACE_CAPABILITIES_FULL_SCREEN_EXCLUSIVE_EXT: Self = StructureType(1_000_255_002); + pub const SURFACE_CAPABILITIES_FULL_SCREEN_EXCLUSIVE_EXT: Self = Self(1_000_255_002); } #[doc = "Generated from \'VK_EXT_full_screen_exclusive\'"] impl Result { - pub const ERROR_FULL_SCREEN_EXCLUSIVE_MODE_LOST_EXT: Self = Result(-1_000_255_000); + pub const ERROR_FULL_SCREEN_EXCLUSIVE_MODE_LOST_EXT: Self = Self(-1_000_255_000); } #[doc = "Generated from \'VK_EXT_full_screen_exclusive\'"] impl StructureType { - pub const SURFACE_FULL_SCREEN_EXCLUSIVE_WIN32_INFO_EXT: Self = StructureType(1_000_255_001); + pub const SURFACE_FULL_SCREEN_EXCLUSIVE_WIN32_INFO_EXT: Self = Self(1_000_255_001); } impl ExtHeadlessSurfaceFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -19361,7 +19307,7 @@ impl ExtHeadlessSurfaceFn { } #[doc = "Generated from \'VK_EXT_headless_surface\'"] impl StructureType { - pub const HEADLESS_SURFACE_CREATE_INFO_EXT: Self = StructureType(1_000_256_000); + pub const HEADLESS_SURFACE_CREATE_INFO_EXT: Self = Self(1_000_256_000); } impl KhrBufferDeviceAddressFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -19624,21 +19570,19 @@ impl ExtLineRasterizationFn { } #[doc = "Generated from \'VK_EXT_line_rasterization\'"] impl StructureType { - pub const PHYSICAL_DEVICE_LINE_RASTERIZATION_FEATURES_EXT: Self = StructureType(1_000_259_000); + pub const PHYSICAL_DEVICE_LINE_RASTERIZATION_FEATURES_EXT: Self = Self(1_000_259_000); } #[doc = "Generated from \'VK_EXT_line_rasterization\'"] impl StructureType { - pub const PIPELINE_RASTERIZATION_LINE_STATE_CREATE_INFO_EXT: Self = - StructureType(1_000_259_001); + pub const PIPELINE_RASTERIZATION_LINE_STATE_CREATE_INFO_EXT: Self = Self(1_000_259_001); } #[doc = "Generated from \'VK_EXT_line_rasterization\'"] impl StructureType { - pub const PHYSICAL_DEVICE_LINE_RASTERIZATION_PROPERTIES_EXT: Self = - StructureType(1_000_259_002); + pub const PHYSICAL_DEVICE_LINE_RASTERIZATION_PROPERTIES_EXT: Self = Self(1_000_259_002); } #[doc = "Generated from \'VK_EXT_line_rasterization\'"] impl DynamicState { - pub const LINE_STIPPLE_EXT: Self = DynamicState(1_000_259_000); + pub const LINE_STIPPLE_EXT: Self = Self(1_000_259_000); } impl NvExtension261Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -19824,11 +19768,11 @@ impl ExtIndexTypeUint8Fn { } #[doc = "Generated from \'VK_EXT_index_type_uint8\'"] impl StructureType { - pub const PHYSICAL_DEVICE_INDEX_TYPE_UINT8_FEATURES_EXT: Self = StructureType(1_000_265_000); + pub const PHYSICAL_DEVICE_INDEX_TYPE_UINT8_FEATURES_EXT: Self = Self(1_000_265_000); } #[doc = "Generated from \'VK_EXT_index_type_uint8\'"] impl IndexType { - pub const UINT8_EXT: Self = IndexType(1_000_265_000); + pub const UINT8_EXT: Self = Self(1_000_265_000); } impl ExtExtension267Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -20083,27 +20027,27 @@ impl KhrDeferredHostOperationsFn { } #[doc = "Generated from \'VK_KHR_deferred_host_operations\'"] impl StructureType { - pub const DEFERRED_OPERATION_INFO_KHR: Self = StructureType(1_000_268_000); + pub const DEFERRED_OPERATION_INFO_KHR: Self = Self(1_000_268_000); } #[doc = "Generated from \'VK_KHR_deferred_host_operations\'"] impl ObjectType { - pub const DEFERRED_OPERATION_KHR: Self = ObjectType(1_000_268_000); + pub const DEFERRED_OPERATION_KHR: Self = Self(1_000_268_000); } #[doc = "Generated from \'VK_KHR_deferred_host_operations\'"] impl Result { - pub const THREAD_IDLE_KHR: Self = Result(1_000_268_000); + pub const THREAD_IDLE_KHR: Self = Self(1_000_268_000); } #[doc = "Generated from \'VK_KHR_deferred_host_operations\'"] impl Result { - pub const THREAD_DONE_KHR: Self = Result(1_000_268_001); + pub const THREAD_DONE_KHR: Self = Self(1_000_268_001); } #[doc = "Generated from \'VK_KHR_deferred_host_operations\'"] impl Result { - pub const OPERATION_DEFERRED_KHR: Self = Result(1_000_268_002); + pub const OPERATION_DEFERRED_KHR: Self = Self(1_000_268_002); } #[doc = "Generated from \'VK_KHR_deferred_host_operations\'"] impl Result { - pub const OPERATION_NOT_DEFERRED_KHR: Self = Result(1_000_268_003); + pub const OPERATION_NOT_DEFERRED_KHR: Self = Self(1_000_268_003); } impl KhrPipelineExecutablePropertiesFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -20284,35 +20228,35 @@ impl KhrPipelineExecutablePropertiesFn { #[doc = "Generated from \'VK_KHR_pipeline_executable_properties\'"] impl StructureType { pub const PHYSICAL_DEVICE_PIPELINE_EXECUTABLE_PROPERTIES_FEATURES_KHR: Self = - StructureType(1_000_269_000); + Self(1_000_269_000); } #[doc = "Generated from \'VK_KHR_pipeline_executable_properties\'"] impl StructureType { - pub const PIPELINE_INFO_KHR: Self = StructureType(1_000_269_001); + pub const PIPELINE_INFO_KHR: Self = Self(1_000_269_001); } #[doc = "Generated from \'VK_KHR_pipeline_executable_properties\'"] impl StructureType { - pub const PIPELINE_EXECUTABLE_PROPERTIES_KHR: Self = StructureType(1_000_269_002); + pub const PIPELINE_EXECUTABLE_PROPERTIES_KHR: Self = Self(1_000_269_002); } #[doc = "Generated from \'VK_KHR_pipeline_executable_properties\'"] impl StructureType { - pub const PIPELINE_EXECUTABLE_INFO_KHR: Self = StructureType(1_000_269_003); + pub const PIPELINE_EXECUTABLE_INFO_KHR: Self = Self(1_000_269_003); } #[doc = "Generated from \'VK_KHR_pipeline_executable_properties\'"] impl StructureType { - pub const PIPELINE_EXECUTABLE_STATISTIC_KHR: Self = StructureType(1_000_269_004); + pub const PIPELINE_EXECUTABLE_STATISTIC_KHR: Self = Self(1_000_269_004); } #[doc = "Generated from \'VK_KHR_pipeline_executable_properties\'"] impl StructureType { - pub const PIPELINE_EXECUTABLE_INTERNAL_REPRESENTATION_KHR: Self = StructureType(1_000_269_005); + pub const PIPELINE_EXECUTABLE_INTERNAL_REPRESENTATION_KHR: Self = Self(1_000_269_005); } #[doc = "Generated from \'VK_KHR_pipeline_executable_properties\'"] impl PipelineCreateFlags { - pub const CAPTURE_STATISTICS_KHR: Self = PipelineCreateFlags(0b100_0000); + pub const CAPTURE_STATISTICS_KHR: Self = Self(0b100_0000); } #[doc = "Generated from \'VK_KHR_pipeline_executable_properties\'"] impl PipelineCreateFlags { - pub const CAPTURE_INTERNAL_REPRESENTATIONS_KHR: Self = PipelineCreateFlags(0b1000_0000); + pub const CAPTURE_INTERNAL_REPRESENTATIONS_KHR: Self = Self(0b1000_0000); } impl IntelExtension271Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -20471,7 +20415,7 @@ impl ExtShaderDemoteToHelperInvocationFn { #[doc = "Generated from \'VK_EXT_shader_demote_to_helper_invocation\'"] impl StructureType { pub const PHYSICAL_DEVICE_SHADER_DEMOTE_TO_HELPER_INVOCATION_FEATURES_EXT: Self = - StructureType(1_000_276_000); + Self(1_000_276_000); } impl NvDeviceGeneratedCommandsFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -20765,57 +20709,55 @@ impl NvDeviceGeneratedCommandsFn { } #[doc = "Generated from \'VK_NV_device_generated_commands\'"] impl StructureType { - pub const PHYSICAL_DEVICE_DEVICE_GENERATED_COMMANDS_PROPERTIES_NV: Self = - StructureType(1_000_277_000); + pub const PHYSICAL_DEVICE_DEVICE_GENERATED_COMMANDS_PROPERTIES_NV: Self = Self(1_000_277_000); } #[doc = "Generated from \'VK_NV_device_generated_commands\'"] impl StructureType { - pub const GRAPHICS_SHADER_GROUP_CREATE_INFO_NV: Self = StructureType(1_000_277_001); + pub const GRAPHICS_SHADER_GROUP_CREATE_INFO_NV: Self = Self(1_000_277_001); } #[doc = "Generated from \'VK_NV_device_generated_commands\'"] impl StructureType { - pub const GRAPHICS_PIPELINE_SHADER_GROUPS_CREATE_INFO_NV: Self = StructureType(1_000_277_002); + pub const GRAPHICS_PIPELINE_SHADER_GROUPS_CREATE_INFO_NV: Self = Self(1_000_277_002); } #[doc = "Generated from \'VK_NV_device_generated_commands\'"] impl StructureType { - pub const INDIRECT_COMMANDS_LAYOUT_TOKEN_NV: Self = StructureType(1_000_277_003); + pub const INDIRECT_COMMANDS_LAYOUT_TOKEN_NV: Self = Self(1_000_277_003); } #[doc = "Generated from \'VK_NV_device_generated_commands\'"] impl StructureType { - pub const INDIRECT_COMMANDS_LAYOUT_CREATE_INFO_NV: Self = StructureType(1_000_277_004); + pub const INDIRECT_COMMANDS_LAYOUT_CREATE_INFO_NV: Self = Self(1_000_277_004); } #[doc = "Generated from \'VK_NV_device_generated_commands\'"] impl StructureType { - pub const GENERATED_COMMANDS_INFO_NV: Self = StructureType(1_000_277_005); + pub const GENERATED_COMMANDS_INFO_NV: Self = Self(1_000_277_005); } #[doc = "Generated from \'VK_NV_device_generated_commands\'"] impl StructureType { - pub const GENERATED_COMMANDS_MEMORY_REQUIREMENTS_INFO_NV: Self = StructureType(1_000_277_006); + pub const GENERATED_COMMANDS_MEMORY_REQUIREMENTS_INFO_NV: Self = Self(1_000_277_006); } #[doc = "Generated from \'VK_NV_device_generated_commands\'"] impl StructureType { - pub const PHYSICAL_DEVICE_DEVICE_GENERATED_COMMANDS_FEATURES_NV: Self = - StructureType(1_000_277_007); + pub const PHYSICAL_DEVICE_DEVICE_GENERATED_COMMANDS_FEATURES_NV: Self = Self(1_000_277_007); } #[doc = "Generated from \'VK_NV_device_generated_commands\'"] impl PipelineCreateFlags { - pub const INDIRECT_BINDABLE_NV: Self = PipelineCreateFlags(0b100_0000_0000_0000_0000); + pub const INDIRECT_BINDABLE_NV: Self = Self(0b100_0000_0000_0000_0000); } #[doc = "Generated from \'VK_NV_device_generated_commands\'"] impl PipelineStageFlags { - pub const COMMAND_PREPROCESS_NV: Self = PipelineStageFlags(0b10_0000_0000_0000_0000); + pub const COMMAND_PREPROCESS_NV: Self = Self(0b10_0000_0000_0000_0000); } #[doc = "Generated from \'VK_NV_device_generated_commands\'"] impl AccessFlags { - pub const COMMAND_PREPROCESS_READ_NV: Self = AccessFlags(0b10_0000_0000_0000_0000); + pub const COMMAND_PREPROCESS_READ_NV: Self = Self(0b10_0000_0000_0000_0000); } #[doc = "Generated from \'VK_NV_device_generated_commands\'"] impl AccessFlags { - pub const COMMAND_PREPROCESS_WRITE_NV: Self = AccessFlags(0b100_0000_0000_0000_0000); + pub const COMMAND_PREPROCESS_WRITE_NV: Self = Self(0b100_0000_0000_0000_0000); } #[doc = "Generated from \'VK_NV_device_generated_commands\'"] impl ObjectType { - pub const INDIRECT_COMMANDS_LAYOUT_NV: Self = ObjectType(1_000_277_000); + pub const INDIRECT_COMMANDS_LAYOUT_NV: Self = Self(1_000_277_000); } impl NvExtension279Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -20907,13 +20849,11 @@ impl ExtTexelBufferAlignmentFn { } #[doc = "Generated from \'VK_EXT_texel_buffer_alignment\'"] impl StructureType { - pub const PHYSICAL_DEVICE_TEXEL_BUFFER_ALIGNMENT_FEATURES_EXT: Self = - StructureType(1_000_281_000); + pub const PHYSICAL_DEVICE_TEXEL_BUFFER_ALIGNMENT_FEATURES_EXT: Self = Self(1_000_281_000); } #[doc = "Generated from \'VK_EXT_texel_buffer_alignment\'"] impl StructureType { - pub const PHYSICAL_DEVICE_TEXEL_BUFFER_ALIGNMENT_PROPERTIES_EXT: Self = - StructureType(1_000_281_001); + pub const PHYSICAL_DEVICE_TEXEL_BUFFER_ALIGNMENT_PROPERTIES_EXT: Self = Self(1_000_281_001); } impl QcomRenderPassTransformFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -20940,15 +20880,15 @@ impl QcomRenderPassTransformFn { #[doc = "Generated from \'VK_QCOM_render_pass_transform\'"] impl StructureType { pub const COMMAND_BUFFER_INHERITANCE_RENDER_PASS_TRANSFORM_INFO_QCOM: Self = - StructureType(1_000_282_000); + Self(1_000_282_000); } #[doc = "Generated from \'VK_QCOM_render_pass_transform\'"] impl StructureType { - pub const RENDER_PASS_TRANSFORM_BEGIN_INFO_QCOM: Self = StructureType(1_000_282_001); + pub const RENDER_PASS_TRANSFORM_BEGIN_INFO_QCOM: Self = Self(1_000_282_001); } #[doc = "Generated from \'VK_QCOM_render_pass_transform\'"] impl RenderPassCreateFlags { - pub const TRANSFORM_QCOM: Self = RenderPassCreateFlags(0b10); + pub const TRANSFORM_QCOM: Self = Self(0b10); } impl ExtExtension284Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -21128,11 +21068,11 @@ impl KhrPipelineLibraryFn { } #[doc = "Generated from \'VK_KHR_pipeline_library\'"] impl PipelineCreateFlags { - pub const LIBRARY_KHR: Self = PipelineCreateFlags(0b1000_0000_0000); + pub const LIBRARY_KHR: Self = Self(0b1000_0000_0000); } #[doc = "Generated from \'VK_KHR_pipeline_library\'"] impl StructureType { - pub const PIPELINE_LIBRARY_CREATE_INFO_KHR: Self = StructureType(1_000_290_000); + pub const PIPELINE_LIBRARY_CREATE_INFO_KHR: Self = Self(1_000_290_000); } impl NvExtension292Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -21268,7 +21208,7 @@ impl KhrExtension297Fn { } #[doc = "Generated from \'VK_KHR_extension_297\'"] impl PipelineShaderStageCreateFlags { - pub const RESERVED_3_KHR: Self = PipelineShaderStageCreateFlags(0b1000); + pub const RESERVED_3_KHR: Self = Self(0b1000); } impl ExtPipelineCreationCacheControlFn { pub fn name() -> &'static ::std::ffi::CStr { @@ -21295,23 +21235,23 @@ impl ExtPipelineCreationCacheControlFn { #[doc = "Generated from \'VK_EXT_pipeline_creation_cache_control\'"] impl StructureType { pub const PHYSICAL_DEVICE_PIPELINE_CREATION_CACHE_CONTROL_FEATURES_EXT: Self = - StructureType(1_000_297_000); + Self(1_000_297_000); } #[doc = "Generated from \'VK_EXT_pipeline_creation_cache_control\'"] impl PipelineCreateFlags { - pub const FAIL_ON_PIPELINE_COMPILE_REQUIRED_EXT: Self = PipelineCreateFlags(0b1_0000_0000); + pub const FAIL_ON_PIPELINE_COMPILE_REQUIRED_EXT: Self = Self(0b1_0000_0000); } #[doc = "Generated from \'VK_EXT_pipeline_creation_cache_control\'"] impl PipelineCreateFlags { - pub const EARLY_RETURN_ON_FAILURE_EXT: Self = PipelineCreateFlags(0b10_0000_0000); + pub const EARLY_RETURN_ON_FAILURE_EXT: Self = Self(0b10_0000_0000); } #[doc = "Generated from \'VK_EXT_pipeline_creation_cache_control\'"] impl Result { - pub const ERROR_PIPELINE_COMPILE_REQUIRED_EXT: Self = Result(1_000_297_000); + pub const ERROR_PIPELINE_COMPILE_REQUIRED_EXT: Self = Self(1_000_297_000); } #[doc = "Generated from \'VK_EXT_pipeline_creation_cache_control\'"] impl PipelineCacheCreateFlags { - pub const EXTERNALLY_SYNCHRONIZED_EXT: Self = PipelineCacheCreateFlags(0b1); + pub const EXTERNALLY_SYNCHRONIZED_EXT: Self = Self(0b1); } impl KhrExtension299Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -21381,11 +21321,11 @@ impl NvDeviceDiagnosticsConfigFn { } #[doc = "Generated from \'VK_NV_device_diagnostics_config\'"] impl StructureType { - pub const PHYSICAL_DEVICE_DIAGNOSTICS_CONFIG_FEATURES_NV: Self = StructureType(1_000_300_000); + pub const PHYSICAL_DEVICE_DIAGNOSTICS_CONFIG_FEATURES_NV: Self = Self(1_000_300_000); } #[doc = "Generated from \'VK_NV_device_diagnostics_config\'"] impl StructureType { - pub const DEVICE_DIAGNOSTICS_CONFIG_CREATE_INFO_NV: Self = StructureType(1_000_300_001); + pub const DEVICE_DIAGNOSTICS_CONFIG_CREATE_INFO_NV: Self = Self(1_000_300_001); } impl QcomExtension302Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -21565,7 +21505,7 @@ impl KhrExtension309Fn { } #[doc = "Generated from \'VK_KHR_extension_309\'"] impl MemoryHeapFlags { - pub const RESERVED_2_KHR: Self = MemoryHeapFlags(0b100); + pub const RESERVED_2_KHR: Self = Self(0b100); } impl QcomExtension310Fn { pub fn name() -> &'static ::std::ffi::CStr { @@ -21591,7 +21531,7 @@ impl QcomExtension310Fn { } #[doc = "Generated from \'VK_QCOM_extension_310\'"] impl StructureType { - pub const RESERVED_QCOM: Self = StructureType(1_000_309_000); + pub const RESERVED_QCOM: Self = Self(1_000_309_000); } impl NvExtension311Fn { pub fn name() -> &'static ::std::ffi::CStr { diff --git a/ash/src/vk/feature_extensions.rs b/ash/src/vk/feature_extensions.rs index c453aae..f3e8159 100644 --- a/ash/src/vk/feature_extensions.rs +++ b/ash/src/vk/feature_extensions.rs @@ -2,212 +2,211 @@ use crate::vk::bitflags::*; use crate::vk::enums::*; #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const PHYSICAL_DEVICE_SUBGROUP_PROPERTIES: Self = StructureType(1_000_094_000); + pub const PHYSICAL_DEVICE_SUBGROUP_PROPERTIES: Self = Self(1_000_094_000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const BIND_BUFFER_MEMORY_INFO: Self = StructureType(1_000_157_000); + pub const BIND_BUFFER_MEMORY_INFO: Self = Self(1_000_157_000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const BIND_IMAGE_MEMORY_INFO: Self = StructureType(1_000_157_001); + pub const BIND_IMAGE_MEMORY_INFO: Self = Self(1_000_157_001); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl ImageCreateFlags { - pub const ALIAS: Self = ImageCreateFlags(0b100_0000_0000); + pub const ALIAS: Self = Self(0b100_0000_0000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const PHYSICAL_DEVICE_16BIT_STORAGE_FEATURES: Self = StructureType(1_000_083_000); + pub const PHYSICAL_DEVICE_16BIT_STORAGE_FEATURES: Self = Self(1_000_083_000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const MEMORY_DEDICATED_REQUIREMENTS: Self = StructureType(1_000_127_000); + pub const MEMORY_DEDICATED_REQUIREMENTS: Self = Self(1_000_127_000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const MEMORY_DEDICATED_ALLOCATE_INFO: Self = StructureType(1_000_127_001); + pub const MEMORY_DEDICATED_ALLOCATE_INFO: Self = Self(1_000_127_001); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const MEMORY_ALLOCATE_FLAGS_INFO: Self = StructureType(1_000_060_000); + pub const MEMORY_ALLOCATE_FLAGS_INFO: Self = Self(1_000_060_000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const DEVICE_GROUP_RENDER_PASS_BEGIN_INFO: Self = StructureType(1_000_060_003); + pub const DEVICE_GROUP_RENDER_PASS_BEGIN_INFO: Self = Self(1_000_060_003); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const DEVICE_GROUP_COMMAND_BUFFER_BEGIN_INFO: Self = StructureType(1_000_060_004); + pub const DEVICE_GROUP_COMMAND_BUFFER_BEGIN_INFO: Self = Self(1_000_060_004); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const DEVICE_GROUP_SUBMIT_INFO: Self = StructureType(1_000_060_005); + pub const DEVICE_GROUP_SUBMIT_INFO: Self = Self(1_000_060_005); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const DEVICE_GROUP_BIND_SPARSE_INFO: Self = StructureType(1_000_060_006); + pub const DEVICE_GROUP_BIND_SPARSE_INFO: Self = Self(1_000_060_006); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl PipelineCreateFlags { - pub const VIEW_INDEX_FROM_DEVICE_INDEX: Self = PipelineCreateFlags(0b1000); + pub const VIEW_INDEX_FROM_DEVICE_INDEX: Self = Self(0b1000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl PipelineCreateFlags { - pub const DISPATCH_BASE: Self = PipelineCreateFlags(0b1_0000); + pub const DISPATCH_BASE: Self = Self(0b1_0000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl DependencyFlags { - pub const DEVICE_GROUP: Self = DependencyFlags(0b100); + pub const DEVICE_GROUP: Self = Self(0b100); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const BIND_BUFFER_MEMORY_DEVICE_GROUP_INFO: Self = StructureType(1_000_060_013); + pub const BIND_BUFFER_MEMORY_DEVICE_GROUP_INFO: Self = Self(1_000_060_013); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const BIND_IMAGE_MEMORY_DEVICE_GROUP_INFO: Self = StructureType(1_000_060_014); + pub const BIND_IMAGE_MEMORY_DEVICE_GROUP_INFO: Self = Self(1_000_060_014); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl ImageCreateFlags { - pub const SPLIT_INSTANCE_BIND_REGIONS: Self = ImageCreateFlags(0b100_0000); + pub const SPLIT_INSTANCE_BIND_REGIONS: Self = Self(0b100_0000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const PHYSICAL_DEVICE_GROUP_PROPERTIES: Self = StructureType(1_000_070_000); + pub const PHYSICAL_DEVICE_GROUP_PROPERTIES: Self = Self(1_000_070_000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const DEVICE_GROUP_DEVICE_CREATE_INFO: Self = StructureType(1_000_070_001); + pub const DEVICE_GROUP_DEVICE_CREATE_INFO: Self = Self(1_000_070_001); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl MemoryHeapFlags { - pub const MULTI_INSTANCE: Self = MemoryHeapFlags(0b10); + pub const MULTI_INSTANCE: Self = Self(0b10); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const BUFFER_MEMORY_REQUIREMENTS_INFO_2: Self = StructureType(1_000_146_000); + pub const BUFFER_MEMORY_REQUIREMENTS_INFO_2: Self = Self(1_000_146_000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const IMAGE_MEMORY_REQUIREMENTS_INFO_2: Self = StructureType(1_000_146_001); + pub const IMAGE_MEMORY_REQUIREMENTS_INFO_2: Self = Self(1_000_146_001); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const IMAGE_SPARSE_MEMORY_REQUIREMENTS_INFO_2: Self = StructureType(1_000_146_002); + pub const IMAGE_SPARSE_MEMORY_REQUIREMENTS_INFO_2: Self = Self(1_000_146_002); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const MEMORY_REQUIREMENTS_2: Self = StructureType(1_000_146_003); + pub const MEMORY_REQUIREMENTS_2: Self = Self(1_000_146_003); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const SPARSE_IMAGE_MEMORY_REQUIREMENTS_2: Self = StructureType(1_000_146_004); + pub const SPARSE_IMAGE_MEMORY_REQUIREMENTS_2: Self = Self(1_000_146_004); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const PHYSICAL_DEVICE_FEATURES_2: Self = StructureType(1_000_059_000); + pub const PHYSICAL_DEVICE_FEATURES_2: Self = Self(1_000_059_000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const PHYSICAL_DEVICE_PROPERTIES_2: Self = StructureType(1_000_059_001); + pub const PHYSICAL_DEVICE_PROPERTIES_2: Self = Self(1_000_059_001); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const FORMAT_PROPERTIES_2: Self = StructureType(1_000_059_002); + pub const FORMAT_PROPERTIES_2: Self = Self(1_000_059_002); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const IMAGE_FORMAT_PROPERTIES_2: Self = StructureType(1_000_059_003); + pub const IMAGE_FORMAT_PROPERTIES_2: Self = Self(1_000_059_003); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const PHYSICAL_DEVICE_IMAGE_FORMAT_INFO_2: Self = StructureType(1_000_059_004); + pub const PHYSICAL_DEVICE_IMAGE_FORMAT_INFO_2: Self = Self(1_000_059_004); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const QUEUE_FAMILY_PROPERTIES_2: Self = StructureType(1_000_059_005); + pub const QUEUE_FAMILY_PROPERTIES_2: Self = Self(1_000_059_005); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const PHYSICAL_DEVICE_MEMORY_PROPERTIES_2: Self = StructureType(1_000_059_006); + pub const PHYSICAL_DEVICE_MEMORY_PROPERTIES_2: Self = Self(1_000_059_006); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const SPARSE_IMAGE_FORMAT_PROPERTIES_2: Self = StructureType(1_000_059_007); + pub const SPARSE_IMAGE_FORMAT_PROPERTIES_2: Self = Self(1_000_059_007); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const PHYSICAL_DEVICE_SPARSE_IMAGE_FORMAT_INFO_2: Self = StructureType(1_000_059_008); + pub const PHYSICAL_DEVICE_SPARSE_IMAGE_FORMAT_INFO_2: Self = Self(1_000_059_008); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl Result { - pub const ERROR_OUT_OF_POOL_MEMORY: Self = Result(-1_000_069_000); + pub const ERROR_OUT_OF_POOL_MEMORY: Self = Self(-1_000_069_000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl FormatFeatureFlags { - pub const TRANSFER_SRC: Self = FormatFeatureFlags(0b100_0000_0000_0000); + pub const TRANSFER_SRC: Self = Self(0b100_0000_0000_0000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl FormatFeatureFlags { - pub const TRANSFER_DST: Self = FormatFeatureFlags(0b1000_0000_0000_0000); + pub const TRANSFER_DST: Self = Self(0b1000_0000_0000_0000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl ImageCreateFlags { - pub const TYPE_2D_ARRAY_COMPATIBLE: Self = ImageCreateFlags(0b10_0000); + pub const TYPE_2D_ARRAY_COMPATIBLE: Self = Self(0b10_0000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl ImageCreateFlags { - pub const BLOCK_TEXEL_VIEW_COMPATIBLE: Self = ImageCreateFlags(0b1000_0000); + pub const BLOCK_TEXEL_VIEW_COMPATIBLE: Self = Self(0b1000_0000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl ImageCreateFlags { - pub const EXTENDED_USAGE: Self = ImageCreateFlags(0b1_0000_0000); + pub const EXTENDED_USAGE: Self = Self(0b1_0000_0000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const PHYSICAL_DEVICE_POINT_CLIPPING_PROPERTIES: Self = StructureType(1_000_117_000); + pub const PHYSICAL_DEVICE_POINT_CLIPPING_PROPERTIES: Self = Self(1_000_117_000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const RENDER_PASS_INPUT_ATTACHMENT_ASPECT_CREATE_INFO: Self = StructureType(1_000_117_001); + pub const RENDER_PASS_INPUT_ATTACHMENT_ASPECT_CREATE_INFO: Self = Self(1_000_117_001); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const IMAGE_VIEW_USAGE_CREATE_INFO: Self = StructureType(1_000_117_002); + pub const IMAGE_VIEW_USAGE_CREATE_INFO: Self = Self(1_000_117_002); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const PIPELINE_TESSELLATION_DOMAIN_ORIGIN_STATE_CREATE_INFO: Self = - StructureType(1_000_117_003); + pub const PIPELINE_TESSELLATION_DOMAIN_ORIGIN_STATE_CREATE_INFO: Self = Self(1_000_117_003); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl ImageLayout { - pub const DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL: Self = ImageLayout(1_000_117_000); + pub const DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL: Self = Self(1_000_117_000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl ImageLayout { - pub const DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL: Self = ImageLayout(1_000_117_001); + pub const DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL: Self = Self(1_000_117_001); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const RENDER_PASS_MULTIVIEW_CREATE_INFO: Self = StructureType(1_000_053_000); + pub const RENDER_PASS_MULTIVIEW_CREATE_INFO: Self = Self(1_000_053_000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const PHYSICAL_DEVICE_MULTIVIEW_FEATURES: Self = StructureType(1_000_053_001); + pub const PHYSICAL_DEVICE_MULTIVIEW_FEATURES: Self = Self(1_000_053_001); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const PHYSICAL_DEVICE_MULTIVIEW_PROPERTIES: Self = StructureType(1_000_053_002); + pub const PHYSICAL_DEVICE_MULTIVIEW_PROPERTIES: Self = Self(1_000_053_002); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl DependencyFlags { - pub const VIEW_LOCAL: Self = DependencyFlags(0b10); + pub const VIEW_LOCAL: Self = Self(0b10); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const PHYSICAL_DEVICE_VARIABLE_POINTERS_FEATURES: Self = StructureType(1_000_120_000); + pub const PHYSICAL_DEVICE_VARIABLE_POINTERS_FEATURES: Self = Self(1_000_120_000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { @@ -216,336 +215,334 @@ impl StructureType { } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const PROTECTED_SUBMIT_INFO: Self = StructureType(1_000_145_000); + pub const PROTECTED_SUBMIT_INFO: Self = Self(1_000_145_000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const PHYSICAL_DEVICE_PROTECTED_MEMORY_FEATURES: Self = StructureType(1_000_145_001); + pub const PHYSICAL_DEVICE_PROTECTED_MEMORY_FEATURES: Self = Self(1_000_145_001); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const PHYSICAL_DEVICE_PROTECTED_MEMORY_PROPERTIES: Self = StructureType(1_000_145_002); + pub const PHYSICAL_DEVICE_PROTECTED_MEMORY_PROPERTIES: Self = Self(1_000_145_002); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const DEVICE_QUEUE_INFO_2: Self = StructureType(1_000_145_003); + pub const DEVICE_QUEUE_INFO_2: Self = Self(1_000_145_003); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl QueueFlags { - pub const PROTECTED: Self = QueueFlags(0b1_0000); + pub const PROTECTED: Self = Self(0b1_0000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl DeviceQueueCreateFlags { - pub const PROTECTED: Self = DeviceQueueCreateFlags(0b1); + pub const PROTECTED: Self = Self(0b1); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl MemoryPropertyFlags { - pub const PROTECTED: Self = MemoryPropertyFlags(0b10_0000); + pub const PROTECTED: Self = Self(0b10_0000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl BufferCreateFlags { - pub const PROTECTED: Self = BufferCreateFlags(0b1000); + pub const PROTECTED: Self = Self(0b1000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl ImageCreateFlags { - pub const PROTECTED: Self = ImageCreateFlags(0b1000_0000_0000); + pub const PROTECTED: Self = Self(0b1000_0000_0000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl CommandPoolCreateFlags { - pub const PROTECTED: Self = CommandPoolCreateFlags(0b100); + pub const PROTECTED: Self = Self(0b100); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const SAMPLER_YCBCR_CONVERSION_CREATE_INFO: Self = StructureType(1_000_156_000); + pub const SAMPLER_YCBCR_CONVERSION_CREATE_INFO: Self = Self(1_000_156_000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const SAMPLER_YCBCR_CONVERSION_INFO: Self = StructureType(1_000_156_001); + pub const SAMPLER_YCBCR_CONVERSION_INFO: Self = Self(1_000_156_001); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const BIND_IMAGE_PLANE_MEMORY_INFO: Self = StructureType(1_000_156_002); + pub const BIND_IMAGE_PLANE_MEMORY_INFO: Self = Self(1_000_156_002); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const IMAGE_PLANE_MEMORY_REQUIREMENTS_INFO: Self = StructureType(1_000_156_003); + pub const IMAGE_PLANE_MEMORY_REQUIREMENTS_INFO: Self = Self(1_000_156_003); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const PHYSICAL_DEVICE_SAMPLER_YCBCR_CONVERSION_FEATURES: Self = - StructureType(1_000_156_004); + pub const PHYSICAL_DEVICE_SAMPLER_YCBCR_CONVERSION_FEATURES: Self = Self(1_000_156_004); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const SAMPLER_YCBCR_CONVERSION_IMAGE_FORMAT_PROPERTIES: Self = StructureType(1_000_156_005); + pub const SAMPLER_YCBCR_CONVERSION_IMAGE_FORMAT_PROPERTIES: Self = Self(1_000_156_005); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl ObjectType { - pub const SAMPLER_YCBCR_CONVERSION: Self = ObjectType(1_000_156_000); + pub const SAMPLER_YCBCR_CONVERSION: Self = Self(1_000_156_000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl Format { - pub const G8B8G8R8_422_UNORM: Self = Format(1_000_156_000); + pub const G8B8G8R8_422_UNORM: Self = Self(1_000_156_000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl Format { - pub const B8G8R8G8_422_UNORM: Self = Format(1_000_156_001); + pub const B8G8R8G8_422_UNORM: Self = Self(1_000_156_001); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl Format { - pub const G8_B8_R8_3PLANE_420_UNORM: Self = Format(1_000_156_002); + pub const G8_B8_R8_3PLANE_420_UNORM: Self = Self(1_000_156_002); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl Format { - pub const G8_B8R8_2PLANE_420_UNORM: Self = Format(1_000_156_003); + pub const G8_B8R8_2PLANE_420_UNORM: Self = Self(1_000_156_003); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl Format { - pub const G8_B8_R8_3PLANE_422_UNORM: Self = Format(1_000_156_004); + pub const G8_B8_R8_3PLANE_422_UNORM: Self = Self(1_000_156_004); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl Format { - pub const G8_B8R8_2PLANE_422_UNORM: Self = Format(1_000_156_005); + pub const G8_B8R8_2PLANE_422_UNORM: Self = Self(1_000_156_005); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl Format { - pub const G8_B8_R8_3PLANE_444_UNORM: Self = Format(1_000_156_006); + pub const G8_B8_R8_3PLANE_444_UNORM: Self = Self(1_000_156_006); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl Format { - pub const R10X6_UNORM_PACK16: Self = Format(1_000_156_007); + pub const R10X6_UNORM_PACK16: Self = Self(1_000_156_007); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl Format { - pub const R10X6G10X6_UNORM_2PACK16: Self = Format(1_000_156_008); + pub const R10X6G10X6_UNORM_2PACK16: Self = Self(1_000_156_008); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl Format { - pub const R10X6G10X6B10X6A10X6_UNORM_4PACK16: Self = Format(1_000_156_009); + pub const R10X6G10X6B10X6A10X6_UNORM_4PACK16: Self = Self(1_000_156_009); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl Format { - pub const G10X6B10X6G10X6R10X6_422_UNORM_4PACK16: Self = Format(1_000_156_010); + pub const G10X6B10X6G10X6R10X6_422_UNORM_4PACK16: Self = Self(1_000_156_010); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl Format { - pub const B10X6G10X6R10X6G10X6_422_UNORM_4PACK16: Self = Format(1_000_156_011); + pub const B10X6G10X6R10X6G10X6_422_UNORM_4PACK16: Self = Self(1_000_156_011); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl Format { - pub const G10X6_B10X6_R10X6_3PLANE_420_UNORM_3PACK16: Self = Format(1_000_156_012); + pub const G10X6_B10X6_R10X6_3PLANE_420_UNORM_3PACK16: Self = Self(1_000_156_012); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl Format { - pub const G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16: Self = Format(1_000_156_013); + pub const G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16: Self = Self(1_000_156_013); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl Format { - pub const G10X6_B10X6_R10X6_3PLANE_422_UNORM_3PACK16: Self = Format(1_000_156_014); + pub const G10X6_B10X6_R10X6_3PLANE_422_UNORM_3PACK16: Self = Self(1_000_156_014); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl Format { - pub const G10X6_B10X6R10X6_2PLANE_422_UNORM_3PACK16: Self = Format(1_000_156_015); + pub const G10X6_B10X6R10X6_2PLANE_422_UNORM_3PACK16: Self = Self(1_000_156_015); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl Format { - pub const G10X6_B10X6_R10X6_3PLANE_444_UNORM_3PACK16: Self = Format(1_000_156_016); + pub const G10X6_B10X6_R10X6_3PLANE_444_UNORM_3PACK16: Self = Self(1_000_156_016); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl Format { - pub const R12X4_UNORM_PACK16: Self = Format(1_000_156_017); + pub const R12X4_UNORM_PACK16: Self = Self(1_000_156_017); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl Format { - pub const R12X4G12X4_UNORM_2PACK16: Self = Format(1_000_156_018); + pub const R12X4G12X4_UNORM_2PACK16: Self = Self(1_000_156_018); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl Format { - pub const R12X4G12X4B12X4A12X4_UNORM_4PACK16: Self = Format(1_000_156_019); + pub const R12X4G12X4B12X4A12X4_UNORM_4PACK16: Self = Self(1_000_156_019); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl Format { - pub const G12X4B12X4G12X4R12X4_422_UNORM_4PACK16: Self = Format(1_000_156_020); + pub const G12X4B12X4G12X4R12X4_422_UNORM_4PACK16: Self = Self(1_000_156_020); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl Format { - pub const B12X4G12X4R12X4G12X4_422_UNORM_4PACK16: Self = Format(1_000_156_021); + pub const B12X4G12X4R12X4G12X4_422_UNORM_4PACK16: Self = Self(1_000_156_021); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl Format { - pub const G12X4_B12X4_R12X4_3PLANE_420_UNORM_3PACK16: Self = Format(1_000_156_022); + pub const G12X4_B12X4_R12X4_3PLANE_420_UNORM_3PACK16: Self = Self(1_000_156_022); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl Format { - pub const G12X4_B12X4R12X4_2PLANE_420_UNORM_3PACK16: Self = Format(1_000_156_023); + pub const G12X4_B12X4R12X4_2PLANE_420_UNORM_3PACK16: Self = Self(1_000_156_023); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl Format { - pub const G12X4_B12X4_R12X4_3PLANE_422_UNORM_3PACK16: Self = Format(1_000_156_024); + pub const G12X4_B12X4_R12X4_3PLANE_422_UNORM_3PACK16: Self = Self(1_000_156_024); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl Format { - pub const G12X4_B12X4R12X4_2PLANE_422_UNORM_3PACK16: Self = Format(1_000_156_025); + pub const G12X4_B12X4R12X4_2PLANE_422_UNORM_3PACK16: Self = Self(1_000_156_025); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl Format { - pub const G12X4_B12X4_R12X4_3PLANE_444_UNORM_3PACK16: Self = Format(1_000_156_026); + pub const G12X4_B12X4_R12X4_3PLANE_444_UNORM_3PACK16: Self = Self(1_000_156_026); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl Format { - pub const G16B16G16R16_422_UNORM: Self = Format(1_000_156_027); + pub const G16B16G16R16_422_UNORM: Self = Self(1_000_156_027); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl Format { - pub const B16G16R16G16_422_UNORM: Self = Format(1_000_156_028); + pub const B16G16R16G16_422_UNORM: Self = Self(1_000_156_028); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl Format { - pub const G16_B16_R16_3PLANE_420_UNORM: Self = Format(1_000_156_029); + pub const G16_B16_R16_3PLANE_420_UNORM: Self = Self(1_000_156_029); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl Format { - pub const G16_B16R16_2PLANE_420_UNORM: Self = Format(1_000_156_030); + pub const G16_B16R16_2PLANE_420_UNORM: Self = Self(1_000_156_030); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl Format { - pub const G16_B16_R16_3PLANE_422_UNORM: Self = Format(1_000_156_031); + pub const G16_B16_R16_3PLANE_422_UNORM: Self = Self(1_000_156_031); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl Format { - pub const G16_B16R16_2PLANE_422_UNORM: Self = Format(1_000_156_032); + pub const G16_B16R16_2PLANE_422_UNORM: Self = Self(1_000_156_032); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl Format { - pub const G16_B16_R16_3PLANE_444_UNORM: Self = Format(1_000_156_033); + pub const G16_B16_R16_3PLANE_444_UNORM: Self = Self(1_000_156_033); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl ImageAspectFlags { - pub const PLANE_0: Self = ImageAspectFlags(0b1_0000); + pub const PLANE_0: Self = Self(0b1_0000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl ImageAspectFlags { - pub const PLANE_1: Self = ImageAspectFlags(0b10_0000); + pub const PLANE_1: Self = Self(0b10_0000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl ImageAspectFlags { - pub const PLANE_2: Self = ImageAspectFlags(0b100_0000); + pub const PLANE_2: Self = Self(0b100_0000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl ImageCreateFlags { - pub const DISJOINT: Self = ImageCreateFlags(0b10_0000_0000); + pub const DISJOINT: Self = Self(0b10_0000_0000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl FormatFeatureFlags { - pub const MIDPOINT_CHROMA_SAMPLES: Self = FormatFeatureFlags(0b10_0000_0000_0000_0000); + pub const MIDPOINT_CHROMA_SAMPLES: Self = Self(0b10_0000_0000_0000_0000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl FormatFeatureFlags { - pub const SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER: Self = - FormatFeatureFlags(0b100_0000_0000_0000_0000); + pub const SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER: Self = Self(0b100_0000_0000_0000_0000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl FormatFeatureFlags { pub const SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER: Self = - FormatFeatureFlags(0b1000_0000_0000_0000_0000); + Self(0b1000_0000_0000_0000_0000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl FormatFeatureFlags { pub const SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT: Self = - FormatFeatureFlags(0b1_0000_0000_0000_0000_0000); + Self(0b1_0000_0000_0000_0000_0000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl FormatFeatureFlags { pub const SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_FORCEABLE: Self = - FormatFeatureFlags(0b10_0000_0000_0000_0000_0000); + Self(0b10_0000_0000_0000_0000_0000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl FormatFeatureFlags { - pub const DISJOINT: Self = FormatFeatureFlags(0b100_0000_0000_0000_0000_0000); + pub const DISJOINT: Self = Self(0b100_0000_0000_0000_0000_0000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl FormatFeatureFlags { - pub const COSITED_CHROMA_SAMPLES: Self = FormatFeatureFlags(0b1000_0000_0000_0000_0000_0000); + pub const COSITED_CHROMA_SAMPLES: Self = Self(0b1000_0000_0000_0000_0000_0000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const DESCRIPTOR_UPDATE_TEMPLATE_CREATE_INFO: Self = StructureType(1_000_085_000); + pub const DESCRIPTOR_UPDATE_TEMPLATE_CREATE_INFO: Self = Self(1_000_085_000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl ObjectType { - pub const DESCRIPTOR_UPDATE_TEMPLATE: Self = ObjectType(1_000_085_000); + pub const DESCRIPTOR_UPDATE_TEMPLATE: Self = Self(1_000_085_000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const PHYSICAL_DEVICE_EXTERNAL_IMAGE_FORMAT_INFO: Self = StructureType(1_000_071_000); + pub const PHYSICAL_DEVICE_EXTERNAL_IMAGE_FORMAT_INFO: Self = Self(1_000_071_000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const EXTERNAL_IMAGE_FORMAT_PROPERTIES: Self = StructureType(1_000_071_001); + pub const EXTERNAL_IMAGE_FORMAT_PROPERTIES: Self = Self(1_000_071_001); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const PHYSICAL_DEVICE_EXTERNAL_BUFFER_INFO: Self = StructureType(1_000_071_002); + pub const PHYSICAL_DEVICE_EXTERNAL_BUFFER_INFO: Self = Self(1_000_071_002); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const EXTERNAL_BUFFER_PROPERTIES: Self = StructureType(1_000_071_003); + pub const EXTERNAL_BUFFER_PROPERTIES: Self = Self(1_000_071_003); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const PHYSICAL_DEVICE_ID_PROPERTIES: Self = StructureType(1_000_071_004); + pub const PHYSICAL_DEVICE_ID_PROPERTIES: Self = Self(1_000_071_004); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const EXTERNAL_MEMORY_BUFFER_CREATE_INFO: Self = StructureType(1_000_072_000); + pub const EXTERNAL_MEMORY_BUFFER_CREATE_INFO: Self = Self(1_000_072_000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const EXTERNAL_MEMORY_IMAGE_CREATE_INFO: Self = StructureType(1_000_072_001); + pub const EXTERNAL_MEMORY_IMAGE_CREATE_INFO: Self = Self(1_000_072_001); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const EXPORT_MEMORY_ALLOCATE_INFO: Self = StructureType(1_000_072_002); + pub const EXPORT_MEMORY_ALLOCATE_INFO: Self = Self(1_000_072_002); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl Result { - pub const ERROR_INVALID_EXTERNAL_HANDLE: Self = Result(-1_000_072_003); + pub const ERROR_INVALID_EXTERNAL_HANDLE: Self = Self(-1_000_072_003); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const PHYSICAL_DEVICE_EXTERNAL_FENCE_INFO: Self = StructureType(1_000_112_000); + pub const PHYSICAL_DEVICE_EXTERNAL_FENCE_INFO: Self = Self(1_000_112_000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const EXTERNAL_FENCE_PROPERTIES: Self = StructureType(1_000_112_001); + pub const EXTERNAL_FENCE_PROPERTIES: Self = Self(1_000_112_001); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const EXPORT_FENCE_CREATE_INFO: Self = StructureType(1_000_113_000); + pub const EXPORT_FENCE_CREATE_INFO: Self = Self(1_000_113_000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const EXPORT_SEMAPHORE_CREATE_INFO: Self = StructureType(1_000_077_000); + pub const EXPORT_SEMAPHORE_CREATE_INFO: Self = Self(1_000_077_000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const PHYSICAL_DEVICE_EXTERNAL_SEMAPHORE_INFO: Self = StructureType(1_000_076_000); + pub const PHYSICAL_DEVICE_EXTERNAL_SEMAPHORE_INFO: Self = Self(1_000_076_000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const EXTERNAL_SEMAPHORE_PROPERTIES: Self = StructureType(1_000_076_001); + pub const EXTERNAL_SEMAPHORE_PROPERTIES: Self = Self(1_000_076_001); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const PHYSICAL_DEVICE_MAINTENANCE_3_PROPERTIES: Self = StructureType(1_000_168_000); + pub const PHYSICAL_DEVICE_MAINTENANCE_3_PROPERTIES: Self = Self(1_000_168_000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const DESCRIPTOR_SET_LAYOUT_SUPPORT: Self = StructureType(1_000_168_001); + pub const DESCRIPTOR_SET_LAYOUT_SUPPORT: Self = Self(1_000_168_001); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { - pub const PHYSICAL_DEVICE_SHADER_DRAW_PARAMETERS_FEATURES: Self = StructureType(1_000_063_000); + pub const PHYSICAL_DEVICE_SHADER_DRAW_PARAMETERS_FEATURES: Self = Self(1_000_063_000); } #[doc = "Generated from \'VK_VERSION_1_1\'"] impl StructureType { @@ -554,262 +551,257 @@ impl StructureType { } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const PHYSICAL_DEVICE_VULKAN_1_1_FEATURES: Self = StructureType(49); + pub const PHYSICAL_DEVICE_VULKAN_1_1_FEATURES: Self = Self(49); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const PHYSICAL_DEVICE_VULKAN_1_1_PROPERTIES: Self = StructureType(50); + pub const PHYSICAL_DEVICE_VULKAN_1_1_PROPERTIES: Self = Self(50); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const PHYSICAL_DEVICE_VULKAN_1_2_FEATURES: Self = StructureType(51); + pub const PHYSICAL_DEVICE_VULKAN_1_2_FEATURES: Self = Self(51); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const PHYSICAL_DEVICE_VULKAN_1_2_PROPERTIES: Self = StructureType(52); + pub const PHYSICAL_DEVICE_VULKAN_1_2_PROPERTIES: Self = Self(52); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const IMAGE_FORMAT_LIST_CREATE_INFO: Self = StructureType(1_000_147_000); + pub const IMAGE_FORMAT_LIST_CREATE_INFO: Self = Self(1_000_147_000); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const ATTACHMENT_DESCRIPTION_2: Self = StructureType(1_000_109_000); + pub const ATTACHMENT_DESCRIPTION_2: Self = Self(1_000_109_000); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const ATTACHMENT_REFERENCE_2: Self = StructureType(1_000_109_001); + pub const ATTACHMENT_REFERENCE_2: Self = Self(1_000_109_001); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const SUBPASS_DESCRIPTION_2: Self = StructureType(1_000_109_002); + pub const SUBPASS_DESCRIPTION_2: Self = Self(1_000_109_002); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const SUBPASS_DEPENDENCY_2: Self = StructureType(1_000_109_003); + pub const SUBPASS_DEPENDENCY_2: Self = Self(1_000_109_003); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const RENDER_PASS_CREATE_INFO_2: Self = StructureType(1_000_109_004); + pub const RENDER_PASS_CREATE_INFO_2: Self = Self(1_000_109_004); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const SUBPASS_BEGIN_INFO: Self = StructureType(1_000_109_005); + pub const SUBPASS_BEGIN_INFO: Self = Self(1_000_109_005); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const SUBPASS_END_INFO: Self = StructureType(1_000_109_006); + pub const SUBPASS_END_INFO: Self = Self(1_000_109_006); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const PHYSICAL_DEVICE_8BIT_STORAGE_FEATURES: Self = StructureType(1_000_177_000); + pub const PHYSICAL_DEVICE_8BIT_STORAGE_FEATURES: Self = Self(1_000_177_000); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const PHYSICAL_DEVICE_DRIVER_PROPERTIES: Self = StructureType(1_000_196_000); + pub const PHYSICAL_DEVICE_DRIVER_PROPERTIES: Self = Self(1_000_196_000); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const PHYSICAL_DEVICE_SHADER_ATOMIC_INT64_FEATURES: Self = StructureType(1_000_180_000); + pub const PHYSICAL_DEVICE_SHADER_ATOMIC_INT64_FEATURES: Self = Self(1_000_180_000); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const PHYSICAL_DEVICE_SHADER_FLOAT16_INT8_FEATURES: Self = StructureType(1_000_082_000); + pub const PHYSICAL_DEVICE_SHADER_FLOAT16_INT8_FEATURES: Self = Self(1_000_082_000); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const PHYSICAL_DEVICE_FLOAT_CONTROLS_PROPERTIES: Self = StructureType(1_000_197_000); + pub const PHYSICAL_DEVICE_FLOAT_CONTROLS_PROPERTIES: Self = Self(1_000_197_000); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const DESCRIPTOR_SET_LAYOUT_BINDING_FLAGS_CREATE_INFO: Self = StructureType(1_000_161_000); + pub const DESCRIPTOR_SET_LAYOUT_BINDING_FLAGS_CREATE_INFO: Self = Self(1_000_161_000); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const PHYSICAL_DEVICE_DESCRIPTOR_INDEXING_FEATURES: Self = StructureType(1_000_161_001); + pub const PHYSICAL_DEVICE_DESCRIPTOR_INDEXING_FEATURES: Self = Self(1_000_161_001); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const PHYSICAL_DEVICE_DESCRIPTOR_INDEXING_PROPERTIES: Self = StructureType(1_000_161_002); + pub const PHYSICAL_DEVICE_DESCRIPTOR_INDEXING_PROPERTIES: Self = Self(1_000_161_002); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const DESCRIPTOR_SET_VARIABLE_DESCRIPTOR_COUNT_ALLOCATE_INFO: Self = - StructureType(1_000_161_003); + pub const DESCRIPTOR_SET_VARIABLE_DESCRIPTOR_COUNT_ALLOCATE_INFO: Self = Self(1_000_161_003); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const DESCRIPTOR_SET_VARIABLE_DESCRIPTOR_COUNT_LAYOUT_SUPPORT: Self = - StructureType(1_000_161_004); + pub const DESCRIPTOR_SET_VARIABLE_DESCRIPTOR_COUNT_LAYOUT_SUPPORT: Self = Self(1_000_161_004); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl DescriptorPoolCreateFlags { - pub const UPDATE_AFTER_BIND: Self = DescriptorPoolCreateFlags(0b10); + pub const UPDATE_AFTER_BIND: Self = Self(0b10); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl DescriptorSetLayoutCreateFlags { - pub const UPDATE_AFTER_BIND_POOL: Self = DescriptorSetLayoutCreateFlags(0b10); + pub const UPDATE_AFTER_BIND_POOL: Self = Self(0b10); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl Result { - pub const ERROR_FRAGMENTATION: Self = Result(-1_000_161_000); + pub const ERROR_FRAGMENTATION: Self = Self(-1_000_161_000); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const PHYSICAL_DEVICE_DEPTH_STENCIL_RESOLVE_PROPERTIES: Self = StructureType(1_000_199_000); + pub const PHYSICAL_DEVICE_DEPTH_STENCIL_RESOLVE_PROPERTIES: Self = Self(1_000_199_000); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const SUBPASS_DESCRIPTION_DEPTH_STENCIL_RESOLVE: Self = StructureType(1_000_199_001); + pub const SUBPASS_DESCRIPTION_DEPTH_STENCIL_RESOLVE: Self = Self(1_000_199_001); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const PHYSICAL_DEVICE_SCALAR_BLOCK_LAYOUT_FEATURES: Self = StructureType(1_000_221_000); + pub const PHYSICAL_DEVICE_SCALAR_BLOCK_LAYOUT_FEATURES: Self = Self(1_000_221_000); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const IMAGE_STENCIL_USAGE_CREATE_INFO: Self = StructureType(1_000_246_000); + pub const IMAGE_STENCIL_USAGE_CREATE_INFO: Self = Self(1_000_246_000); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const PHYSICAL_DEVICE_SAMPLER_FILTER_MINMAX_PROPERTIES: Self = StructureType(1_000_130_000); + pub const PHYSICAL_DEVICE_SAMPLER_FILTER_MINMAX_PROPERTIES: Self = Self(1_000_130_000); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const SAMPLER_REDUCTION_MODE_CREATE_INFO: Self = StructureType(1_000_130_001); + pub const SAMPLER_REDUCTION_MODE_CREATE_INFO: Self = Self(1_000_130_001); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl FormatFeatureFlags { - pub const SAMPLED_IMAGE_FILTER_MINMAX: Self = FormatFeatureFlags(0b1_0000_0000_0000_0000); + pub const SAMPLED_IMAGE_FILTER_MINMAX: Self = Self(0b1_0000_0000_0000_0000); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const PHYSICAL_DEVICE_VULKAN_MEMORY_MODEL_FEATURES: Self = StructureType(1_000_211_000); + pub const PHYSICAL_DEVICE_VULKAN_MEMORY_MODEL_FEATURES: Self = Self(1_000_211_000); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const PHYSICAL_DEVICE_IMAGELESS_FRAMEBUFFER_FEATURES: Self = StructureType(1_000_108_000); + pub const PHYSICAL_DEVICE_IMAGELESS_FRAMEBUFFER_FEATURES: Self = Self(1_000_108_000); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const FRAMEBUFFER_ATTACHMENTS_CREATE_INFO: Self = StructureType(1_000_108_001); + pub const FRAMEBUFFER_ATTACHMENTS_CREATE_INFO: Self = Self(1_000_108_001); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const FRAMEBUFFER_ATTACHMENT_IMAGE_INFO: Self = StructureType(1_000_108_002); + pub const FRAMEBUFFER_ATTACHMENT_IMAGE_INFO: Self = Self(1_000_108_002); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const RENDER_PASS_ATTACHMENT_BEGIN_INFO: Self = StructureType(1_000_108_003); + pub const RENDER_PASS_ATTACHMENT_BEGIN_INFO: Self = Self(1_000_108_003); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl FramebufferCreateFlags { - pub const IMAGELESS: Self = FramebufferCreateFlags(0b1); + pub const IMAGELESS: Self = Self(0b1); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const PHYSICAL_DEVICE_UNIFORM_BUFFER_STANDARD_LAYOUT_FEATURES: Self = - StructureType(1_000_253_000); + pub const PHYSICAL_DEVICE_UNIFORM_BUFFER_STANDARD_LAYOUT_FEATURES: Self = Self(1_000_253_000); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const PHYSICAL_DEVICE_SHADER_SUBGROUP_EXTENDED_TYPES_FEATURES: Self = - StructureType(1_000_175_000); + pub const PHYSICAL_DEVICE_SHADER_SUBGROUP_EXTENDED_TYPES_FEATURES: Self = Self(1_000_175_000); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const PHYSICAL_DEVICE_SEPARATE_DEPTH_STENCIL_LAYOUTS_FEATURES: Self = - StructureType(1_000_241_000); + pub const PHYSICAL_DEVICE_SEPARATE_DEPTH_STENCIL_LAYOUTS_FEATURES: Self = Self(1_000_241_000); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const ATTACHMENT_REFERENCE_STENCIL_LAYOUT: Self = StructureType(1_000_241_001); + pub const ATTACHMENT_REFERENCE_STENCIL_LAYOUT: Self = Self(1_000_241_001); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const ATTACHMENT_DESCRIPTION_STENCIL_LAYOUT: Self = StructureType(1_000_241_002); + pub const ATTACHMENT_DESCRIPTION_STENCIL_LAYOUT: Self = Self(1_000_241_002); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl ImageLayout { - pub const DEPTH_ATTACHMENT_OPTIMAL: Self = ImageLayout(1_000_241_000); + pub const DEPTH_ATTACHMENT_OPTIMAL: Self = Self(1_000_241_000); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl ImageLayout { - pub const DEPTH_READ_ONLY_OPTIMAL: Self = ImageLayout(1_000_241_001); + pub const DEPTH_READ_ONLY_OPTIMAL: Self = Self(1_000_241_001); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl ImageLayout { - pub const STENCIL_ATTACHMENT_OPTIMAL: Self = ImageLayout(1_000_241_002); + pub const STENCIL_ATTACHMENT_OPTIMAL: Self = Self(1_000_241_002); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl ImageLayout { - pub const STENCIL_READ_ONLY_OPTIMAL: Self = ImageLayout(1_000_241_003); + pub const STENCIL_READ_ONLY_OPTIMAL: Self = Self(1_000_241_003); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const PHYSICAL_DEVICE_HOST_QUERY_RESET_FEATURES: Self = StructureType(1_000_261_000); + pub const PHYSICAL_DEVICE_HOST_QUERY_RESET_FEATURES: Self = Self(1_000_261_000); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_FEATURES: Self = StructureType(1_000_207_000); + pub const PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_FEATURES: Self = Self(1_000_207_000); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_PROPERTIES: Self = StructureType(1_000_207_001); + pub const PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_PROPERTIES: Self = Self(1_000_207_001); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const SEMAPHORE_TYPE_CREATE_INFO: Self = StructureType(1_000_207_002); + pub const SEMAPHORE_TYPE_CREATE_INFO: Self = Self(1_000_207_002); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const TIMELINE_SEMAPHORE_SUBMIT_INFO: Self = StructureType(1_000_207_003); + pub const TIMELINE_SEMAPHORE_SUBMIT_INFO: Self = Self(1_000_207_003); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const SEMAPHORE_WAIT_INFO: Self = StructureType(1_000_207_004); + pub const SEMAPHORE_WAIT_INFO: Self = Self(1_000_207_004); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const SEMAPHORE_SIGNAL_INFO: Self = StructureType(1_000_207_005); + pub const SEMAPHORE_SIGNAL_INFO: Self = Self(1_000_207_005); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const PHYSICAL_DEVICE_BUFFER_DEVICE_ADDRESS_FEATURES: Self = StructureType(1_000_257_000); + pub const PHYSICAL_DEVICE_BUFFER_DEVICE_ADDRESS_FEATURES: Self = Self(1_000_257_000); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const BUFFER_DEVICE_ADDRESS_INFO: Self = StructureType(1_000_244_001); + pub const BUFFER_DEVICE_ADDRESS_INFO: Self = Self(1_000_244_001); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const BUFFER_OPAQUE_CAPTURE_ADDRESS_CREATE_INFO: Self = StructureType(1_000_257_002); + pub const BUFFER_OPAQUE_CAPTURE_ADDRESS_CREATE_INFO: Self = Self(1_000_257_002); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const MEMORY_OPAQUE_CAPTURE_ADDRESS_ALLOCATE_INFO: Self = StructureType(1_000_257_003); + pub const MEMORY_OPAQUE_CAPTURE_ADDRESS_ALLOCATE_INFO: Self = Self(1_000_257_003); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl StructureType { - pub const DEVICE_MEMORY_OPAQUE_CAPTURE_ADDRESS_INFO: Self = StructureType(1_000_257_004); + pub const DEVICE_MEMORY_OPAQUE_CAPTURE_ADDRESS_INFO: Self = Self(1_000_257_004); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl BufferUsageFlags { - pub const SHADER_DEVICE_ADDRESS: Self = BufferUsageFlags(0b10_0000_0000_0000_0000); + pub const SHADER_DEVICE_ADDRESS: Self = Self(0b10_0000_0000_0000_0000); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl BufferCreateFlags { - pub const DEVICE_ADDRESS_CAPTURE_REPLAY: Self = BufferCreateFlags(0b1_0000); + pub const DEVICE_ADDRESS_CAPTURE_REPLAY: Self = Self(0b1_0000); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl MemoryAllocateFlags { - pub const DEVICE_ADDRESS: Self = MemoryAllocateFlags(0b10); + pub const DEVICE_ADDRESS: Self = Self(0b10); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl MemoryAllocateFlags { - pub const DEVICE_ADDRESS_CAPTURE_REPLAY: Self = MemoryAllocateFlags(0b100); + pub const DEVICE_ADDRESS_CAPTURE_REPLAY: Self = Self(0b100); } #[doc = "Generated from \'VK_VERSION_1_2\'"] impl Result { - pub const ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS: Self = Result(-1_000_257_000); + pub const ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS: Self = Self(-1_000_257_000); } diff --git a/examples/src/lib.rs b/examples/src/lib.rs index 06beeb7..48c7bc0 100644 --- a/examples/src/lib.rs +++ b/examples/src/lib.rs @@ -38,7 +38,6 @@ use std::cell::RefCell; use std::default::Default; use std::ffi::{CStr, CString}; use std::ops::Drop; -use std::os::raw::c_void; // Simple offset_of macro akin to C++ offsetof #[macro_export] diff --git a/generator/src/lib.rs b/generator/src/lib.rs index df0b2f0..0f682ca 100644 --- a/generator/src/lib.rs +++ b/generator/src/lib.rs @@ -2,10 +2,8 @@ #[macro_use] extern crate nom; -use proc_macro2; #[macro_use] extern crate quote; -use syn; pub use vk_parse; pub use vkxml; @@ -390,20 +388,21 @@ impl ConstVal { } } pub trait ConstantExt { + fn constant(&self) -> Constant; fn variant_ident(&self, enum_name: &str) -> Ident; - fn to_tokens(&self, ident: Option) -> Tokens; + fn to_tokens(&self) -> Tokens; fn notation(&self) -> Option<&str>; } impl ConstantExt for vkxml::ExtensionEnum { + fn constant(&self) -> Constant { + Constant::from_extension_enum(self).unwrap() + } fn variant_ident(&self, enum_name: &str) -> Ident { variant_ident(enum_name, &self.name) } - fn to_tokens(&self, ident: Option) -> Tokens { - let expr = Constant::from_extension_enum(self) - .expect("") - .to_tokens(ident); - quote! { #ident(#expr) } + fn to_tokens(&self) -> Tokens { + Constant::from_extension_enum(self).expect("").to_tokens() } fn notation(&self) -> Option<&str> { self.notation.as_deref() @@ -411,19 +410,21 @@ impl ConstantExt for vkxml::ExtensionEnum { } impl ConstantExt for vkxml::Constant { + fn constant(&self) -> Constant { + Constant::from_constant(self) + } fn variant_ident(&self, enum_name: &str) -> Ident { variant_ident(enum_name, &self.name) } - fn to_tokens(&self, ident: Option) -> Tokens { - let expr = Constant::from_constant(self).to_tokens(ident); - quote! { #expr } + fn to_tokens(&self) -> Tokens { + Constant::from_constant(self).to_tokens() } fn notation(&self) -> Option<&str> { self.notation.as_deref() } } -#[derive(Debug)] +#[derive(Clone, Debug)] pub enum Constant { Number(i32), Hex(String), @@ -479,32 +480,32 @@ impl Constant { } } - pub fn to_tokens(&self, ident: Option) -> Tokens { + pub fn to_tokens(&self) -> Tokens { match *self { Constant::Number(n) => { let number = interleave_number('_', 3, &n.to_string()); let term = Term::intern(&number); - quote! {#ident(#term)} + quote! {#term} } Constant::Hex(ref s) => { let number = interleave_number('_', 4, s); let term = Term::intern(&format!("0x{}", number)); - quote! {#ident(#term)} + quote! {#term} } Constant::Text(ref text) => { - quote! {#ident(#text)} + quote! {#text} } Constant::CExpr(ref expr) => { let (_, (_, rexpr)) = cexpr(expr).expect("Unable to parse cexpr"); let term = Term::intern(rexpr.as_str()); - quote! {#ident(#term)} + quote! {#term} } Constant::BitPos(pos) => { let value = 1 << pos; let bit_string = format!("{:b}", value); let bit_string = interleave_number('_', 4, &bit_string); let term = Term::intern(&format!("0b{}", bit_string)); - quote! {#ident(#term)} + quote! {#term} } Constant::Alias(ref base, ref value) => { quote! {#base::#value} @@ -938,11 +939,14 @@ pub struct ExtensionConstant<'a> { pub constant: Constant, } impl<'a> ConstantExt for ExtensionConstant<'a> { + fn constant(&self) -> Constant { + self.constant.clone() + } fn variant_ident(&self, enum_name: &str) -> Ident { variant_ident(enum_name, self.name) } - fn to_tokens(&self, ident: Option) -> Tokens { - self.constant.to_tokens(ident) + fn to_tokens(&self) -> Tokens { + self.constant.to_tokens() } fn notation(&self) -> Option<&str> { None @@ -1208,7 +1212,13 @@ pub fn bitflags_impl_block( .iter() .map(|constant| { let variant_ident = constant.variant_ident(enum_name); - let tokens = constant.to_tokens(Some(ident)); + let constant = constant.constant(); + let tokens = constant.to_tokens(); + let tokens = if let Constant::Alias(_, _) = &constant { + tokens + } else { + quote!(Self(#tokens)) + }; (variant_ident, tokens) }) .collect_vec(); @@ -2125,7 +2135,7 @@ pub fn generate_constant<'a>( let c = Constant::from_constant(constant); let name = constant_name(&constant.name); let ident = Ident::from(name.as_str()); - let value = c.to_tokens(None); + let value = c.to_tokens(); let ty = if name == "TRUE" || name == "FALSE" { CType::Bool32 } else {