Skip to content

Commit

Permalink
Update Android app config
Browse files Browse the repository at this point in the history
  • Loading branch information
jinleili committed Feb 3, 2024
1 parent ab15b1b commit a09af48
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ buildscript {
}
}
plugins {
id 'com.android.application' version '7.4.1' apply false
id 'com.android.library' version '7.4.1' apply false
id 'com.android.application' version '8.2.2' apply false
id 'com.android.library' version '8.2.2' apply false
id 'org.jetbrains.kotlin.android' version '1.7.0' apply false
}

Expand Down
4 changes: 3 additions & 1 deletion Android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ kotlin.code.style=official
# Enables namespacing of each library's R class so that its R class includes only the
# resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
android.nonTransitiveRClass=true
android.defaults.buildfeatures.buildconfig=true
android.nonFinalResIds=false
2 changes: 1 addition & 1 deletion Android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Jan 19 17:47:12 CST 2022
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
6 changes: 4 additions & 2 deletions wgpu-in-app/src/examples/msaa_line.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ pub struct MSAALine {
impl MSAALine {
pub fn new(app_surface: &mut AppSurface) -> Self {
// Only srgb format can show real MSAA effect on metal backend.
let msaa_format = app_surface.config.format.add_srgb_suffix();
app_surface.sdq.update_config_format(msaa_format);
if app_surface.adapter.get_info().backend == wgpu::Backend::Metal {
let msaa_format = app_surface.config.format.add_srgb_suffix();
app_surface.sdq.update_config_format(msaa_format);
}

let config = &app_surface.config;
let device = &app_surface.device;
Expand Down

0 comments on commit a09af48

Please sign in to comment.