Skip to content

Commit 0cb9e85

Browse files
committed
Merge branch 'rc/1.65.2' into release
2 parents d183347 + 72abf1f commit 0cb9e85

File tree

109 files changed

+2496
-356
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+2496
-356
lines changed

.github/actions/get-vulkan-sdk/action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ runs:
88
uses: actions/cache@v3
99
id: cache-vulkan-sdk
1010
with:
11-
path: ${{ runner.homedir }}/VulkanSDK
11+
path: ~/VulkanSDK
1212
key: vulkansdk-${{ env.GITHUB_VULKANSDK_VERSION }}-2-${{ runner.os }}
1313
- name: Download Vulkan SDK
1414
if: steps.cache-vulkan-sdk.outputs.cache-hit != 'true'
@@ -21,6 +21,9 @@ runs:
2121
run: |
2222
source ${{ github.workspace }}/build/common/get-vulkan-sdk.sh
2323
unpack_vulkan_installer
24+
shell: bash
25+
- name: Run Vulkan SDK setup
26+
run: |
2427
pushd .
2528
cd ~/VulkanSDK/${GITHUB_VULKANSDK_VERSION}
2629
sudo ./install_vulkan.py

.github/actions/mac-prereq/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ runs:
1414
id: brew-cache
1515
uses: actions/cache@v4 # Use a specific version
1616
with:
17-
path: $HOME/Library/Caches/Homebrew
17+
path: ~/Library/Caches/Homebrew
1818
key: ${{ runner.os }}-brew-20250424
1919
- name: Install Mac Prerequisites
2020
shell: bash

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ repositories {
3131
}
3232
3333
dependencies {
34-
implementation 'com.google.android.filament:filament-android:1.65.1'
34+
implementation 'com.google.android.filament:filament-android:1.65.2'
3535
}
3636
```
3737

@@ -51,7 +51,7 @@ Here are all the libraries available in the group `com.google.android.filament`:
5151
iOS projects can use CocoaPods to install the latest release:
5252

5353
```shell
54-
pod 'Filament', '~> 1.65.1'
54+
pod 'Filament', '~> 1.65.2'
5555
```
5656

5757
## Documentation

RELEASE_NOTES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ A new header is inserted each time a *tag* is created.
77
Instead, if you are authoring a PR for the main branch, add your release note to
88
[NEW_RELEASE_NOTES.md](./NEW_RELEASE_NOTES.md).
99

10+
## v1.65.2
11+
12+
1013
## v1.65.1
1114

1215
- `setFrameScheduledCallback` now works on all backends (frame presentation scheduling is still only

android/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ nexusPublishing {
178178
repositories {
179179
sonatype {
180180
stagingProfileId = '9a75a224a4f17b'
181+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
182+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
181183
}
182184
}
183185
}

android/filament-android/src/main/cpp/SwapChain.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ Java_com_google_android_filament_SwapChain_nIsSRGBSwapChainSupported(
4040
return (jboolean)SwapChain::isSRGBSwapChainSupported(*engine);
4141
}
4242

43+
extern "C" JNIEXPORT jboolean JNICALL
44+
Java_com_google_android_filament_SwapChain_nIsMSAASwapChainSupported(
45+
JNIEnv *, jclass, jlong nativeEngine, jint samples) {
46+
Engine* engine = (Engine*) nativeEngine;
47+
return (jboolean)SwapChain::isMSAASwapChainSupported(*engine, samples);
48+
}
49+
4350
extern "C" JNIEXPORT jboolean JNICALL
4451
Java_com_google_android_filament_SwapChain_nIsProtectedContentSupported(
4552
JNIEnv *, jclass, jlong nativeEngine) {

android/filament-android/src/main/java/com/google/android/filament/SwapChain.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,19 @@ public static boolean isSRGBSwapChainSupported(@NonNull Engine engine) {
9797
return nIsSRGBSwapChainSupported(engine.getNativeObject());
9898
}
9999

100+
/**
101+
* Return whether createSwapChain supports the CONFIG_MSAA_*_SAMPLES flag.
102+
* The default implementation returns false.
103+
*
104+
* @param engine A reference to the filament Engine
105+
* @param samples The number of samples
106+
* @return true if CONFIG_MSAA_*_SAMPLES is supported, false otherwise.
107+
* @see SwapChainFlags#CONFIG_MSAA_*_SAMPLES
108+
*/
109+
public static boolean isMSAASwapChainSupported(@NonNull Engine engine, int samples) {
110+
return nIsMSAASwapChainSupported(engine.getNativeObject(), samples);
111+
}
112+
100113
/**
101114
* @return the native <code>Object</code> this <code>SwapChain</code> was created from or null
102115
* for a headless SwapChain.
@@ -139,5 +152,6 @@ void clearNativeObject() {
139152

140153
private static native void nSetFrameCompletedCallback(long nativeSwapChain, Object handler, Runnable callback);
141154
private static native boolean nIsSRGBSwapChainSupported(long nativeEngine);
155+
private static native boolean nIsMSAASwapChainSupported(long nativeEngine, int samples);
142156
private static native boolean nIsProtectedContentSupported(long nativeEngine);
143157
}

android/filament-android/src/main/java/com/google/android/filament/SwapChainFlags.java

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,15 @@ public final class SwapChainFlags {
9292
* The SwapChain contains protected content. Only supported when isProtectedContentSupported()
9393
* is true.
9494
*/
95-
public static final long CONFIG_PROTECTED_CONTENT = 0x40;
96-
}
95+
public static final long CONFIG_PROTECTED_CONTENT = 0x40;
9796

97+
/**
98+
* Indicates that the SwapChain is configured to use Multi-Sample Anti-Aliasing (MSAA) with the
99+
* given sample points within each pixel. Only supported when isMSAASwapChainSupported(4) is
100+
* true.
101+
*
102+
* This is only supported by EGL(Android). Other GL platforms (GLX, WGL, etc) don't support it
103+
* because the swapchain MSAA settings must be configured before window creation.
104+
*/
105+
public static final long CONFIG_MSAA_4_SAMPLES = 0x80;
106+
}

android/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
GROUP=com.google.android.filament
2-
VERSION_NAME=1.65.1
2+
VERSION_NAME=1.65.2
33

44
POM_DESCRIPTION=Real-time physically based rendering engine for Android.
55

0 commit comments

Comments
 (0)