mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-23 18:06:34 +11:00
Quiet warnings
Fixes the warnings remaining in the code, which should in turn let us check that in CI. Also checks the optional features, which are easy enough to break.
This commit is contained in:
parent
abfe9fbb56
commit
1f6b47bd78
4 changed files with 7 additions and 3 deletions
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
|
@ -20,7 +20,8 @@ jobs:
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
- name: Install native dependencies
|
- name: Install native dependencies
|
||||||
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
|
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
|
||||||
- run: cargo check --workspace
|
- run: cargo check --workspace
|
||||||
|
- run: cargo check --features=hot_reload,buffer_labels
|
||||||
# --exclude with_bevy # for when bevy has an outdated wgpu version
|
# --exclude with_bevy # for when bevy has an outdated wgpu version
|
||||||
# -Dwarnings # for when we have fixed unused code warnings
|
# -Dwarnings # for when we have fixed unused code warnings
|
||||||
|
|
||||||
|
|
|
@ -63,6 +63,7 @@ pub struct BufProxy {
|
||||||
#[derive(Copy, Clone, PartialEq, Eq)]
|
#[derive(Copy, Clone, PartialEq, Eq)]
|
||||||
pub enum ImageFormat {
|
pub enum ImageFormat {
|
||||||
Rgba8,
|
Rgba8,
|
||||||
|
#[allow(unused)]
|
||||||
Bgra8,
|
Bgra8,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -81,6 +82,7 @@ pub enum ResourceProxy {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub enum ExternalResource<'a> {
|
pub enum ExternalResource<'a> {
|
||||||
|
#[allow(unused)]
|
||||||
Buf(BufProxy, &'a Buffer),
|
Buf(BufProxy, &'a Buffer),
|
||||||
Image(ImageProxy, &'a TextureView),
|
Image(ImageProxy, &'a TextureView),
|
||||||
}
|
}
|
||||||
|
@ -800,7 +802,7 @@ impl ResourcePool {
|
||||||
fn get_buf(
|
fn get_buf(
|
||||||
&mut self,
|
&mut self,
|
||||||
size: u64,
|
size: u64,
|
||||||
name: &'static str,
|
#[allow(unused)] name: &'static str,
|
||||||
usage: BufferUsages,
|
usage: BufferUsages,
|
||||||
device: &Device,
|
device: &Device,
|
||||||
) -> Buffer {
|
) -> Buffer {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
engine::{BufProxy, ImageFormat, ImageProxy, Recording, ResourceProxy},
|
engine::{BufProxy, ImageFormat, ImageProxy, Recording, ResourceProxy},
|
||||||
shaders::{self, FullShaders},
|
shaders::FullShaders,
|
||||||
RenderParams, Scene,
|
RenderParams, Scene,
|
||||||
};
|
};
|
||||||
use vello_encoding::{Encoding, WorkgroupSize};
|
use vello_encoding::{Encoding, WorkgroupSize};
|
||||||
|
|
|
@ -5,6 +5,7 @@ use std::{
|
||||||
vec,
|
vec,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#[allow(unused)]
|
||||||
pub fn get_imports(shader_dir: &Path) -> HashMap<String, String> {
|
pub fn get_imports(shader_dir: &Path) -> HashMap<String, String> {
|
||||||
let mut imports = HashMap::new();
|
let mut imports = HashMap::new();
|
||||||
let imports_dir = shader_dir.join("shared");
|
let imports_dir = shader_dir.join("shared");
|
||||||
|
|
Loading…
Add table
Reference in a new issue