Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update generated bindings #194

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## [0.22.0] - UNRELEASED

### Bindings Updates
- [August 25, 2023 Vulkan 1.3.262 spec update](https://github.com/KhronosGroup/Vulkan-Docs/commit/6952ad062f031e3fc99b53ef28e009cbeca64583)

### Fixed
- Fixed `push_next` not adding a chain of structs properly

Expand Down
2 changes: 1 addition & 1 deletion Vulkan-Docs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# https://github.com/KhronosGroup/Vulkan-Docs
b9aad705f0d9e5e6734ac2ad671d5d1de57b05e0
6952ad062f031e3fc99b53ef28e009cbeca64583
88 changes: 88 additions & 0 deletions vulkanalia-sys/src/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,38 @@ impl fmt::Debug for BlendOverlapEXT {
}
}

/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VkBlockMatchWindowCompareModeQCOM.html>
#[repr(transparent)]
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Default)]
pub struct BlockMatchWindowCompareModeQCOM(i32);

impl BlockMatchWindowCompareModeQCOM {
pub const MIN: Self = Self(0);
pub const MAX: Self = Self(1);

/// Constructs an instance of this enum with the supplied underlying value.
#[inline]
pub const fn from_raw(value: i32) -> Self {
Self(value)
}

/// Gets the underlying value for this enum instance.
#[inline]
pub const fn as_raw(self) -> i32 {
self.0
}
}

impl fmt::Debug for BlockMatchWindowCompareModeQCOM {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match self.0 {
0 => write!(f, "MIN"),
1 => write!(f, "MAX"),
_ => self.0.fmt(f),
}
}
}

/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VkBorderColor.html>
#[repr(transparent)]
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Default)]
Expand Down Expand Up @@ -1064,6 +1096,42 @@ impl fmt::Debug for CoverageReductionModeNV {
}
}

/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VkCubicFilterWeightsQCOM.html>
#[repr(transparent)]
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Default)]
pub struct CubicFilterWeightsQCOM(i32);

impl CubicFilterWeightsQCOM {
pub const CATMULL_ROM: Self = Self(0);
pub const ZERO_TANGENT_CARDINAL: Self = Self(1);
pub const B_SPLINE: Self = Self(2);
pub const MITCHELL_NETRAVALI: Self = Self(3);

/// Constructs an instance of this enum with the supplied underlying value.
#[inline]
pub const fn from_raw(value: i32) -> Self {
Self(value)
}

/// Gets the underlying value for this enum instance.
#[inline]
pub const fn as_raw(self) -> i32 {
self.0
}
}

impl fmt::Debug for CubicFilterWeightsQCOM {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match self.0 {
0 => write!(f, "CATMULL_ROM"),
1 => write!(f, "ZERO_TANGENT_CARDINAL"),
2 => write!(f, "B_SPLINE"),
3 => write!(f, "MITCHELL_NETRAVALI"),
_ => self.0.fmt(f),
}
}
}

