clippy
This commit is contained in:
@@ -96,6 +96,6 @@ pub fn dds_to_vk(dds_fmt: ImageFormat) -> anyhow::Result<Format> {
|
||||
// BPTC
|
||||
ImageFormat::BC7RgbaUnorm => Ok(Format::BC7_UNORM_BLOCK),
|
||||
ImageFormat::BC7RgbaUnormSrgb => Ok(Format::BC7_SRGB_BLOCK),
|
||||
_ => anyhow::bail!("Unsupported format {:?}", dds_fmt),
|
||||
_ => anyhow::bail!("Unsupported format {dds_fmt:?}"),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -347,6 +347,6 @@ pub fn fourcc_to_vk(fourcc: FourCC) -> anyhow::Result<Format> {
|
||||
DRM_FORMAT_ABGR8888 | DRM_FORMAT_XBGR8888 => Ok(Format::R8G8B8A8_UNORM),
|
||||
DRM_FORMAT_ARGB8888 | DRM_FORMAT_XRGB8888 => Ok(Format::B8G8R8A8_UNORM),
|
||||
DRM_FORMAT_ABGR2101010 | DRM_FORMAT_XBGR2101010 => Ok(Format::A2B10G10R10_UNORM_PACK32),
|
||||
_ => anyhow::bail!("Unsupported format {}", fourcc),
|
||||
_ => anyhow::bail!("Unsupported format {fourcc}"),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -310,7 +310,7 @@ pub fn init_openxr_graphics(
|
||||
.descriptor_binding_sampled_image_update_after_bind(true);
|
||||
|
||||
dynamic_rendering.p_next = device_create_info.p_next.cast_mut();
|
||||
indexing_features.p_next = &raw mut dynamic_rendering as *mut c_void;
|
||||
indexing_features.p_next = (&raw mut dynamic_rendering).cast::<c_void>();
|
||||
device_create_info.p_next = &raw mut indexing_features as *const c_void;
|
||||
|
||||
let (device, queues) = unsafe {
|
||||
|
||||
Reference in New Issue
Block a user