chore: Removing warnings in all but main playground crate
This commit is contained in:
@@ -1,18 +1,12 @@
|
||||
use std::num::NonZero;
|
||||
|
||||
use itertools::Itertools;
|
||||
use wgpu::BindGroup;
|
||||
use wgpu::BindGroupLayout;
|
||||
use wgpu::Buffer;
|
||||
use wgpu::BufferUsages;
|
||||
use wgpu::CommandEncoder;
|
||||
use wgpu::ComputePass;
|
||||
use wgpu::ComputePipeline;
|
||||
use wgpu::Device;
|
||||
use wgpu::QuerySet;
|
||||
use wgpu::ShaderStages;
|
||||
use wgpu::include_spirv;
|
||||
use wgpu::util::DeviceExt;
|
||||
|
||||
#[derive(Clone, Copy, PartialEq, Eq)]
|
||||
pub enum RadixSortDirection
|
||||
@@ -34,14 +28,16 @@ pub struct RadixSorter
|
||||
{
|
||||
max_size: usize,
|
||||
histogram_count: usize,
|
||||
histo_block_count: usize,
|
||||
|
||||
#[allow(unused)]
|
||||
histograms: Buffer,
|
||||
histograms_bind_group: BindGroup,
|
||||
|
||||
data_bind_group_layout: BindGroupLayout,
|
||||
|
||||
#[allow(unused)]
|
||||
double_buffer_keys: Buffer,
|
||||
#[allow(unused)]
|
||||
double_buffer_values: Buffer,
|
||||
double_buffer_bind_group: BindGroup,
|
||||
|
||||
@@ -294,7 +290,6 @@ impl RadixSorter
|
||||
|
||||
RadixSorter {
|
||||
max_size,
|
||||
histo_block_count,
|
||||
histogram_count,
|
||||
histograms,
|
||||
histograms_bind_group,
|
||||
@@ -325,6 +320,7 @@ impl RadixSorter
|
||||
/// An indirect count can be passed in `indirect` as a buffer of a single u32 on GPU.
|
||||
/// A CPU side length can be passed in `direct_length`
|
||||
/// `sort_direction` dictates the direction of the sort.
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
pub fn sort(
|
||||
&self,
|
||||
device: &Device,
|
||||
|
||||
Reference in New Issue
Block a user