/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VkDebugReportObjectTypeEXT.html>
#[repr(transparent)]
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Default)]
Expand Down Expand Up @@ -4525,6 +4593,7 @@ impl SamplerReductionMode {
pub const WEIGHTED_AVERAGE: Self = Self(0);
pub const MIN: Self = Self(1);
pub const MAX: Self = Self(2);
pub const WEIGHTED_AVERAGE_RANGECLAMP_QCOM: Self = Self(1000521000);

/// Constructs an instance of this enum with the supplied underlying value.
#[inline]
Expand All @@ -4545,6 +4614,7 @@ impl fmt::Debug for SamplerReductionMode {
0 => write!(f, "WEIGHTED_AVERAGE"),
1 => write!(f, "MIN"),
2 => write!(f, "MAX"),
1000521000 => write!(f, "WEIGHTED_AVERAGE_RANGECLAMP_QCOM"),
_ => self.0.fmt(f),
}
}
Expand Down Expand Up @@ -5796,6 +5866,15 @@ impl StructureType {
pub const PHYSICAL_DEVICE_MULTIVIEW_PER_VIEW_RENDER_AREAS_FEATURES_QCOM: Self =
Self(1000510000);
pub const MULTIVIEW_PER_VIEW_RENDER_AREAS_RENDER_PASS_BEGIN_INFO_QCOM: Self = Self(1000510001);
pub const PHYSICAL_DEVICE_IMAGE_PROCESSING_2_FEATURES_QCOM: Self = Self(1000518000);
pub const PHYSICAL_DEVICE_IMAGE_PROCESSING_2_PROPERTIES_QCOM: Self = Self(1000518001);
pub const SAMPLER_BLOCK_MATCH_WINDOW_CREATE_INFO_QCOM: Self = Self(1000518002);
pub const SAMPLER_CUBIC_WEIGHTS_CREATE_INFO_QCOM: Self = Self(1000519000);
pub const PHYSICAL_DEVICE_CUBIC_WEIGHTS_FEATURES_QCOM: Self = Self(1000519001);
pub const BLIT_IMAGE_CUBIC_WEIGHTS_INFO_QCOM: Self = Self(1000519002);
pub const PHYSICAL_DEVICE_YCBCR_DEGAMMA_FEATURES_QCOM: Self = Self(1000520000);
pub const SAMPLER_YCBCR_CONVERSION_YCBCR_DEGAMMA_CREATE_INFO_QCOM: Self = Self(1000520001);
pub const PHYSICAL_DEVICE_CUBIC_CLAMP_FEATURES_QCOM: Self = Self(1000521000);
pub const PHYSICAL_DEVICE_ATTACHMENT_FEEDBACK_LOOP_DYNAMIC_STATE_FEATURES_EXT: Self =
Self(1000524000);
pub const SCREEN_BUFFER_PROPERTIES_QNX: Self = Self(1000529000);
Expand Down Expand Up @@ -6728,6 +6807,15 @@ impl fmt::Debug for StructureType {
f,
"MULTIVIEW_PER_VIEW_RENDER_AREAS_RENDER_PASS_BEGIN_INFO_QCOM"
),
1000518000 => write!(f, "PHYSICAL_DEVICE_IMAGE_PROCESSING_2_FEATURES_QCOM"),
1000518001 => write!(f, "PHYSICAL_DEVICE_IMAGE_PROCESSING_2_PROPERTIES_QCOM"),
1000518002 => write!(f, "SAMPLER_BLOCK_MATCH_WINDOW_CREATE_INFO_QCOM"),
1000519000 => write!(f, "SAMPLER_CUBIC_WEIGHTS_CREATE_INFO_QCOM"),
1000519001 => write!(f, "PHYSICAL_DEVICE_CUBIC_WEIGHTS_FEATURES_QCOM"),
1000519002 => write!(f, "BLIT_IMAGE_CUBIC_WEIGHTS_INFO_QCOM"),
1000520000 => write!(f, "PHYSICAL_DEVICE_YCBCR_DEGAMMA_FEATURES_QCOM"),
1000520001 => write!(f, "SAMPLER_YCBCR_CONVERSION_YCBCR_DEGAMMA_CREATE_INFO_QCOM"),
1000521000 => write!(f, "PHYSICAL_DEVICE_CUBIC_CLAMP_FEATURES_QCOM"),
1000524000 => write!(
f,
"PHYSICAL_DEVICE_ATTACHMENT_FEEDBACK_LOOP_DYNAMIC_STATE_FEATURES_EXT"
Expand Down
70 changes: 67 additions & 3 deletions vulkanalia-sys/src/extensions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ pub const ARM_SHADER_CORE_BUILTINS_EXTENSION: Extension = Extension {
number: 498,
type_: "device",
author: "ARM",
contact: "Kevin Petit @kevinpetit",
contact: "Kevin Petit @kpet",
platform: None,
required_extensions: None,
required_version: None,
Expand Down Expand Up @@ -2861,7 +2861,7 @@ pub const KHR_COOPERATIVE_MATRIX_EXTENSION: Extension = Extension {
number: 507,
type_: "device",
author: "KHR",
contact: "Kevin Petit @kevinpetit",
contact: "Kevin Petit @kpet",
platform: None,
required_extensions: None,
required_version: None,
Expand Down Expand Up @@ -3925,7 +3925,7 @@ pub const KHR_SHADER_INTEGER_DOT_PRODUCT_EXTENSION: Extension = Extension {
number: 281,
type_: "device",
author: "KHR",
contact: "Kevin Petit @kevinpetit",
contact: "Kevin Petit @kpet",
platform: None,
required_extensions: None,
required_version: None,
Expand Down Expand Up @@ -5214,6 +5214,38 @@ pub const NV_WIN32_KEYED_MUTEX_EXTENSION: Extension = Extension {
promoted_to: Some("VK_KHR_win32_keyed_mutex"),
};

/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_QCOM_filter_cubic_clamp.html>
#[allow(deprecated)]
pub const QCOM_FILTER_CUBIC_CLAMP_EXTENSION: Extension = Extension {
name: ExtensionName::from_bytes(b"VK_QCOM_filter_cubic_clamp"),
number: 522,
type_: "device",
author: "QCOM",
contact: "Jeff Leger @jackohound",
platform: None,
required_extensions: None,
required_version: None,
deprecated_by: None,
obsoleted_by: None,
promoted_to: None,
};

/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_QCOM_filter_cubic_weights.html>
#[allow(deprecated)]
pub const QCOM_FILTER_CUBIC_WEIGHTS_EXTENSION: Extension = Extension {
name: ExtensionName::from_bytes(b"VK_QCOM_filter_cubic_weights"),
number: 520,
type_: "device",
author: "QCOM",
contact: "Jeff Leger @jackohound",
platform: None,
required_extensions: None,
required_version: None,
deprecated_by: None,
obsoleted_by: None,
promoted_to: None,
};

/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_QCOM_fragment_density_map_offset.html>
#[allow(deprecated)]
pub const QCOM_FRAGMENT_DENSITY_MAP_OFFSET_EXTENSION: Extension = Extension {
Expand Down Expand Up @@ -5246,6 +5278,22 @@ pub const QCOM_IMAGE_PROCESSING_EXTENSION: Extension = Extension {
promoted_to: None,
};

/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_QCOM_image_processing2.html>
#[allow(deprecated)]
pub const QCOM_IMAGE_PROCESSING2_EXTENSION: Extension = Extension {
name: ExtensionName::from_bytes(b"VK_QCOM_image_processing2"),
number: 519,
type_: "device",
author: "QCOM",
contact: "Jeff Leger @jackohound",
platform: None,
required_extensions: None,
required_version: None,
deprecated_by: None,
obsoleted_by: None,
promoted_to: None,
};

/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_QCOM_multiview_per_view_render_areas.html>
#[allow(deprecated)]
pub const QCOM_MULTIVIEW_PER_VIEW_RENDER_AREAS_EXTENSION: Extension = Extension {
Expand Down Expand Up @@ -5358,6 +5406,22 @@ pub const QCOM_TILE_PROPERTIES_EXTENSION: Extension = Extension {
promoted_to: None,
};

/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_QCOM_ycbcr_degamma.html>
#[allow(deprecated)]
pub const QCOM_YCBCR_DEGAMMA_EXTENSION: Extension = Extension {
name: ExtensionName::from_bytes(b"VK_QCOM_ycbcr_degamma"),
number: 521,
type_: "device",
author: "QCOM",
contact: "Jeff Leger @jackohound",
platform: None,
required_extensions: None,
required_version: None,
deprecated_by: None,
obsoleted_by: None,
promoted_to: None,
};

/// <https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_QNX_external_memory_screen_buffer.html>
#[allow(deprecated)]
pub const QNX_EXTERNAL_MEMORY_SCREEN_BUFFER_EXTENSION: Extension = Extension {
Expand Down
Loading
Loading