This commit is contained in:
Max Ammann 2021-12-20 20:39:19 +01:00
parent 49fa26cb98
commit eb5250ae75
2 changed files with 4 additions and 3 deletions

View File

@ -154,7 +154,7 @@ jobs:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install mdbook - name: Install mdbook
run: | run: |
cargo install mdbook --no-default-features --features output --vers "^0.1.0" cargo install --force mdbook --no-default-features --features output --vers "^0.1.0"
- name: Build - name: Build
run: mdbook build run: mdbook build
- name: Deploy to maxammann.org - name: Deploy to maxammann.org

View File

@ -4,11 +4,12 @@ pub const COLOR_TEXTURE_FORMAT: wgpu::TextureFormat = wgpu::TextureFormat::Bgra8
// WebGL // WebGL
#[cfg(all(target_arch = "wasm32", feature = "web-webgl"))] #[cfg(all(target_arch = "wasm32", feature = "web-webgl"))]
pub const COLOR_TEXTURE_FORMAT: wgpu::TextureFormat = wgpu::TextureFormat::Rgba8UnormSrgb; pub const COLOR_TEXTURE_FORMAT: wgpu::TextureFormat = wgpu::TextureFormat::Rgba8UnormSrgb;
// Vulkan/Metal/OpenGL // Vulkan/OpenGL
#[cfg(target_os = "linux")] #[cfg(target_os = "linux")]
pub const COLOR_TEXTURE_FORMAT: wgpu::TextureFormat = wgpu::TextureFormat::Bgra8UnormSrgb; pub const COLOR_TEXTURE_FORMAT: wgpu::TextureFormat = wgpu::TextureFormat::Bgra8UnormSrgb;
#[cfg(target_arch = "aarch64")] // macOS and iOS (Metal)
#[cfg(all(target_arch = "aarch64", not(target_os = "android")))]
pub const COLOR_TEXTURE_FORMAT: wgpu::TextureFormat = wgpu::TextureFormat::Bgra8UnormSrgb; pub const COLOR_TEXTURE_FORMAT: wgpu::TextureFormat = wgpu::TextureFormat::Bgra8UnormSrgb;
#[cfg(target_os = "android")] #[cfg(target_os = "android")]