Skip to content
Merged
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
16 changes: 16 additions & 0 deletions .github/workflows/compile_lambda_rs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,21 @@ jobs:
- os: ubuntu-latest
rustup-toolchain: "stable"
features: "lambda-rs/with-vulkan"
- os: ubuntu-latest
rustup-toolchain: "stable"
features: "lambda-rs/with-vulkan,lambda-rs/audio-output-device"
- os: windows-latest
rustup-toolchain: "stable"
features: "lambda-rs/with-dx12"
- os: windows-latest
rustup-toolchain: "stable"
features: "lambda-rs/with-dx12,lambda-rs/audio-output-device"
- os: macos-latest
rustup-toolchain: "stable"
features: "lambda-rs/with-metal"
- os: macos-latest
rustup-toolchain: "stable"
features: "lambda-rs/with-metal,lambda-rs/audio-output-device"

steps:
- name: Checkout Repository
Expand All @@ -50,6 +59,13 @@ jobs:
libwayland-dev libudev-dev \
libvulkan-dev libvulkan1 mesa-vulkan-drivers vulkan-tools

- name: Install Linux deps for audio
if: ${{ matrix.os == 'ubuntu-latest' && contains(matrix.features, 'lambda-rs/audio-output-device') }}
run: |
sudo apt-get update
sudo apt-get install -y \
libasound2-dev

- name: Configure Vulkan (Ubuntu)
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
Expand Down
229 changes: 222 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions crates/lambda-rs-platform/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ obj-rs = "=0.7.4"
wgpu = { version = "=28.0.0", optional = true, features = ["wgsl", "spirv"] }
pollster = { version = "=0.4.0", optional = true }
lambda-rs-logging = { path = "../lambda-rs-logging", version = "2023.1.30" }
cpal = { version = "=0.17.1", optional = true }

# Force windows crate to 0.62 to unify wgpu-hal and gpu-allocator dependencies.
# Both crates support this version range, but Cargo may resolve to different
Expand All @@ -48,3 +49,11 @@ wgpu-with-vulkan = ["wgpu"]
wgpu-with-metal = ["wgpu", "wgpu/metal"]
wgpu-with-dx12 = ["wgpu", "wgpu/dx12"]
wgpu-with-gl = ["wgpu", "wgpu/webgl"]

# ---------------------------------- AUDIO ------------------------------------

# Umbrella features (disabled by default)
audio = ["audio-device"]

# Granular feature flags (disabled by default)
audio-device = ["dep:cpal"]
Loading
Loading