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