mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
Please CI
This commit is contained in:
parent
c0664c2bb7
commit
18ac365f79
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
@ -133,7 +133,10 @@ jobs:
|
||||
- if: matrix.clippy_params != ''
|
||||
run: cargo clippy ${{ matrix.clippy_params }}
|
||||
- if: matrix.channel == 'nightly'
|
||||
run: cargo test -- --nocapture
|
||||
run: cargo test -p wgpu-core -- --nocapture
|
||||
- if: matrix.channel == 'nightly'
|
||||
run: cargo run --example wgpu-info -- cargo test -p wgpu -- --nocapture
|
||||
|
||||
|
||||
docs:
|
||||
runs-on: [ubuntu-latest]
|
||||
|
||||
@ -37,6 +37,7 @@ pub fn power_preference_from_env() -> Option<PowerPreference> {
|
||||
}
|
||||
|
||||
/// Initialize the adapter obeying the WGPU_ADAPTER_NAME environment variable.
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
pub fn initialize_adapter_from_env(
|
||||
instance: &Instance,
|
||||
backend_bits: BackendBit,
|
||||
@ -61,6 +62,15 @@ pub fn initialize_adapter_from_env(
|
||||
Some(chosen_adapter.expect("WGPU_ADAPTER_NAME set but no matching adapter found!"))
|
||||
}
|
||||
|
||||
/// Initialize the adapter obeying the WGPU_ADAPTER_NAME environment variable.
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
pub fn initialize_adapter_from_env(
|
||||
_instance: &Instance,
|
||||
_backend_bits: BackendBit,
|
||||
) -> Option<Adapter> {
|
||||
None
|
||||
}
|
||||
|
||||
/// Initialize the adapter obeying the WGPU_ADAPTER_NAME environment variable and if it doesn't exist fall back on a default adapter.
|
||||
pub async fn initialize_adapter_from_env_or_default(
|
||||
instance: &Instance,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user