Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 12 additions & 18 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,36 +11,30 @@ jobs:
- macos-latest
- windows-latest
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4

- name: Cargo build
uses: actions-rs/cargo@v1
with:
command: build
args: --workspace --all-targets
run: cargo build --workspace --all-targets

fmt:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
run: cargo fmt --all -- --check

clippy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --workspace --all-targets -- -Dwarnings
run: cargo clippy --workspace --all-targets -- -Dwarnings

doc:
runs-on: ubuntu-latest
env:
RUSTDOCFLAGS: -Dwarnings
steps:
- uses: actions/checkout@v4
- name: Cargo doc
run: cargo doc --workspace
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ mod ispc;

pub trait ImagePixelFormat: Copy {
/// Returns the number of channels that an image of this format would have in memory.
/// For example, while a normal map of format [`NormalMapFormat::R8g8TangentSpaceReconstructedZ`] would still have 3 channels when sampled,
/// For example, while a normal map of format [`NormalMapFormat::Rg8TangentSpaceReconstructedZ`] would still have 3 channels when sampled,
/// in memory it will have 2 channels.
fn num_channel_in_memory(self) -> usize;

Expand Down