|
|
@ -817,7 +817,7 @@ impl fmt::Debug for PhysicalDeviceProperties {
|
|
|
|
.field("vendor_id", &self.vendor_id)
|
|
|
|
.field("vendor_id", &self.vendor_id)
|
|
|
|
.field("device_id", &self.device_id)
|
|
|
|
.field("device_id", &self.device_id)
|
|
|
|
.field("device_type", &self.device_type)
|
|
|
|
.field("device_type", &self.device_type)
|
|
|
|
.field("device_name", &unsafe { self.device_name_as_c_str() })
|
|
|
|
.field("device_name", &self.device_name_as_c_str())
|
|
|
|
.field("pipeline_cache_uuid", &self.pipeline_cache_uuid)
|
|
|
|
.field("pipeline_cache_uuid", &self.pipeline_cache_uuid)
|
|
|
|
.field("limits", &self.limits)
|
|
|
|
.field("limits", &self.limits)
|
|
|
|
.field("sparse_properties", &self.sparse_properties)
|
|
|
|
.field("sparse_properties", &self.sparse_properties)
|
|
|
@ -869,12 +869,14 @@ impl PhysicalDeviceProperties {
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn device_name(
|
|
|
|
pub fn device_name(
|
|
|
|
mut self,
|
|
|
|
mut self,
|
|
|
|
device_name: &std::ffi::CStr,
|
|
|
|
device_name: &core::ffi::CStr,
|
|
|
|
) -> std::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
) -> core::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
write_c_str_slice_with_nul(&mut self.device_name, device_name).map(|()| self)
|
|
|
|
write_c_str_slice_with_nul(&mut self.device_name, device_name).map(|()| self)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub unsafe fn device_name_as_c_str(&self) -> &std::ffi::CStr {
|
|
|
|
pub fn device_name_as_c_str(
|
|
|
|
|
|
|
|
&self,
|
|
|
|
|
|
|
|
) -> core::result::Result<&core::ffi::CStr, core::ffi::FromBytesUntilNulError> {
|
|
|
|
wrap_c_str_slice_until_nul(&self.device_name)
|
|
|
|
wrap_c_str_slice_until_nul(&self.device_name)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
@ -904,7 +906,7 @@ pub struct ExtensionProperties {
|
|
|
|
impl fmt::Debug for ExtensionProperties {
|
|
|
|
impl fmt::Debug for ExtensionProperties {
|
|
|
|
fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
|
|
|
|
fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
|
|
|
|
fmt.debug_struct("ExtensionProperties")
|
|
|
|
fmt.debug_struct("ExtensionProperties")
|
|
|
|
.field("extension_name", &unsafe { self.extension_name_as_c_str() })
|
|
|
|
.field("extension_name", &self.extension_name_as_c_str())
|
|
|
|
.field("spec_version", &self.spec_version)
|
|
|
|
.field("spec_version", &self.spec_version)
|
|
|
|
.finish()
|
|
|
|
.finish()
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -922,12 +924,14 @@ impl ExtensionProperties {
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn extension_name(
|
|
|
|
pub fn extension_name(
|
|
|
|
mut self,
|
|
|
|
mut self,
|
|
|
|
extension_name: &std::ffi::CStr,
|
|
|
|
extension_name: &core::ffi::CStr,
|
|
|
|
) -> std::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
) -> core::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
write_c_str_slice_with_nul(&mut self.extension_name, extension_name).map(|()| self)
|
|
|
|
write_c_str_slice_with_nul(&mut self.extension_name, extension_name).map(|()| self)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub unsafe fn extension_name_as_c_str(&self) -> &std::ffi::CStr {
|
|
|
|
pub fn extension_name_as_c_str(
|
|
|
|
|
|
|
|
&self,
|
|
|
|
|
|
|
|
) -> core::result::Result<&core::ffi::CStr, core::ffi::FromBytesUntilNulError> {
|
|
|
|
wrap_c_str_slice_until_nul(&self.extension_name)
|
|
|
|
wrap_c_str_slice_until_nul(&self.extension_name)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
@ -949,10 +953,10 @@ pub struct LayerProperties {
|
|
|
|
impl fmt::Debug for LayerProperties {
|
|
|
|
impl fmt::Debug for LayerProperties {
|
|
|
|
fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
|
|
|
|
fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
|
|
|
|
fmt.debug_struct("LayerProperties")
|
|
|
|
fmt.debug_struct("LayerProperties")
|
|
|
|
.field("layer_name", &unsafe { self.layer_name_as_c_str() })
|
|
|
|
.field("layer_name", &self.layer_name_as_c_str())
|
|
|
|
.field("spec_version", &self.spec_version)
|
|
|
|
.field("spec_version", &self.spec_version)
|
|
|
|
.field("implementation_version", &self.implementation_version)
|
|
|
|
.field("implementation_version", &self.implementation_version)
|
|
|
|
.field("description", &unsafe { self.description_as_c_str() })
|
|
|
|
.field("description", &self.description_as_c_str())
|
|
|
|
.finish()
|
|
|
|
.finish()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -971,12 +975,14 @@ impl LayerProperties {
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn layer_name(
|
|
|
|
pub fn layer_name(
|
|
|
|
mut self,
|
|
|
|
mut self,
|
|
|
|
layer_name: &std::ffi::CStr,
|
|
|
|
layer_name: &core::ffi::CStr,
|
|
|
|
) -> std::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
) -> core::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
write_c_str_slice_with_nul(&mut self.layer_name, layer_name).map(|()| self)
|
|
|
|
write_c_str_slice_with_nul(&mut self.layer_name, layer_name).map(|()| self)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub unsafe fn layer_name_as_c_str(&self) -> &std::ffi::CStr {
|
|
|
|
pub fn layer_name_as_c_str(
|
|
|
|
|
|
|
|
&self,
|
|
|
|
|
|
|
|
) -> core::result::Result<&core::ffi::CStr, core::ffi::FromBytesUntilNulError> {
|
|
|
|
wrap_c_str_slice_until_nul(&self.layer_name)
|
|
|
|
wrap_c_str_slice_until_nul(&self.layer_name)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
@ -992,12 +998,14 @@ impl LayerProperties {
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn description(
|
|
|
|
pub fn description(
|
|
|
|
mut self,
|
|
|
|
mut self,
|
|
|
|
description: &std::ffi::CStr,
|
|
|
|
description: &core::ffi::CStr,
|
|
|
|
) -> std::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
) -> core::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
write_c_str_slice_with_nul(&mut self.description, description).map(|()| self)
|
|
|
|
write_c_str_slice_with_nul(&mut self.description, description).map(|()| self)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub unsafe fn description_as_c_str(&self) -> &std::ffi::CStr {
|
|
|
|
pub fn description_as_c_str(
|
|
|
|
|
|
|
|
&self,
|
|
|
|
|
|
|
|
) -> core::result::Result<&core::ffi::CStr, core::ffi::FromBytesUntilNulError> {
|
|
|
|
wrap_c_str_slice_until_nul(&self.description)
|
|
|
|
wrap_c_str_slice_until_nul(&self.description)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1035,13 +1043,13 @@ unsafe impl<'a> TaggedStructure for ApplicationInfo<'a> {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
impl<'a> ApplicationInfo<'a> {
|
|
|
|
impl<'a> ApplicationInfo<'a> {
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn application_name(mut self, application_name: &'a std::ffi::CStr) -> Self {
|
|
|
|
pub fn application_name(mut self, application_name: &'a core::ffi::CStr) -> Self {
|
|
|
|
self.p_application_name = application_name.as_ptr();
|
|
|
|
self.p_application_name = application_name.as_ptr();
|
|
|
|
self
|
|
|
|
self
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub unsafe fn application_name_as_c_str(&self) -> &std::ffi::CStr {
|
|
|
|
pub unsafe fn application_name_as_c_str(&self) -> &core::ffi::CStr {
|
|
|
|
std::ffi::CStr::from_ptr(self.p_application_name)
|
|
|
|
core::ffi::CStr::from_ptr(self.p_application_name)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn application_version(mut self, application_version: u32) -> Self {
|
|
|
|
pub fn application_version(mut self, application_version: u32) -> Self {
|
|
|
@ -1049,13 +1057,13 @@ impl<'a> ApplicationInfo<'a> {
|
|
|
|
self
|
|
|
|
self
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn engine_name(mut self, engine_name: &'a std::ffi::CStr) -> Self {
|
|
|
|
pub fn engine_name(mut self, engine_name: &'a core::ffi::CStr) -> Self {
|
|
|
|
self.p_engine_name = engine_name.as_ptr();
|
|
|
|
self.p_engine_name = engine_name.as_ptr();
|
|
|
|
self
|
|
|
|
self
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub unsafe fn engine_name_as_c_str(&self) -> &std::ffi::CStr {
|
|
|
|
pub unsafe fn engine_name_as_c_str(&self) -> &core::ffi::CStr {
|
|
|
|
std::ffi::CStr::from_ptr(self.p_engine_name)
|
|
|
|
core::ffi::CStr::from_ptr(self.p_engine_name)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn engine_version(mut self, engine_version: u32) -> Self {
|
|
|
|
pub fn engine_version(mut self, engine_version: u32) -> Self {
|
|
|
@ -3675,13 +3683,13 @@ impl<'a> PipelineShaderStageCreateInfo<'a> {
|
|
|
|
self
|
|
|
|
self
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn name(mut self, name: &'a std::ffi::CStr) -> Self {
|
|
|
|
pub fn name(mut self, name: &'a core::ffi::CStr) -> Self {
|
|
|
|
self.p_name = name.as_ptr();
|
|
|
|
self.p_name = name.as_ptr();
|
|
|
|
self
|
|
|
|
self
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub unsafe fn name_as_c_str(&self) -> &std::ffi::CStr {
|
|
|
|
pub unsafe fn name_as_c_str(&self) -> &core::ffi::CStr {
|
|
|
|
std::ffi::CStr::from_ptr(self.p_name)
|
|
|
|
core::ffi::CStr::from_ptr(self.p_name)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn specialization_info(mut self, specialization_info: &'a SpecializationInfo<'a>) -> Self {
|
|
|
|
pub fn specialization_info(mut self, specialization_info: &'a SpecializationInfo<'a>) -> Self {
|
|
|
@ -7740,13 +7748,13 @@ impl<'a> DisplayPropertiesKHR<'a> {
|
|
|
|
self
|
|
|
|
self
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn display_name(mut self, display_name: &'a std::ffi::CStr) -> Self {
|
|
|
|
pub fn display_name(mut self, display_name: &'a core::ffi::CStr) -> Self {
|
|
|
|
self.display_name = display_name.as_ptr();
|
|
|
|
self.display_name = display_name.as_ptr();
|
|
|
|
self
|
|
|
|
self
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub unsafe fn display_name_as_c_str(&self) -> &std::ffi::CStr {
|
|
|
|
pub unsafe fn display_name_as_c_str(&self) -> &core::ffi::CStr {
|
|
|
|
std::ffi::CStr::from_ptr(self.display_name)
|
|
|
|
core::ffi::CStr::from_ptr(self.display_name)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn physical_dimensions(mut self, physical_dimensions: Extent2D) -> Self {
|
|
|
|
pub fn physical_dimensions(mut self, physical_dimensions: Extent2D) -> Self {
|
|
|
@ -9017,13 +9025,13 @@ impl<'a> DebugMarkerObjectNameInfoEXT<'a> {
|
|
|
|
self
|
|
|
|
self
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn object_name(mut self, object_name: &'a std::ffi::CStr) -> Self {
|
|
|
|
pub fn object_name(mut self, object_name: &'a core::ffi::CStr) -> Self {
|
|
|
|
self.p_object_name = object_name.as_ptr();
|
|
|
|
self.p_object_name = object_name.as_ptr();
|
|
|
|
self
|
|
|
|
self
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub unsafe fn object_name_as_c_str(&self) -> &std::ffi::CStr {
|
|
|
|
pub unsafe fn object_name_as_c_str(&self) -> &core::ffi::CStr {
|
|
|
|
std::ffi::CStr::from_ptr(self.p_object_name)
|
|
|
|
core::ffi::CStr::from_ptr(self.p_object_name)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[repr(C)]
|
|
|
|
#[repr(C)]
|
|
|
@ -9109,13 +9117,13 @@ unsafe impl<'a> TaggedStructure for DebugMarkerMarkerInfoEXT<'a> {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
impl<'a> DebugMarkerMarkerInfoEXT<'a> {
|
|
|
|
impl<'a> DebugMarkerMarkerInfoEXT<'a> {
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn marker_name(mut self, marker_name: &'a std::ffi::CStr) -> Self {
|
|
|
|
pub fn marker_name(mut self, marker_name: &'a core::ffi::CStr) -> Self {
|
|
|
|
self.p_marker_name = marker_name.as_ptr();
|
|
|
|
self.p_marker_name = marker_name.as_ptr();
|
|
|
|
self
|
|
|
|
self
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub unsafe fn marker_name_as_c_str(&self) -> &std::ffi::CStr {
|
|
|
|
pub unsafe fn marker_name_as_c_str(&self) -> &core::ffi::CStr {
|
|
|
|
std::ffi::CStr::from_ptr(self.p_marker_name)
|
|
|
|
core::ffi::CStr::from_ptr(self.p_marker_name)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn color(mut self, color: [f32; 4]) -> Self {
|
|
|
|
pub fn color(mut self, color: [f32; 4]) -> Self {
|
|
|
@ -10948,8 +10956,8 @@ impl fmt::Debug for PhysicalDeviceDriverProperties<'_> {
|
|
|
|
.field("s_type", &self.s_type)
|
|
|
|
.field("s_type", &self.s_type)
|
|
|
|
.field("p_next", &self.p_next)
|
|
|
|
.field("p_next", &self.p_next)
|
|
|
|
.field("driver_id", &self.driver_id)
|
|
|
|
.field("driver_id", &self.driver_id)
|
|
|
|
.field("driver_name", &unsafe { self.driver_name_as_c_str() })
|
|
|
|
.field("driver_name", &self.driver_name_as_c_str())
|
|
|
|
.field("driver_info", &unsafe { self.driver_info_as_c_str() })
|
|
|
|
.field("driver_info", &self.driver_info_as_c_str())
|
|
|
|
.field("conformance_version", &self.conformance_version)
|
|
|
|
.field("conformance_version", &self.conformance_version)
|
|
|
|
.finish()
|
|
|
|
.finish()
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -10981,23 +10989,27 @@ impl<'a> PhysicalDeviceDriverProperties<'a> {
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn driver_name(
|
|
|
|
pub fn driver_name(
|
|
|
|
mut self,
|
|
|
|
mut self,
|
|
|
|
driver_name: &std::ffi::CStr,
|
|
|
|
driver_name: &core::ffi::CStr,
|
|
|
|
) -> std::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
) -> core::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
write_c_str_slice_with_nul(&mut self.driver_name, driver_name).map(|()| self)
|
|
|
|
write_c_str_slice_with_nul(&mut self.driver_name, driver_name).map(|()| self)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub unsafe fn driver_name_as_c_str(&self) -> &std::ffi::CStr {
|
|
|
|
pub fn driver_name_as_c_str(
|
|
|
|
|
|
|
|
&self,
|
|
|
|
|
|
|
|
) -> core::result::Result<&core::ffi::CStr, core::ffi::FromBytesUntilNulError> {
|
|
|
|
wrap_c_str_slice_until_nul(&self.driver_name)
|
|
|
|
wrap_c_str_slice_until_nul(&self.driver_name)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn driver_info(
|
|
|
|
pub fn driver_info(
|
|
|
|
mut self,
|
|
|
|
mut self,
|
|
|
|
driver_info: &std::ffi::CStr,
|
|
|
|
driver_info: &core::ffi::CStr,
|
|
|
|
) -> std::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
) -> core::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
write_c_str_slice_with_nul(&mut self.driver_info, driver_info).map(|()| self)
|
|
|
|
write_c_str_slice_with_nul(&mut self.driver_info, driver_info).map(|()| self)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub unsafe fn driver_info_as_c_str(&self) -> &std::ffi::CStr {
|
|
|
|
pub fn driver_info_as_c_str(
|
|
|
|
|
|
|
|
&self,
|
|
|
|
|
|
|
|
) -> core::result::Result<&core::ffi::CStr, core::ffi::FromBytesUntilNulError> {
|
|
|
|
wrap_c_str_slice_until_nul(&self.driver_info)
|
|
|
|
wrap_c_str_slice_until_nul(&self.driver_info)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
@ -18350,13 +18362,13 @@ impl<'a> DebugUtilsObjectNameInfoEXT<'a> {
|
|
|
|
self
|
|
|
|
self
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn object_name(mut self, object_name: &'a std::ffi::CStr) -> Self {
|
|
|
|
pub fn object_name(mut self, object_name: &'a core::ffi::CStr) -> Self {
|
|
|
|
self.p_object_name = object_name.as_ptr();
|
|
|
|
self.p_object_name = object_name.as_ptr();
|
|
|
|
self
|
|
|
|
self
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub unsafe fn object_name_as_c_str(&self) -> &std::ffi::CStr {
|
|
|
|
pub unsafe fn object_name_as_c_str(&self) -> &core::ffi::CStr {
|
|
|
|
std::ffi::CStr::from_ptr(self.p_object_name)
|
|
|
|
core::ffi::CStr::from_ptr(self.p_object_name)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[repr(C)]
|
|
|
|
#[repr(C)]
|
|
|
@ -18438,13 +18450,13 @@ unsafe impl<'a> TaggedStructure for DebugUtilsLabelEXT<'a> {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
impl<'a> DebugUtilsLabelEXT<'a> {
|
|
|
|
impl<'a> DebugUtilsLabelEXT<'a> {
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn label_name(mut self, label_name: &'a std::ffi::CStr) -> Self {
|
|
|
|
pub fn label_name(mut self, label_name: &'a core::ffi::CStr) -> Self {
|
|
|
|
self.p_label_name = label_name.as_ptr();
|
|
|
|
self.p_label_name = label_name.as_ptr();
|
|
|
|
self
|
|
|
|
self
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub unsafe fn label_name_as_c_str(&self) -> &std::ffi::CStr {
|
|
|
|
pub unsafe fn label_name_as_c_str(&self) -> &core::ffi::CStr {
|
|
|
|
std::ffi::CStr::from_ptr(self.p_label_name)
|
|
|
|
core::ffi::CStr::from_ptr(self.p_label_name)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn color(mut self, color: [f32; 4]) -> Self {
|
|
|
|
pub fn color(mut self, color: [f32; 4]) -> Self {
|
|
|
@ -18581,13 +18593,13 @@ impl<'a> DebugUtilsMessengerCallbackDataEXT<'a> {
|
|
|
|
self
|
|
|
|
self
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn message_id_name(mut self, message_id_name: &'a std::ffi::CStr) -> Self {
|
|
|
|
pub fn message_id_name(mut self, message_id_name: &'a core::ffi::CStr) -> Self {
|
|
|
|
self.p_message_id_name = message_id_name.as_ptr();
|
|
|
|
self.p_message_id_name = message_id_name.as_ptr();
|
|
|
|
self
|
|
|
|
self
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub unsafe fn message_id_name_as_c_str(&self) -> &std::ffi::CStr {
|
|
|
|
pub unsafe fn message_id_name_as_c_str(&self) -> &core::ffi::CStr {
|
|
|
|
std::ffi::CStr::from_ptr(self.p_message_id_name)
|
|
|
|
core::ffi::CStr::from_ptr(self.p_message_id_name)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn message_id_number(mut self, message_id_number: i32) -> Self {
|
|
|
|
pub fn message_id_number(mut self, message_id_number: i32) -> Self {
|
|
|
@ -18595,13 +18607,13 @@ impl<'a> DebugUtilsMessengerCallbackDataEXT<'a> {
|
|
|
|
self
|
|
|
|
self
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn message(mut self, message: &'a std::ffi::CStr) -> Self {
|
|
|
|
pub fn message(mut self, message: &'a core::ffi::CStr) -> Self {
|
|
|
|
self.p_message = message.as_ptr();
|
|
|
|
self.p_message = message.as_ptr();
|
|
|
|
self
|
|
|
|
self
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub unsafe fn message_as_c_str(&self) -> &std::ffi::CStr {
|
|
|
|
pub unsafe fn message_as_c_str(&self) -> &core::ffi::CStr {
|
|
|
|
std::ffi::CStr::from_ptr(self.p_message)
|
|
|
|
core::ffi::CStr::from_ptr(self.p_message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn queue_labels(mut self, queue_labels: &'a [DebugUtilsLabelEXT<'a>]) -> Self {
|
|
|
|
pub fn queue_labels(mut self, queue_labels: &'a [DebugUtilsLabelEXT<'a>]) -> Self {
|
|
|
@ -27128,9 +27140,9 @@ impl fmt::Debug for PerformanceCounterDescriptionKHR<'_> {
|
|
|
|
.field("s_type", &self.s_type)
|
|
|
|
.field("s_type", &self.s_type)
|
|
|
|
.field("p_next", &self.p_next)
|
|
|
|
.field("p_next", &self.p_next)
|
|
|
|
.field("flags", &self.flags)
|
|
|
|
.field("flags", &self.flags)
|
|
|
|
.field("name", &unsafe { self.name_as_c_str() })
|
|
|
|
.field("name", &self.name_as_c_str())
|
|
|
|
.field("category", &unsafe { self.category_as_c_str() })
|
|
|
|
.field("category", &self.category_as_c_str())
|
|
|
|
.field("description", &unsafe { self.description_as_c_str() })
|
|
|
|
.field("description", &self.description_as_c_str())
|
|
|
|
.finish()
|
|
|
|
.finish()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -27160,34 +27172,40 @@ impl<'a> PerformanceCounterDescriptionKHR<'a> {
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn name(
|
|
|
|
pub fn name(
|
|
|
|
mut self,
|
|
|
|
mut self,
|
|
|
|
name: &std::ffi::CStr,
|
|
|
|
name: &core::ffi::CStr,
|
|
|
|
) -> std::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
) -> core::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
write_c_str_slice_with_nul(&mut self.name, name).map(|()| self)
|
|
|
|
write_c_str_slice_with_nul(&mut self.name, name).map(|()| self)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub unsafe fn name_as_c_str(&self) -> &std::ffi::CStr {
|
|
|
|
pub fn name_as_c_str(
|
|
|
|
|
|
|
|
&self,
|
|
|
|
|
|
|
|
) -> core::result::Result<&core::ffi::CStr, core::ffi::FromBytesUntilNulError> {
|
|
|
|
wrap_c_str_slice_until_nul(&self.name)
|
|
|
|
wrap_c_str_slice_until_nul(&self.name)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn category(
|
|
|
|
pub fn category(
|
|
|
|
mut self,
|
|
|
|
mut self,
|
|
|
|
category: &std::ffi::CStr,
|
|
|
|
category: &core::ffi::CStr,
|
|
|
|
) -> std::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
) -> core::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
write_c_str_slice_with_nul(&mut self.category, category).map(|()| self)
|
|
|
|
write_c_str_slice_with_nul(&mut self.category, category).map(|()| self)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub unsafe fn category_as_c_str(&self) -> &std::ffi::CStr {
|
|
|
|
pub fn category_as_c_str(
|
|
|
|
|
|
|
|
&self,
|
|
|
|
|
|
|
|
) -> core::result::Result<&core::ffi::CStr, core::ffi::FromBytesUntilNulError> {
|
|
|
|
wrap_c_str_slice_until_nul(&self.category)
|
|
|
|
wrap_c_str_slice_until_nul(&self.category)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn description(
|
|
|
|
pub fn description(
|
|
|
|
mut self,
|
|
|
|
mut self,
|
|
|
|
description: &std::ffi::CStr,
|
|
|
|
description: &core::ffi::CStr,
|
|
|
|
) -> std::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
) -> core::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
write_c_str_slice_with_nul(&mut self.description, description).map(|()| self)
|
|
|
|
write_c_str_slice_with_nul(&mut self.description, description).map(|()| self)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub unsafe fn description_as_c_str(&self) -> &std::ffi::CStr {
|
|
|
|
pub fn description_as_c_str(
|
|
|
|
|
|
|
|
&self,
|
|
|
|
|
|
|
|
) -> core::result::Result<&core::ffi::CStr, core::ffi::FromBytesUntilNulError> {
|
|
|
|
wrap_c_str_slice_until_nul(&self.description)
|
|
|
|
wrap_c_str_slice_until_nul(&self.description)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -28227,8 +28245,8 @@ impl fmt::Debug for PipelineExecutablePropertiesKHR<'_> {
|
|
|
|
.field("s_type", &self.s_type)
|
|
|
|
.field("s_type", &self.s_type)
|
|
|
|
.field("p_next", &self.p_next)
|
|
|
|
.field("p_next", &self.p_next)
|
|
|
|
.field("stages", &self.stages)
|
|
|
|
.field("stages", &self.stages)
|
|
|
|
.field("name", &unsafe { self.name_as_c_str() })
|
|
|
|
.field("name", &self.name_as_c_str())
|
|
|
|
.field("description", &unsafe { self.description_as_c_str() })
|
|
|
|
.field("description", &self.description_as_c_str())
|
|
|
|
.field("subgroup_size", &self.subgroup_size)
|
|
|
|
.field("subgroup_size", &self.subgroup_size)
|
|
|
|
.finish()
|
|
|
|
.finish()
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -28259,23 +28277,27 @@ impl<'a> PipelineExecutablePropertiesKHR<'a> {
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn name(
|
|
|
|
pub fn name(
|
|
|
|
mut self,
|
|
|
|
mut self,
|
|
|
|
name: &std::ffi::CStr,
|
|
|
|
name: &core::ffi::CStr,
|
|
|
|
) -> std::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
) -> core::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
write_c_str_slice_with_nul(&mut self.name, name).map(|()| self)
|
|
|
|
write_c_str_slice_with_nul(&mut self.name, name).map(|()| self)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub unsafe fn name_as_c_str(&self) -> &std::ffi::CStr {
|
|
|
|
pub fn name_as_c_str(
|
|
|
|
|
|
|
|
&self,
|
|
|
|
|
|
|
|
) -> core::result::Result<&core::ffi::CStr, core::ffi::FromBytesUntilNulError> {
|
|
|
|
wrap_c_str_slice_until_nul(&self.name)
|
|
|
|
wrap_c_str_slice_until_nul(&self.name)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn description(
|
|
|
|
pub fn description(
|
|
|
|
mut self,
|
|
|
|
mut self,
|
|
|
|
description: &std::ffi::CStr,
|
|
|
|
description: &core::ffi::CStr,
|
|
|
|
) -> std::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
) -> core::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
write_c_str_slice_with_nul(&mut self.description, description).map(|()| self)
|
|
|
|
write_c_str_slice_with_nul(&mut self.description, description).map(|()| self)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub unsafe fn description_as_c_str(&self) -> &std::ffi::CStr {
|
|
|
|
pub fn description_as_c_str(
|
|
|
|
|
|
|
|
&self,
|
|
|
|
|
|
|
|
) -> core::result::Result<&core::ffi::CStr, core::ffi::FromBytesUntilNulError> {
|
|
|
|
wrap_c_str_slice_until_nul(&self.description)
|
|
|
|
wrap_c_str_slice_until_nul(&self.description)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
@ -28355,8 +28377,8 @@ impl fmt::Debug for PipelineExecutableStatisticKHR<'_> {
|
|
|
|
fmt.debug_struct("PipelineExecutableStatisticKHR")
|
|
|
|
fmt.debug_struct("PipelineExecutableStatisticKHR")
|
|
|
|
.field("s_type", &self.s_type)
|
|
|
|
.field("s_type", &self.s_type)
|
|
|
|
.field("p_next", &self.p_next)
|
|
|
|
.field("p_next", &self.p_next)
|
|
|
|
.field("name", &unsafe { self.name_as_c_str() })
|
|
|
|
.field("name", &self.name_as_c_str())
|
|
|
|
.field("description", &unsafe { self.description_as_c_str() })
|
|
|
|
.field("description", &self.description_as_c_str())
|
|
|
|
.field("format", &self.format)
|
|
|
|
.field("format", &self.format)
|
|
|
|
.field("value", &"union")
|
|
|
|
.field("value", &"union")
|
|
|
|
.finish()
|
|
|
|
.finish()
|
|
|
@ -28383,23 +28405,27 @@ impl<'a> PipelineExecutableStatisticKHR<'a> {
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn name(
|
|
|
|
pub fn name(
|
|
|
|
mut self,
|
|
|
|
mut self,
|
|
|
|
name: &std::ffi::CStr,
|
|
|
|
name: &core::ffi::CStr,
|
|
|
|
) -> std::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
) -> core::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
write_c_str_slice_with_nul(&mut self.name, name).map(|()| self)
|
|
|
|
write_c_str_slice_with_nul(&mut self.name, name).map(|()| self)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub unsafe fn name_as_c_str(&self) -> &std::ffi::CStr {
|
|
|
|
pub fn name_as_c_str(
|
|
|
|
|
|
|
|
&self,
|
|
|
|
|
|
|
|
) -> core::result::Result<&core::ffi::CStr, core::ffi::FromBytesUntilNulError> {
|
|
|
|
wrap_c_str_slice_until_nul(&self.name)
|
|
|
|
wrap_c_str_slice_until_nul(&self.name)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn description(
|
|
|
|
pub fn description(
|
|
|
|
mut self,
|
|
|
|
mut self,
|
|
|
|
description: &std::ffi::CStr,
|
|
|
|
description: &core::ffi::CStr,
|
|
|
|
) -> std::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
) -> core::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
write_c_str_slice_with_nul(&mut self.description, description).map(|()| self)
|
|
|
|
write_c_str_slice_with_nul(&mut self.description, description).map(|()| self)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub unsafe fn description_as_c_str(&self) -> &std::ffi::CStr {
|
|
|
|
pub fn description_as_c_str(
|
|
|
|
|
|
|
|
&self,
|
|
|
|
|
|
|
|
) -> core::result::Result<&core::ffi::CStr, core::ffi::FromBytesUntilNulError> {
|
|
|
|
wrap_c_str_slice_until_nul(&self.description)
|
|
|
|
wrap_c_str_slice_until_nul(&self.description)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
@ -28432,8 +28458,8 @@ impl fmt::Debug for PipelineExecutableInternalRepresentationKHR<'_> {
|
|
|
|
fmt.debug_struct("PipelineExecutableInternalRepresentationKHR")
|
|
|
|
fmt.debug_struct("PipelineExecutableInternalRepresentationKHR")
|
|
|
|
.field("s_type", &self.s_type)
|
|
|
|
.field("s_type", &self.s_type)
|
|
|
|
.field("p_next", &self.p_next)
|
|
|
|
.field("p_next", &self.p_next)
|
|
|
|
.field("name", &unsafe { self.name_as_c_str() })
|
|
|
|
.field("name", &self.name_as_c_str())
|
|
|
|
.field("description", &unsafe { self.description_as_c_str() })
|
|
|
|
.field("description", &self.description_as_c_str())
|
|
|
|
.field("is_text", &self.is_text)
|
|
|
|
.field("is_text", &self.is_text)
|
|
|
|
.field("data_size", &self.data_size)
|
|
|
|
.field("data_size", &self.data_size)
|
|
|
|
.field("p_data", &self.p_data)
|
|
|
|
.field("p_data", &self.p_data)
|
|
|
@ -28463,23 +28489,27 @@ impl<'a> PipelineExecutableInternalRepresentationKHR<'a> {
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn name(
|
|
|
|
pub fn name(
|
|
|
|
mut self,
|
|
|
|
mut self,
|
|
|
|
name: &std::ffi::CStr,
|
|
|
|
name: &core::ffi::CStr,
|
|
|
|
) -> std::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
) -> core::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
write_c_str_slice_with_nul(&mut self.name, name).map(|()| self)
|
|
|
|
write_c_str_slice_with_nul(&mut self.name, name).map(|()| self)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub unsafe fn name_as_c_str(&self) -> &std::ffi::CStr {
|
|
|
|
pub fn name_as_c_str(
|
|
|
|
|
|
|
|
&self,
|
|
|
|
|
|
|
|
) -> core::result::Result<&core::ffi::CStr, core::ffi::FromBytesUntilNulError> {
|
|
|
|
wrap_c_str_slice_until_nul(&self.name)
|
|
|
|
wrap_c_str_slice_until_nul(&self.name)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn description(
|
|
|
|
pub fn description(
|
|
|
|
mut self,
|
|
|
|
mut self,
|
|
|
|
description: &std::ffi::CStr,
|
|
|
|
description: &core::ffi::CStr,
|
|
|
|
) -> std::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
) -> core::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
write_c_str_slice_with_nul(&mut self.description, description).map(|()| self)
|
|
|
|
write_c_str_slice_with_nul(&mut self.description, description).map(|()| self)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub unsafe fn description_as_c_str(&self) -> &std::ffi::CStr {
|
|
|
|
pub fn description_as_c_str(
|
|
|
|
|
|
|
|
&self,
|
|
|
|
|
|
|
|
) -> core::result::Result<&core::ffi::CStr, core::ffi::FromBytesUntilNulError> {
|
|
|
|
wrap_c_str_slice_until_nul(&self.description)
|
|
|
|
wrap_c_str_slice_until_nul(&self.description)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
@ -29948,8 +29978,8 @@ impl fmt::Debug for PhysicalDeviceVulkan12Properties<'_> {
|
|
|
|
.field("s_type", &self.s_type)
|
|
|
|
.field("s_type", &self.s_type)
|
|
|
|
.field("p_next", &self.p_next)
|
|
|
|
.field("p_next", &self.p_next)
|
|
|
|
.field("driver_id", &self.driver_id)
|
|
|
|
.field("driver_id", &self.driver_id)
|
|
|
|
.field("driver_name", &unsafe { self.driver_name_as_c_str() })
|
|
|
|
.field("driver_name", &self.driver_name_as_c_str())
|
|
|
|
.field("driver_info", &unsafe { self.driver_info_as_c_str() })
|
|
|
|
.field("driver_info", &self.driver_info_as_c_str())
|
|
|
|
.field("conformance_version", &self.conformance_version)
|
|
|
|
.field("conformance_version", &self.conformance_version)
|
|
|
|
.field(
|
|
|
|
.field(
|
|
|
|
"denorm_behavior_independence",
|
|
|
|
"denorm_behavior_independence",
|
|
|
@ -30215,23 +30245,27 @@ impl<'a> PhysicalDeviceVulkan12Properties<'a> {
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn driver_name(
|
|
|
|
pub fn driver_name(
|
|
|
|
mut self,
|
|
|
|
mut self,
|
|
|
|
driver_name: &std::ffi::CStr,
|
|
|
|
driver_name: &core::ffi::CStr,
|
|
|
|
) -> std::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
) -> core::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
write_c_str_slice_with_nul(&mut self.driver_name, driver_name).map(|()| self)
|
|
|
|
write_c_str_slice_with_nul(&mut self.driver_name, driver_name).map(|()| self)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub unsafe fn driver_name_as_c_str(&self) -> &std::ffi::CStr {
|
|
|
|
pub fn driver_name_as_c_str(
|
|
|
|
|
|
|
|
&self,
|
|
|
|
|
|
|
|
) -> core::result::Result<&core::ffi::CStr, core::ffi::FromBytesUntilNulError> {
|
|
|
|
wrap_c_str_slice_until_nul(&self.driver_name)
|
|
|
|
wrap_c_str_slice_until_nul(&self.driver_name)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn driver_info(
|
|
|
|
pub fn driver_info(
|
|
|
|
mut self,
|
|
|
|
mut self,
|
|
|
|
driver_info: &std::ffi::CStr,
|
|
|
|
driver_info: &core::ffi::CStr,
|
|
|
|
) -> std::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
) -> core::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
write_c_str_slice_with_nul(&mut self.driver_info, driver_info).map(|()| self)
|
|
|
|
write_c_str_slice_with_nul(&mut self.driver_info, driver_info).map(|()| self)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub unsafe fn driver_info_as_c_str(&self) -> &std::ffi::CStr {
|
|
|
|
pub fn driver_info_as_c_str(
|
|
|
|
|
|
|
|
&self,
|
|
|
|
|
|
|
|
) -> core::result::Result<&core::ffi::CStr, core::ffi::FromBytesUntilNulError> {
|
|
|
|
wrap_c_str_slice_until_nul(&self.driver_info)
|
|
|
|
wrap_c_str_slice_until_nul(&self.driver_info)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
@ -31312,11 +31346,11 @@ impl fmt::Debug for PhysicalDeviceToolProperties<'_> {
|
|
|
|
fmt.debug_struct("PhysicalDeviceToolProperties")
|
|
|
|
fmt.debug_struct("PhysicalDeviceToolProperties")
|
|
|
|
.field("s_type", &self.s_type)
|
|
|
|
.field("s_type", &self.s_type)
|
|
|
|
.field("p_next", &self.p_next)
|
|
|
|
.field("p_next", &self.p_next)
|
|
|
|
.field("name", &unsafe { self.name_as_c_str() })
|
|
|
|
.field("name", &self.name_as_c_str())
|
|
|
|
.field("version", &unsafe { self.version_as_c_str() })
|
|
|
|
.field("version", &self.version_as_c_str())
|
|
|
|
.field("purposes", &self.purposes)
|
|
|
|
.field("purposes", &self.purposes)
|
|
|
|
.field("description", &unsafe { self.description_as_c_str() })
|
|
|
|
.field("description", &self.description_as_c_str())
|
|
|
|
.field("layer", &unsafe { self.layer_as_c_str() })
|
|
|
|
.field("layer", &self.layer_as_c_str())
|
|
|
|
.finish()
|
|
|
|
.finish()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -31342,23 +31376,27 @@ impl<'a> PhysicalDeviceToolProperties<'a> {
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn name(
|
|
|
|
pub fn name(
|
|
|
|
mut self,
|
|
|
|
mut self,
|
|
|
|
name: &std::ffi::CStr,
|
|
|
|
name: &core::ffi::CStr,
|
|
|
|
) -> std::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
) -> core::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
write_c_str_slice_with_nul(&mut self.name, name).map(|()| self)
|
|
|
|
write_c_str_slice_with_nul(&mut self.name, name).map(|()| self)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub unsafe fn name_as_c_str(&self) -> &std::ffi::CStr {
|
|
|
|
pub fn name_as_c_str(
|
|
|
|
|
|
|
|
&self,
|
|
|
|
|
|
|
|
) -> core::result::Result<&core::ffi::CStr, core::ffi::FromBytesUntilNulError> {
|
|
|
|
wrap_c_str_slice_until_nul(&self.name)
|
|
|
|
wrap_c_str_slice_until_nul(&self.name)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn version(
|
|
|
|
pub fn version(
|
|
|
|
mut self,
|
|
|
|
mut self,
|
|
|
|
version: &std::ffi::CStr,
|
|
|
|
version: &core::ffi::CStr,
|
|
|
|
) -> std::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
) -> core::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
write_c_str_slice_with_nul(&mut self.version, version).map(|()| self)
|
|
|
|
write_c_str_slice_with_nul(&mut self.version, version).map(|()| self)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub unsafe fn version_as_c_str(&self) -> &std::ffi::CStr {
|
|
|
|
pub fn version_as_c_str(
|
|
|
|
|
|
|
|
&self,
|
|
|
|
|
|
|
|
) -> core::result::Result<&core::ffi::CStr, core::ffi::FromBytesUntilNulError> {
|
|
|
|
wrap_c_str_slice_until_nul(&self.version)
|
|
|
|
wrap_c_str_slice_until_nul(&self.version)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
@ -31369,23 +31407,27 @@ impl<'a> PhysicalDeviceToolProperties<'a> {
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn description(
|
|
|
|
pub fn description(
|
|
|
|
mut self,
|
|
|
|
mut self,
|
|
|
|
description: &std::ffi::CStr,
|
|
|
|
description: &core::ffi::CStr,
|
|
|
|
) -> std::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
) -> core::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
write_c_str_slice_with_nul(&mut self.description, description).map(|()| self)
|
|
|
|
write_c_str_slice_with_nul(&mut self.description, description).map(|()| self)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub unsafe fn description_as_c_str(&self) -> &std::ffi::CStr {
|
|
|
|
pub fn description_as_c_str(
|
|
|
|
|
|
|
|
&self,
|
|
|
|
|
|
|
|
) -> core::result::Result<&core::ffi::CStr, core::ffi::FromBytesUntilNulError> {
|
|
|
|
wrap_c_str_slice_until_nul(&self.description)
|
|
|
|
wrap_c_str_slice_until_nul(&self.description)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn layer(
|
|
|
|
pub fn layer(
|
|
|
|
mut self,
|
|
|
|
mut self,
|
|
|
|
layer: &std::ffi::CStr,
|
|
|
|
layer: &core::ffi::CStr,
|
|
|
|
) -> std::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
) -> core::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
write_c_str_slice_with_nul(&mut self.layer, layer).map(|()| self)
|
|
|
|
write_c_str_slice_with_nul(&mut self.layer, layer).map(|()| self)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub unsafe fn layer_as_c_str(&self) -> &std::ffi::CStr {
|
|
|
|
pub fn layer_as_c_str(
|
|
|
|
|
|
|
|
&self,
|
|
|
|
|
|
|
|
) -> core::result::Result<&core::ffi::CStr, core::ffi::FromBytesUntilNulError> {
|
|
|
|
wrap_c_str_slice_until_nul(&self.layer)
|
|
|
|
wrap_c_str_slice_until_nul(&self.layer)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -41521,13 +41563,13 @@ impl<'a> CuFunctionCreateInfoNVX<'a> {
|
|
|
|
self
|
|
|
|
self
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn name(mut self, name: &'a std::ffi::CStr) -> Self {
|
|
|
|
pub fn name(mut self, name: &'a core::ffi::CStr) -> Self {
|
|
|
|
self.p_name = name.as_ptr();
|
|
|
|
self.p_name = name.as_ptr();
|
|
|
|
self
|
|
|
|
self
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub unsafe fn name_as_c_str(&self) -> &std::ffi::CStr {
|
|
|
|
pub unsafe fn name_as_c_str(&self) -> &core::ffi::CStr {
|
|
|
|
std::ffi::CStr::from_ptr(self.p_name)
|
|
|
|
core::ffi::CStr::from_ptr(self.p_name)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[repr(C)]
|
|
|
|
#[repr(C)]
|
|
|
@ -43940,13 +43982,13 @@ impl<'a> CudaFunctionCreateInfoNV<'a> {
|
|
|
|
self
|
|
|
|
self
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn name(mut self, name: &'a std::ffi::CStr) -> Self {
|
|
|
|
pub fn name(mut self, name: &'a core::ffi::CStr) -> Self {
|
|
|
|
self.p_name = name.as_ptr();
|
|
|
|
self.p_name = name.as_ptr();
|
|
|
|
self
|
|
|
|
self
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub unsafe fn name_as_c_str(&self) -> &std::ffi::CStr {
|
|
|
|
pub unsafe fn name_as_c_str(&self) -> &core::ffi::CStr {
|
|
|
|
std::ffi::CStr::from_ptr(self.p_name)
|
|
|
|
core::ffi::CStr::from_ptr(self.p_name)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[repr(C)]
|
|
|
|
#[repr(C)]
|
|
|
@ -45817,7 +45859,7 @@ impl fmt::Debug for RenderPassSubpassFeedbackInfoEXT {
|
|
|
|
fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
|
|
|
|
fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
|
|
|
|
fmt.debug_struct("RenderPassSubpassFeedbackInfoEXT")
|
|
|
|
fmt.debug_struct("RenderPassSubpassFeedbackInfoEXT")
|
|
|
|
.field("subpass_merge_status", &self.subpass_merge_status)
|
|
|
|
.field("subpass_merge_status", &self.subpass_merge_status)
|
|
|
|
.field("description", &unsafe { self.description_as_c_str() })
|
|
|
|
.field("description", &self.description_as_c_str())
|
|
|
|
.field("post_merge_index", &self.post_merge_index)
|
|
|
|
.field("post_merge_index", &self.post_merge_index)
|
|
|
|
.finish()
|
|
|
|
.finish()
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -45841,12 +45883,14 @@ impl RenderPassSubpassFeedbackInfoEXT {
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn description(
|
|
|
|
pub fn description(
|
|
|
|
mut self,
|
|
|
|
mut self,
|
|
|
|
description: &std::ffi::CStr,
|
|
|
|
description: &core::ffi::CStr,
|
|
|
|
) -> std::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
) -> core::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
write_c_str_slice_with_nul(&mut self.description, description).map(|()| self)
|
|
|
|
write_c_str_slice_with_nul(&mut self.description, description).map(|()| self)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub unsafe fn description_as_c_str(&self) -> &std::ffi::CStr {
|
|
|
|
pub fn description_as_c_str(
|
|
|
|
|
|
|
|
&self,
|
|
|
|
|
|
|
|
) -> core::result::Result<&core::ffi::CStr, core::ffi::FromBytesUntilNulError> {
|
|
|
|
wrap_c_str_slice_until_nul(&self.description)
|
|
|
|
wrap_c_str_slice_until_nul(&self.description)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
@ -48592,7 +48636,7 @@ pub struct DeviceFaultVendorInfoEXT {
|
|
|
|
impl fmt::Debug for DeviceFaultVendorInfoEXT {
|
|
|
|
impl fmt::Debug for DeviceFaultVendorInfoEXT {
|
|
|
|
fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
|
|
|
|
fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
|
|
|
|
fmt.debug_struct("DeviceFaultVendorInfoEXT")
|
|
|
|
fmt.debug_struct("DeviceFaultVendorInfoEXT")
|
|
|
|
.field("description", &unsafe { self.description_as_c_str() })
|
|
|
|
.field("description", &self.description_as_c_str())
|
|
|
|
.field("vendor_fault_code", &self.vendor_fault_code)
|
|
|
|
.field("vendor_fault_code", &self.vendor_fault_code)
|
|
|
|
.field("vendor_fault_data", &self.vendor_fault_data)
|
|
|
|
.field("vendor_fault_data", &self.vendor_fault_data)
|
|
|
|
.finish()
|
|
|
|
.finish()
|
|
|
@ -48612,12 +48656,14 @@ impl DeviceFaultVendorInfoEXT {
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn description(
|
|
|
|
pub fn description(
|
|
|
|
mut self,
|
|
|
|
mut self,
|
|
|
|
description: &std::ffi::CStr,
|
|
|
|
description: &core::ffi::CStr,
|
|
|
|
) -> std::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
) -> core::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
write_c_str_slice_with_nul(&mut self.description, description).map(|()| self)
|
|
|
|
write_c_str_slice_with_nul(&mut self.description, description).map(|()| self)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub unsafe fn description_as_c_str(&self) -> &std::ffi::CStr {
|
|
|
|
pub fn description_as_c_str(
|
|
|
|
|
|
|
|
&self,
|
|
|
|
|
|
|
|
) -> core::result::Result<&core::ffi::CStr, core::ffi::FromBytesUntilNulError> {
|
|
|
|
wrap_c_str_slice_until_nul(&self.description)
|
|
|
|
wrap_c_str_slice_until_nul(&self.description)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
@ -48694,7 +48740,7 @@ impl fmt::Debug for DeviceFaultInfoEXT<'_> {
|
|
|
|
fmt.debug_struct("DeviceFaultInfoEXT")
|
|
|
|
fmt.debug_struct("DeviceFaultInfoEXT")
|
|
|
|
.field("s_type", &self.s_type)
|
|
|
|
.field("s_type", &self.s_type)
|
|
|
|
.field("p_next", &self.p_next)
|
|
|
|
.field("p_next", &self.p_next)
|
|
|
|
.field("description", &unsafe { self.description_as_c_str() })
|
|
|
|
.field("description", &self.description_as_c_str())
|
|
|
|
.field("p_address_infos", &self.p_address_infos)
|
|
|
|
.field("p_address_infos", &self.p_address_infos)
|
|
|
|
.field("p_vendor_infos", &self.p_vendor_infos)
|
|
|
|
.field("p_vendor_infos", &self.p_vendor_infos)
|
|
|
|
.field("p_vendor_binary_data", &self.p_vendor_binary_data)
|
|
|
|
.field("p_vendor_binary_data", &self.p_vendor_binary_data)
|
|
|
@ -48722,12 +48768,14 @@ impl<'a> DeviceFaultInfoEXT<'a> {
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn description(
|
|
|
|
pub fn description(
|
|
|
|
mut self,
|
|
|
|
mut self,
|
|
|
|
description: &std::ffi::CStr,
|
|
|
|
description: &core::ffi::CStr,
|
|
|
|
) -> std::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
) -> core::result::Result<Self, CStrTooLargeForStaticArray> {
|
|
|
|
write_c_str_slice_with_nul(&mut self.description, description).map(|()| self)
|
|
|
|
write_c_str_slice_with_nul(&mut self.description, description).map(|()| self)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub unsafe fn description_as_c_str(&self) -> &std::ffi::CStr {
|
|
|
|
pub fn description_as_c_str(
|
|
|
|
|
|
|
|
&self,
|
|
|
|
|
|
|
|
) -> core::result::Result<&core::ffi::CStr, core::ffi::FromBytesUntilNulError> {
|
|
|
|
wrap_c_str_slice_until_nul(&self.description)
|
|
|
|
wrap_c_str_slice_until_nul(&self.description)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
@ -50455,13 +50503,13 @@ impl<'a> ShaderCreateInfoEXT<'a> {
|
|
|
|
self
|
|
|
|
self
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn name(mut self, name: &'a std::ffi::CStr) -> Self {
|
|
|
|
pub fn name(mut self, name: &'a core::ffi::CStr) -> Self {
|
|
|
|
self.p_name = name.as_ptr();
|
|
|
|
self.p_name = name.as_ptr();
|
|
|
|
self
|
|
|
|
self
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub unsafe fn name_as_c_str(&self) -> &std::ffi::CStr {
|
|
|
|
pub unsafe fn name_as_c_str(&self) -> &core::ffi::CStr {
|
|
|
|
std::ffi::CStr::from_ptr(self.p_name)
|
|
|
|
core::ffi::CStr::from_ptr(self.p_name)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn set_layouts(mut self, set_layouts: &'a [DescriptorSetLayout]) -> Self {
|
|
|
|
pub fn set_layouts(mut self, set_layouts: &'a [DescriptorSetLayout]) -> Self {
|
|
|
@ -51253,13 +51301,13 @@ unsafe impl<'a> TaggedStructure for PipelineShaderStageNodeCreateInfoAMDX<'a> {
|
|
|
|
unsafe impl ExtendsPipelineShaderStageCreateInfo for PipelineShaderStageNodeCreateInfoAMDX<'_> {}
|
|
|
|
unsafe impl ExtendsPipelineShaderStageCreateInfo for PipelineShaderStageNodeCreateInfoAMDX<'_> {}
|
|
|
|
impl<'a> PipelineShaderStageNodeCreateInfoAMDX<'a> {
|
|
|
|
impl<'a> PipelineShaderStageNodeCreateInfoAMDX<'a> {
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn name(mut self, name: &'a std::ffi::CStr) -> Self {
|
|
|
|
pub fn name(mut self, name: &'a core::ffi::CStr) -> Self {
|
|
|
|
self.p_name = name.as_ptr();
|
|
|
|
self.p_name = name.as_ptr();
|
|
|
|
self
|
|
|
|
self
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub unsafe fn name_as_c_str(&self) -> &std::ffi::CStr {
|
|
|
|
pub unsafe fn name_as_c_str(&self) -> &core::ffi::CStr {
|
|
|
|
std::ffi::CStr::from_ptr(self.p_name)
|
|
|
|
core::ffi::CStr::from_ptr(self.p_name)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#[inline]
|
|
|
|
#[inline]
|
|
|
|
pub fn index(mut self, index: u32) -> Self {
|
|
|
|
pub fn index(mut self, index: u32) -> Self {
|
|
|
|