extensions: Group enum extension variants together per impl T
block
Instead of generating an impl block - together with "Generated from XXX" doc - for every single item that extends an enum type, group all these extensions together in a single `impl` block per extension per type. This cuts down a couple thousand lines of repeated `impl T` and `#[doc]` annotations, and makes the code more readable at the same time: it is now possible to immediately see exactly all the constants that a certain extension extends a type with.
This commit is contained in:
parent
8f4709e70d
commit
87b00568a6
File diff suppressed because it is too large
Load diff
|
@ -1,658 +1,218 @@
|
||||||
use crate::vk::bitflags::*;
|
use crate::vk::bitflags::*;
|
||||||
use crate::vk::enums::*;
|
use crate::vk::enums::*;
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_157_000);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(0b100_0000_0000);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_127_000);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_060_000);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_060_004);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_060_006);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl PipelineCreateFlags {
|
|
||||||
pub const VIEW_INDEX_FROM_DEVICE_INDEX: Self = Self(0b1000);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl PipelineCreateFlags {
|
|
||||||
pub const DISPATCH_BASE: Self = Self(0b1_0000);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl DependencyFlags {
|
|
||||||
#[doc = "Dependency is across devices"]
|
|
||||||
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 = Self(1_000_060_013);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl StructureType {
|
|
||||||
pub const BIND_IMAGE_MEMORY_DEVICE_GROUP_INFO: Self = Self(1_000_060_014);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl ImageCreateFlags {
|
|
||||||
#[doc = "Allows using VkBindImageMemoryDeviceGroupInfo::pSplitInstanceBindRegions when binding memory to the image"]
|
|
||||||
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 = Self(1_000_070_000);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl StructureType {
|
|
||||||
pub const DEVICE_GROUP_DEVICE_CREATE_INFO: Self = Self(1_000_070_001);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl MemoryHeapFlags {
|
|
||||||
#[doc = "If set, heap allocations allocate multiple instances by default"]
|
|
||||||
pub const MULTI_INSTANCE: Self = Self(0b10);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_146_001);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_146_003);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_059_000);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_059_002);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_059_004);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_059_006);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_059_008);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl Result {
|
|
||||||
pub const ERROR_OUT_OF_POOL_MEMORY: Self = Self(-1_000_069_000);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl FormatFeatureFlags {
|
|
||||||
#[doc = "Format can be used as the source image of image transfer commands"]
|
|
||||||
pub const TRANSFER_SRC: Self = Self(0b100_0000_0000_0000);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl FormatFeatureFlags {
|
|
||||||
#[doc = "Format can be used as the destination image of image transfer commands"]
|
|
||||||
pub const TRANSFER_DST: Self = Self(0b1000_0000_0000_0000);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl ImageCreateFlags {
|
|
||||||
#[doc = "The 3D image can be viewed as a 2D or 2D array image"]
|
|
||||||
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 = Self(0b1000_0000);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl ImageCreateFlags {
|
|
||||||
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 = Self(1_000_117_000);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_117_002);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_117_000);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl ImageLayout {
|
|
||||||
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 = Self(1_000_053_000);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_053_002);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl DependencyFlags {
|
|
||||||
pub const VIEW_LOCAL: Self = Self(0b10);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl StructureType {
|
|
||||||
pub const PHYSICAL_DEVICE_VARIABLE_POINTERS_FEATURES: Self = Self(1_000_120_000);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl StructureType {
|
|
||||||
pub const PHYSICAL_DEVICE_VARIABLE_POINTER_FEATURES: Self =
|
|
||||||
Self::PHYSICAL_DEVICE_VARIABLE_POINTERS_FEATURES;
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_145_001);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_145_003);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl QueueFlags {
|
|
||||||
#[doc = "Queues may support protected operations"]
|
|
||||||
pub const PROTECTED: Self = Self(0b1_0000);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl DeviceQueueCreateFlags {
|
|
||||||
#[doc = "Queue is a protected-capable device queue"]
|
|
||||||
pub const PROTECTED: Self = Self(0b1);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl MemoryPropertyFlags {
|
|
||||||
#[doc = "Memory is protected"]
|
|
||||||
pub const PROTECTED: Self = Self(0b10_0000);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl BufferCreateFlags {
|
impl BufferCreateFlags {
|
||||||
#[doc = "Buffer requires protected memory"]
|
#[doc = "Buffer requires protected memory"]
|
||||||
pub const PROTECTED: Self = Self(0b1000);
|
pub const PROTECTED: Self = Self(0b1000);
|
||||||
}
|
}
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
||||||
impl ImageCreateFlags {
|
|
||||||
#[doc = "Image requires protected memory"]
|
|
||||||
pub const PROTECTED: Self = Self(0b1000_0000_0000);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl CommandPoolCreateFlags {
|
impl CommandPoolCreateFlags {
|
||||||
#[doc = "Command buffers allocated from pool are protected command buffers"]
|
#[doc = "Command buffers allocated from pool are protected command buffers"]
|
||||||
pub const PROTECTED: Self = Self(0b100);
|
pub const PROTECTED: Self = Self(0b100);
|
||||||
}
|
}
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
||||||
impl StructureType {
|
impl DependencyFlags {
|
||||||
pub const SAMPLER_YCBCR_CONVERSION_CREATE_INFO: Self = Self(1_000_156_000);
|
#[doc = "Dependency is across devices"]
|
||||||
|
pub const DEVICE_GROUP: Self = Self(0b100);
|
||||||
|
pub const VIEW_LOCAL: Self = Self(0b10);
|
||||||
}
|
}
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
||||||
impl StructureType {
|
impl DeviceQueueCreateFlags {
|
||||||
pub const SAMPLER_YCBCR_CONVERSION_INFO: Self = Self(1_000_156_001);
|
#[doc = "Queue is a protected-capable device queue"]
|
||||||
}
|
pub const PROTECTED: Self = Self(0b1);
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_156_003);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_156_005);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl ObjectType {
|
|
||||||
pub const SAMPLER_YCBCR_CONVERSION: Self = Self(1_000_156_000);
|
|
||||||
}
|
}
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
||||||
impl Format {
|
impl Format {
|
||||||
pub const G8B8G8R8_422_UNORM: Self = Self(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 = Self(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 = Self(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 = Self(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 = Self(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 = Self(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 = Self(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 = Self(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 = Self(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 = Self(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 = Self(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 = Self(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 = Self(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 = Self(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 = Self(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 = Self(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 = Self(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 = Self(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 = Self(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 = Self(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 = Self(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 = Self(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 = Self(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 = Self(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 = Self(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 = Self(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 = Self(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 = Self(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 = Self(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 = Self(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 = Self(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 = Self(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 = Self(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 = Self(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'"]
|
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
||||||
impl ImageAspectFlags {
|
|
||||||
pub const PLANE_0: Self = Self(0b1_0000);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl ImageAspectFlags {
|
|
||||||
pub const PLANE_1: Self = Self(0b10_0000);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl ImageAspectFlags {
|
|
||||||
pub const PLANE_2: Self = Self(0b100_0000);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl ImageCreateFlags {
|
|
||||||
pub const DISJOINT: Self = Self(0b10_0000_0000);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl FormatFeatureFlags {
|
impl FormatFeatureFlags {
|
||||||
|
#[doc = "Format can be used as the source image of image transfer commands"]
|
||||||
|
pub const TRANSFER_SRC: Self = Self(0b100_0000_0000_0000);
|
||||||
|
#[doc = "Format can be used as the destination image of image transfer commands"]
|
||||||
|
pub const TRANSFER_DST: Self = Self(0b1000_0000_0000_0000);
|
||||||
#[doc = "Format can have midpoint rather than cosited chroma samples"]
|
#[doc = "Format can have midpoint rather than cosited chroma samples"]
|
||||||
pub const MIDPOINT_CHROMA_SAMPLES: Self = Self(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 {
|
|
||||||
#[doc = "Format can be used with linear filtering whilst color conversion is enabled"]
|
#[doc = "Format can be used with linear filtering whilst color conversion is enabled"]
|
||||||
pub const SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER: Self = Self(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 {
|
|
||||||
#[doc = "Format can have different chroma, min and mag filters"]
|
#[doc = "Format can have different chroma, min and mag filters"]
|
||||||
pub const SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER: Self =
|
pub const SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER: Self =
|
||||||
Self(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 =
|
pub const SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT: Self =
|
||||||
Self(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 =
|
pub const SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_FORCEABLE: Self =
|
||||||
Self(0b10_0000_0000_0000_0000_0000);
|
Self(0b10_0000_0000_0000_0000_0000);
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl FormatFeatureFlags {
|
|
||||||
#[doc = "Format supports disjoint planes"]
|
#[doc = "Format supports disjoint planes"]
|
||||||
pub const DISJOINT: Self = Self(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 {
|
|
||||||
#[doc = "Format can have cosited rather than midpoint chroma samples"]
|
#[doc = "Format can have cosited rather than midpoint chroma samples"]
|
||||||
pub const COSITED_CHROMA_SAMPLES: Self = Self(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'"]
|
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
||||||
impl StructureType {
|
impl ImageAspectFlags {
|
||||||
pub const DESCRIPTOR_UPDATE_TEMPLATE_CREATE_INFO: Self = Self(1_000_085_000);
|
pub const PLANE_0: Self = Self(0b1_0000);
|
||||||
|
pub const PLANE_1: Self = Self(0b10_0000);
|
||||||
|
pub const PLANE_2: Self = Self(0b100_0000);
|
||||||
|
}
|
||||||
|
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
||||||
|
impl ImageCreateFlags {
|
||||||
|
pub const ALIAS: Self = Self(0b100_0000_0000);
|
||||||
|
#[doc = "Allows using VkBindImageMemoryDeviceGroupInfo::pSplitInstanceBindRegions when binding memory to the image"]
|
||||||
|
pub const SPLIT_INSTANCE_BIND_REGIONS: Self = Self(0b100_0000);
|
||||||
|
#[doc = "The 3D image can be viewed as a 2D or 2D array image"]
|
||||||
|
pub const TYPE_2D_ARRAY_COMPATIBLE: Self = Self(0b10_0000);
|
||||||
|
pub const BLOCK_TEXEL_VIEW_COMPATIBLE: Self = Self(0b1000_0000);
|
||||||
|
pub const EXTENDED_USAGE: Self = Self(0b1_0000_0000);
|
||||||
|
#[doc = "Image requires protected memory"]
|
||||||
|
pub const PROTECTED: Self = Self(0b1000_0000_0000);
|
||||||
|
pub const DISJOINT: Self = Self(0b10_0000_0000);
|
||||||
|
}
|
||||||
|
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
||||||
|
impl ImageLayout {
|
||||||
|
pub const DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL: Self = Self(1_000_117_000);
|
||||||
|
pub const DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL: Self = Self(1_000_117_001);
|
||||||
|
}
|
||||||
|
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
||||||
|
impl MemoryHeapFlags {
|
||||||
|
#[doc = "If set, heap allocations allocate multiple instances by default"]
|
||||||
|
pub const MULTI_INSTANCE: Self = Self(0b10);
|
||||||
|
}
|
||||||
|
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
||||||
|
impl MemoryPropertyFlags {
|
||||||
|
#[doc = "Memory is protected"]
|
||||||
|
pub const PROTECTED: Self = Self(0b10_0000);
|
||||||
}
|
}
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
||||||
impl ObjectType {
|
impl ObjectType {
|
||||||
|
pub const SAMPLER_YCBCR_CONVERSION: Self = Self(1_000_156_000);
|
||||||
pub const DESCRIPTOR_UPDATE_TEMPLATE: Self = Self(1_000_085_000);
|
pub const DESCRIPTOR_UPDATE_TEMPLATE: Self = Self(1_000_085_000);
|
||||||
}
|
}
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
||||||
impl StructureType {
|
impl PipelineCreateFlags {
|
||||||
pub const PHYSICAL_DEVICE_EXTERNAL_IMAGE_FORMAT_INFO: Self = Self(1_000_071_000);
|
pub const VIEW_INDEX_FROM_DEVICE_INDEX: Self = Self(0b1000);
|
||||||
|
pub const DISPATCH_BASE: Self = Self(0b1_0000);
|
||||||
}
|
}
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
||||||
impl StructureType {
|
impl QueueFlags {
|
||||||
pub const EXTERNAL_IMAGE_FORMAT_PROPERTIES: Self = Self(1_000_071_001);
|
#[doc = "Queues may support protected operations"]
|
||||||
}
|
pub const PROTECTED: Self = Self(0b1_0000);
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_071_003);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_072_000);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_072_002);
|
|
||||||
}
|
}
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
||||||
impl Result {
|
impl Result {
|
||||||
|
pub const ERROR_OUT_OF_POOL_MEMORY: Self = Self(-1_000_069_000);
|
||||||
pub const ERROR_INVALID_EXTERNAL_HANDLE: Self = Self(-1_000_072_003);
|
pub const ERROR_INVALID_EXTERNAL_HANDLE: Self = Self(-1_000_072_003);
|
||||||
}
|
}
|
||||||
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
#[doc = "Generated from 'VK_VERSION_1_1'"]
|
||||||
impl StructureType {
|
impl StructureType {
|
||||||
|
pub const PHYSICAL_DEVICE_SUBGROUP_PROPERTIES: Self = Self(1_000_094_000);
|
||||||
|
pub const BIND_BUFFER_MEMORY_INFO: Self = Self(1_000_157_000);
|
||||||
|
pub const BIND_IMAGE_MEMORY_INFO: Self = Self(1_000_157_001);
|
||||||
|
pub const PHYSICAL_DEVICE_16BIT_STORAGE_FEATURES: Self = Self(1_000_083_000);
|
||||||
|
pub const MEMORY_DEDICATED_REQUIREMENTS: Self = Self(1_000_127_000);
|
||||||
|
pub const MEMORY_DEDICATED_ALLOCATE_INFO: Self = Self(1_000_127_001);
|
||||||
|
pub const MEMORY_ALLOCATE_FLAGS_INFO: Self = Self(1_000_060_000);
|
||||||
|
pub const DEVICE_GROUP_RENDER_PASS_BEGIN_INFO: Self = Self(1_000_060_003);
|
||||||
|
pub const DEVICE_GROUP_COMMAND_BUFFER_BEGIN_INFO: Self = Self(1_000_060_004);
|
||||||
|
pub const DEVICE_GROUP_SUBMIT_INFO: Self = Self(1_000_060_005);
|
||||||
|
pub const DEVICE_GROUP_BIND_SPARSE_INFO: Self = Self(1_000_060_006);
|
||||||
|
pub const BIND_BUFFER_MEMORY_DEVICE_GROUP_INFO: Self = Self(1_000_060_013);
|
||||||
|
pub const BIND_IMAGE_MEMORY_DEVICE_GROUP_INFO: Self = Self(1_000_060_014);
|
||||||
|
pub const PHYSICAL_DEVICE_GROUP_PROPERTIES: Self = Self(1_000_070_000);
|
||||||
|
pub const DEVICE_GROUP_DEVICE_CREATE_INFO: Self = Self(1_000_070_001);
|
||||||
|
pub const BUFFER_MEMORY_REQUIREMENTS_INFO_2: Self = Self(1_000_146_000);
|
||||||
|
pub const IMAGE_MEMORY_REQUIREMENTS_INFO_2: Self = Self(1_000_146_001);
|
||||||
|
pub const IMAGE_SPARSE_MEMORY_REQUIREMENTS_INFO_2: Self = Self(1_000_146_002);
|
||||||
|
pub const MEMORY_REQUIREMENTS_2: Self = Self(1_000_146_003);
|
||||||
|
pub const SPARSE_IMAGE_MEMORY_REQUIREMENTS_2: Self = Self(1_000_146_004);
|
||||||
|
pub const PHYSICAL_DEVICE_FEATURES_2: Self = Self(1_000_059_000);
|
||||||
|
pub const PHYSICAL_DEVICE_PROPERTIES_2: Self = Self(1_000_059_001);
|
||||||
|
pub const FORMAT_PROPERTIES_2: Self = Self(1_000_059_002);
|
||||||
|
pub const IMAGE_FORMAT_PROPERTIES_2: Self = Self(1_000_059_003);
|
||||||
|
pub const PHYSICAL_DEVICE_IMAGE_FORMAT_INFO_2: Self = Self(1_000_059_004);
|
||||||
|
pub const QUEUE_FAMILY_PROPERTIES_2: Self = Self(1_000_059_005);
|
||||||
|
pub const PHYSICAL_DEVICE_MEMORY_PROPERTIES_2: Self = Self(1_000_059_006);
|
||||||
|
pub const SPARSE_IMAGE_FORMAT_PROPERTIES_2: Self = Self(1_000_059_007);
|
||||||
|
pub const PHYSICAL_DEVICE_SPARSE_IMAGE_FORMAT_INFO_2: Self = Self(1_000_059_008);
|
||||||
|
pub const PHYSICAL_DEVICE_POINT_CLIPPING_PROPERTIES: Self = Self(1_000_117_000);
|
||||||
|
pub const RENDER_PASS_INPUT_ATTACHMENT_ASPECT_CREATE_INFO: Self = Self(1_000_117_001);
|
||||||
|
pub const IMAGE_VIEW_USAGE_CREATE_INFO: Self = Self(1_000_117_002);
|
||||||
|
pub const PIPELINE_TESSELLATION_DOMAIN_ORIGIN_STATE_CREATE_INFO: Self = Self(1_000_117_003);
|
||||||
|
pub const RENDER_PASS_MULTIVIEW_CREATE_INFO: Self = Self(1_000_053_000);
|
||||||
|
pub const PHYSICAL_DEVICE_MULTIVIEW_FEATURES: Self = Self(1_000_053_001);
|
||||||
|
pub const PHYSICAL_DEVICE_MULTIVIEW_PROPERTIES: Self = Self(1_000_053_002);
|
||||||
|
pub const PHYSICAL_DEVICE_VARIABLE_POINTERS_FEATURES: Self = Self(1_000_120_000);
|
||||||
|
pub const PHYSICAL_DEVICE_VARIABLE_POINTER_FEATURES: Self =
|
||||||
|
Self::PHYSICAL_DEVICE_VARIABLE_POINTERS_FEATURES;
|
||||||
|
pub const PROTECTED_SUBMIT_INFO: Self = Self(1_000_145_000);
|
||||||
|
pub const PHYSICAL_DEVICE_PROTECTED_MEMORY_FEATURES: Self = Self(1_000_145_001);
|
||||||
|
pub const PHYSICAL_DEVICE_PROTECTED_MEMORY_PROPERTIES: Self = Self(1_000_145_002);
|
||||||
|
pub const DEVICE_QUEUE_INFO_2: Self = Self(1_000_145_003);
|
||||||
|
pub const SAMPLER_YCBCR_CONVERSION_CREATE_INFO: Self = Self(1_000_156_000);
|
||||||
|
pub const SAMPLER_YCBCR_CONVERSION_INFO: Self = Self(1_000_156_001);
|
||||||
|
pub const BIND_IMAGE_PLANE_MEMORY_INFO: Self = Self(1_000_156_002);
|
||||||
|
pub const IMAGE_PLANE_MEMORY_REQUIREMENTS_INFO: Self = Self(1_000_156_003);
|
||||||
|
pub const PHYSICAL_DEVICE_SAMPLER_YCBCR_CONVERSION_FEATURES: Self = Self(1_000_156_004);
|
||||||
|
pub const SAMPLER_YCBCR_CONVERSION_IMAGE_FORMAT_PROPERTIES: Self = Self(1_000_156_005);
|
||||||
|
pub const DESCRIPTOR_UPDATE_TEMPLATE_CREATE_INFO: Self = Self(1_000_085_000);
|
||||||
|
pub const PHYSICAL_DEVICE_EXTERNAL_IMAGE_FORMAT_INFO: Self = Self(1_000_071_000);
|
||||||
|
pub const EXTERNAL_IMAGE_FORMAT_PROPERTIES: Self = Self(1_000_071_001);
|
||||||
|
pub const PHYSICAL_DEVICE_EXTERNAL_BUFFER_INFO: Self = Self(1_000_071_002);
|
||||||
|
pub const EXTERNAL_BUFFER_PROPERTIES: Self = Self(1_000_071_003);
|
||||||
|
pub const PHYSICAL_DEVICE_ID_PROPERTIES: Self = Self(1_000_071_004);
|
||||||
|
pub const EXTERNAL_MEMORY_BUFFER_CREATE_INFO: Self = Self(1_000_072_000);
|
||||||
|
pub const EXTERNAL_MEMORY_IMAGE_CREATE_INFO: Self = Self(1_000_072_001);
|
||||||
|
pub const EXPORT_MEMORY_ALLOCATE_INFO: Self = Self(1_000_072_002);
|
||||||
pub const PHYSICAL_DEVICE_EXTERNAL_FENCE_INFO: Self = Self(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 = Self(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 = Self(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 = Self(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 = Self(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 = Self(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 = Self(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 = Self(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 = Self(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 {
|
|
||||||
pub const PHYSICAL_DEVICE_SHADER_DRAW_PARAMETER_FEATURES: Self =
|
pub const PHYSICAL_DEVICE_SHADER_DRAW_PARAMETER_FEATURES: Self =
|
||||||
Self::PHYSICAL_DEVICE_SHADER_DRAW_PARAMETERS_FEATURES;
|
Self::PHYSICAL_DEVICE_SHADER_DRAW_PARAMETERS_FEATURES;
|
||||||
}
|
}
|
||||||
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
||||||
impl StructureType {
|
impl BufferCreateFlags {
|
||||||
pub const PHYSICAL_DEVICE_VULKAN_1_1_FEATURES: Self = Self(49);
|
pub const DEVICE_ADDRESS_CAPTURE_REPLAY: Self = Self(0b1_0000);
|
||||||
}
|
}
|
||||||
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
||||||
impl StructureType {
|
impl BufferUsageFlags {
|
||||||
pub const PHYSICAL_DEVICE_VULKAN_1_1_PROPERTIES: Self = Self(50);
|
pub const SHADER_DEVICE_ADDRESS: Self = Self(0b10_0000_0000_0000_0000);
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(52);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_109_000);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_109_002);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_109_004);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_109_006);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_196_000);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_082_000);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_161_000);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_161_002);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_161_004);
|
|
||||||
}
|
}
|
||||||
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
||||||
impl DescriptorPoolCreateFlags {
|
impl DescriptorPoolCreateFlags {
|
||||||
|
@ -663,163 +223,81 @@ impl DescriptorSetLayoutCreateFlags {
|
||||||
pub const UPDATE_AFTER_BIND_POOL: Self = Self(0b10);
|
pub const UPDATE_AFTER_BIND_POOL: Self = Self(0b10);
|
||||||
}
|
}
|
||||||
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
||||||
impl Result {
|
|
||||||
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 = Self(1_000_199_000);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_221_000);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_130_000);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
|
||||||
impl StructureType {
|
|
||||||
pub const SAMPLER_REDUCTION_MODE_CREATE_INFO: Self = Self(1_000_130_001);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
|
||||||
impl FormatFeatureFlags {
|
impl FormatFeatureFlags {
|
||||||
#[doc = "Format can be used with min/max reduction filtering"]
|
#[doc = "Format can be used with min/max reduction filtering"]
|
||||||
pub const SAMPLED_IMAGE_FILTER_MINMAX: Self = Self(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'"]
|
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_108_000);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_108_002);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
|
||||||
impl StructureType {
|
|
||||||
pub const RENDER_PASS_ATTACHMENT_BEGIN_INFO: Self = Self(1_000_108_003);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
|
||||||
impl FramebufferCreateFlags {
|
impl FramebufferCreateFlags {
|
||||||
pub const IMAGELESS: Self = Self(0b1);
|
pub const IMAGELESS: Self = Self(0b1);
|
||||||
}
|
}
|
||||||
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_175_000);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_241_001);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
|
||||||
impl StructureType {
|
|
||||||
pub const ATTACHMENT_DESCRIPTION_STENCIL_LAYOUT: Self = Self(1_000_241_002);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
|
||||||
impl ImageLayout {
|
impl ImageLayout {
|
||||||
pub const DEPTH_ATTACHMENT_OPTIMAL: Self = Self(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 = Self(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 = Self(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 = Self(1_000_241_003);
|
pub const STENCIL_READ_ONLY_OPTIMAL: Self = Self(1_000_241_003);
|
||||||
}
|
}
|
||||||
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_207_000);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_207_002);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_207_004);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_257_000);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_257_002);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
|
||||||
impl StructureType {
|
|
||||||
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 = Self(1_000_257_004);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
|
||||||
impl BufferUsageFlags {
|
|
||||||
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 = Self(0b1_0000);
|
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
|
||||||
impl MemoryAllocateFlags {
|
impl MemoryAllocateFlags {
|
||||||
pub const DEVICE_ADDRESS: Self = Self(0b10);
|
pub const DEVICE_ADDRESS: Self = Self(0b10);
|
||||||
}
|
|
||||||
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
|
||||||
impl MemoryAllocateFlags {
|
|
||||||
pub const DEVICE_ADDRESS_CAPTURE_REPLAY: Self = Self(0b100);
|
pub const DEVICE_ADDRESS_CAPTURE_REPLAY: Self = Self(0b100);
|
||||||
}
|
}
|
||||||
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
||||||
impl Result {
|
impl Result {
|
||||||
|
pub const ERROR_FRAGMENTATION: Self = Self(-1_000_161_000);
|
||||||
pub const ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS: Self = Self(-1_000_257_000);
|
pub const ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS: Self = Self(-1_000_257_000);
|
||||||
}
|
}
|
||||||
|
#[doc = "Generated from 'VK_VERSION_1_2'"]
|
||||||
|
impl StructureType {
|
||||||
|
pub const PHYSICAL_DEVICE_VULKAN_1_1_FEATURES: Self = Self(49);
|
||||||
|
pub const PHYSICAL_DEVICE_VULKAN_1_1_PROPERTIES: Self = Self(50);
|
||||||
|
pub const PHYSICAL_DEVICE_VULKAN_1_2_FEATURES: Self = Self(51);
|
||||||
|
pub const PHYSICAL_DEVICE_VULKAN_1_2_PROPERTIES: Self = Self(52);
|
||||||
|
pub const IMAGE_FORMAT_LIST_CREATE_INFO: Self = Self(1_000_147_000);
|
||||||
|
pub const ATTACHMENT_DESCRIPTION_2: Self = Self(1_000_109_000);
|
||||||
|
pub const ATTACHMENT_REFERENCE_2: Self = Self(1_000_109_001);
|
||||||
|
pub const SUBPASS_DESCRIPTION_2: Self = Self(1_000_109_002);
|
||||||
|
pub const SUBPASS_DEPENDENCY_2: Self = Self(1_000_109_003);
|
||||||
|
pub const RENDER_PASS_CREATE_INFO_2: Self = Self(1_000_109_004);
|
||||||
|
pub const SUBPASS_BEGIN_INFO: Self = Self(1_000_109_005);
|
||||||
|
pub const SUBPASS_END_INFO: Self = Self(1_000_109_006);
|
||||||
|
pub const PHYSICAL_DEVICE_8BIT_STORAGE_FEATURES: Self = Self(1_000_177_000);
|
||||||
|
pub const PHYSICAL_DEVICE_DRIVER_PROPERTIES: Self = Self(1_000_196_000);
|
||||||
|
pub const PHYSICAL_DEVICE_SHADER_ATOMIC_INT64_FEATURES: Self = Self(1_000_180_000);
|
||||||
|
pub const PHYSICAL_DEVICE_SHADER_FLOAT16_INT8_FEATURES: Self = Self(1_000_082_000);
|
||||||
|
pub const PHYSICAL_DEVICE_FLOAT_CONTROLS_PROPERTIES: Self = Self(1_000_197_000);
|
||||||
|
pub const DESCRIPTOR_SET_LAYOUT_BINDING_FLAGS_CREATE_INFO: Self = Self(1_000_161_000);
|
||||||
|
pub const PHYSICAL_DEVICE_DESCRIPTOR_INDEXING_FEATURES: Self = Self(1_000_161_001);
|
||||||
|
pub const PHYSICAL_DEVICE_DESCRIPTOR_INDEXING_PROPERTIES: Self = Self(1_000_161_002);
|
||||||
|
pub const DESCRIPTOR_SET_VARIABLE_DESCRIPTOR_COUNT_ALLOCATE_INFO: Self = Self(1_000_161_003);
|
||||||
|
pub const DESCRIPTOR_SET_VARIABLE_DESCRIPTOR_COUNT_LAYOUT_SUPPORT: Self = Self(1_000_161_004);
|
||||||
|
pub const PHYSICAL_DEVICE_DEPTH_STENCIL_RESOLVE_PROPERTIES: Self = Self(1_000_199_000);
|
||||||
|
pub const SUBPASS_DESCRIPTION_DEPTH_STENCIL_RESOLVE: Self = Self(1_000_199_001);
|
||||||
|
pub const PHYSICAL_DEVICE_SCALAR_BLOCK_LAYOUT_FEATURES: Self = Self(1_000_221_000);
|
||||||
|
pub const IMAGE_STENCIL_USAGE_CREATE_INFO: Self = Self(1_000_246_000);
|
||||||
|
pub const PHYSICAL_DEVICE_SAMPLER_FILTER_MINMAX_PROPERTIES: Self = Self(1_000_130_000);
|
||||||
|
pub const SAMPLER_REDUCTION_MODE_CREATE_INFO: Self = Self(1_000_130_001);
|
||||||
|
pub const PHYSICAL_DEVICE_VULKAN_MEMORY_MODEL_FEATURES: Self = Self(1_000_211_000);
|
||||||
|
pub const PHYSICAL_DEVICE_IMAGELESS_FRAMEBUFFER_FEATURES: Self = Self(1_000_108_000);
|
||||||
|
pub const FRAMEBUFFER_ATTACHMENTS_CREATE_INFO: Self = Self(1_000_108_001);
|
||||||
|
pub const FRAMEBUFFER_ATTACHMENT_IMAGE_INFO: Self = Self(1_000_108_002);
|
||||||
|
pub const RENDER_PASS_ATTACHMENT_BEGIN_INFO: Self = Self(1_000_108_003);
|
||||||
|
pub const PHYSICAL_DEVICE_UNIFORM_BUFFER_STANDARD_LAYOUT_FEATURES: Self = Self(1_000_253_000);
|
||||||
|
pub const PHYSICAL_DEVICE_SHADER_SUBGROUP_EXTENDED_TYPES_FEATURES: Self = Self(1_000_175_000);
|
||||||
|
pub const PHYSICAL_DEVICE_SEPARATE_DEPTH_STENCIL_LAYOUTS_FEATURES: Self = Self(1_000_241_000);
|
||||||
|
pub const ATTACHMENT_REFERENCE_STENCIL_LAYOUT: Self = Self(1_000_241_001);
|
||||||
|
pub const ATTACHMENT_DESCRIPTION_STENCIL_LAYOUT: Self = Self(1_000_241_002);
|
||||||
|
pub const PHYSICAL_DEVICE_HOST_QUERY_RESET_FEATURES: Self = Self(1_000_261_000);
|
||||||
|
pub const PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_FEATURES: Self = Self(1_000_207_000);
|
||||||
|
pub const PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_PROPERTIES: Self = Self(1_000_207_001);
|
||||||
|
pub const SEMAPHORE_TYPE_CREATE_INFO: Self = Self(1_000_207_002);
|
||||||
|
pub const TIMELINE_SEMAPHORE_SUBMIT_INFO: Self = Self(1_000_207_003);
|
||||||
|
pub const SEMAPHORE_WAIT_INFO: Self = Self(1_000_207_004);
|
||||||
|
pub const SEMAPHORE_SIGNAL_INFO: Self = Self(1_000_207_005);
|
||||||
|
pub const PHYSICAL_DEVICE_BUFFER_DEVICE_ADDRESS_FEATURES: Self = Self(1_000_257_000);
|
||||||
|
pub const BUFFER_DEVICE_ADDRESS_INFO: Self = Self(1_000_244_001);
|
||||||
|
pub const BUFFER_OPAQUE_CAPTURE_ADDRESS_CREATE_INFO: Self = Self(1_000_257_002);
|
||||||
|
pub const MEMORY_OPAQUE_CAPTURE_ADDRESS_ALLOCATE_INFO: Self = Self(1_000_257_003);
|
||||||
|
pub const DEVICE_MEMORY_OPAQUE_CAPTURE_ADDRESS_INFO: Self = Self(1_000_257_004);
|
||||||
|
}
|
||||||
|
|
|
@ -1107,19 +1107,31 @@ pub fn generate_extension_constants<'a>(
|
||||||
_ => None,
|
_ => None,
|
||||||
})
|
})
|
||||||
.flatten();
|
.flatten();
|
||||||
let enum_tokens = items.filter_map(|item| match item {
|
|
||||||
vk_parse::InterfaceItem::Enum(enum_) => {
|
let mut extended_enums = BTreeMap::<String, Vec<ExtensionConstant>>::new();
|
||||||
|
|
||||||
|
for item in items {
|
||||||
|
if let vk_parse::InterfaceItem::Enum(enum_) = item {
|
||||||
if !const_cache.insert(enum_.name.as_str()) {
|
if !const_cache.insert(enum_.name.as_str()) {
|
||||||
return None;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if enum_.comment.as_deref() == Some(BACKWARDS_COMPATIBLE_ALIAS_COMMENT) {
|
if enum_.comment.as_deref() == Some(BACKWARDS_COMPATIBLE_ALIAS_COMMENT) {
|
||||||
return None;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
let (constant, extends, is_alias) =
|
let (constant, extends, is_alias) = if let Some(r) =
|
||||||
Constant::from_vk_parse_enum(enum_, None, Some(extension_number))?;
|
Constant::from_vk_parse_enum(enum_, None, Some(extension_number))
|
||||||
let extends = extends?;
|
{
|
||||||
|
r
|
||||||
|
} else {
|
||||||
|
continue;
|
||||||
|
};
|
||||||
|
let extends = if let Some(extends) = extends {
|
||||||
|
extends
|
||||||
|
} else {
|
||||||
|
continue;
|
||||||
|
};
|
||||||
let ext_constant = ExtensionConstant {
|
let ext_constant = ExtensionConstant {
|
||||||
name: &enum_.name,
|
name: &enum_.name,
|
||||||
constant,
|
constant,
|
||||||
|
@ -1134,20 +1146,24 @@ pub fn generate_extension_constants<'a>(
|
||||||
ident: ext_constant.variant_ident(&extends),
|
ident: ext_constant.variant_ident(&extends),
|
||||||
is_alias,
|
is_alias,
|
||||||
});
|
});
|
||||||
let impl_block = bitflags_impl_block(ident, &extends, &[&ext_constant]);
|
|
||||||
let doc_string = format!("Generated from '{}'", extension_name);
|
|
||||||
let q = quote! {
|
|
||||||
#[doc = #doc_string]
|
|
||||||
#impl_block
|
|
||||||
};
|
|
||||||
|
|
||||||
Some(q)
|
extended_enums
|
||||||
|
.entry(extends)
|
||||||
|
.or_default()
|
||||||
|
.push(ext_constant);
|
||||||
}
|
}
|
||||||
_ => None,
|
|
||||||
});
|
|
||||||
quote! {
|
|
||||||
#(#enum_tokens)*
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let enum_tokens = extended_enums.iter().map(|(extends, constants)| {
|
||||||
|
let ident = name_to_tokens(extends);
|
||||||
|
let doc_string = format!("Generated from '{}'", extension_name);
|
||||||
|
let impl_block = bitflags_impl_block(ident, extends, &constants.iter().collect_vec());
|
||||||
|
quote! {
|
||||||
|
#[doc = #doc_string]
|
||||||
|
#impl_block
|
||||||
|
}
|
||||||
|
});
|
||||||
|
quote!(#(#enum_tokens)*)
|
||||||
}
|
}
|
||||||
pub fn generate_extension_commands<'a>(
|
pub fn generate_extension_commands<'a>(
|
||||||
extension_name: &str,
|
extension_name: &str,
|
||||||
|
|
Loading…
Reference in a new issue