mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-22 06:45:23 +00:00
Fix latest clippy warnings
This commit is contained in:
parent
8ca2bf7868
commit
ad62bf233c
@ -76,8 +76,8 @@ ron = "0.8"
|
|||||||
|
|
||||||
[workspace.lints]
|
[workspace.lints]
|
||||||
rust.missing_docs = "allow" # TODO: warn eventually
|
rust.missing_docs = "allow" # TODO: warn eventually
|
||||||
rust.rust_2018_idioms = "warn"
|
rust.rust_2018_idioms = { level = "warn", priority = -1 }
|
||||||
rust.rust_2024_compatibility = "allow" # TODO: warn eventually
|
rust.rust_2024_compatibility = { level = "allow", priority = -1 } # TODO: warn eventually
|
||||||
clippy.borrow_as_ptr = "warn"
|
clippy.borrow_as_ptr = "warn"
|
||||||
clippy.missing_safety_doc = "allow" # TODO: warn eventually
|
clippy.missing_safety_doc = "allow" # TODO: warn eventually
|
||||||
clippy.ptr_as_ptr = "warn"
|
clippy.ptr_as_ptr = "warn"
|
||||||
|
@ -147,10 +147,8 @@ impl RecordingCommandBuffer {
|
|||||||
/// `None`.
|
/// `None`.
|
||||||
/// - [`transform_offset`] must be a multiple of 16.
|
/// - [`transform_offset`] must be a multiple of 16.
|
||||||
/// - The size of [`vertex_data`] must be at least<br/> [`primitive_offset`] +
|
/// - The size of [`vertex_data`] must be at least<br/> [`primitive_offset`] +
|
||||||
/// ([`first_vertex`]
|
/// ([`first_vertex`] + 3 * [`primitive_count`]) * [`vertex_stride`] <br/>if [`index_data`]
|
||||||
/// + 3 * [`primitive_count`]) * [`vertex_stride`] <br/>if [`index_data`] is `None`, and as
|
/// is `None`, and as in [`build_acceleration_structure`] if [`index_data`] is `Some`.
|
||||||
/// in
|
|
||||||
/// [`build_acceleration_structure`] if [`index_data`] is `Some`.
|
|
||||||
/// - The size of [`index_data`] must be at least<br/> [`primitive_offset`] + 3 *
|
/// - The size of [`index_data`] must be at least<br/> [`primitive_offset`] + 3 *
|
||||||
/// [`primitive_count`] * [`index_data.index_type().size()`].
|
/// [`primitive_count`] * [`index_data.index_type().size()`].
|
||||||
/// - The size of [`transform_data`] must be at least<br/> [`transform_offset`] +
|
/// - The size of [`transform_data`] must be at least<br/> [`transform_offset`] +
|
||||||
|
@ -141,7 +141,8 @@ mod traits;
|
|||||||
/// # Safety
|
/// # Safety
|
||||||
///
|
///
|
||||||
/// - The `x`, `y` and `z` values must not be greater than the respective elements of the
|
/// - The `x`, `y` and `z` values must not be greater than the respective elements of the
|
||||||
/// [`max_compute_work_group_count`](DeviceProperties::max_compute_work_group_count) device limit.
|
/// [`max_compute_work_group_count`](DeviceProperties::max_compute_work_group_count) device
|
||||||
|
/// limit.
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[derive(Clone, Copy, Debug, Default, Zeroable, Pod, PartialEq, Eq)]
|
#[derive(Clone, Copy, Debug, Default, Zeroable, Pod, PartialEq, Eq)]
|
||||||
pub struct DispatchIndirectCommand {
|
pub struct DispatchIndirectCommand {
|
||||||
|
@ -230,8 +230,8 @@ impl Event {
|
|||||||
///
|
///
|
||||||
/// # Safety
|
/// # Safety
|
||||||
///
|
///
|
||||||
/// - There must be an execution dependency between `reset` and the execution of any \
|
/// - There must be an execution dependency between `reset` and the execution of any
|
||||||
/// [`wait_events`] command that includes this event in its `events` parameter.
|
/// [`wait_events`] command that includes this event in its `events` parameter.
|
||||||
///
|
///
|
||||||
/// [`wait_events`]: crate::command_buffer::sys::RawRecordingCommandBuffer::wait_events
|
/// [`wait_events`]: crate::command_buffer::sys::RawRecordingCommandBuffer::wait_events
|
||||||
#[inline]
|
#[inline]
|
||||||
|
Loading…
Reference in New Issue
Block a user