Skip to content

Commit ede471c

Browse files
committed
Merge branch 'rc/1.62.2' into release
2 parents c7ad869 + 5801576 commit ede471c

File tree

302 files changed

+15544
-8211
lines changed

Some content is hidden

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

302 files changed

+15544
-8211
lines changed

.github/workflows/postsubmit.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
GH_TOKEN: ${{ secrets.FILAMENTBOT_TOKEN }}
2424
run: |
2525
GOLDEN_BRANCH=$(echo "${{ steps.get_commit_msg.outputs.msg }}" | python3 test/renderdiff/src/commit_msg.py)
26-
COMMIT_HASH=$(echo "${{ steps.get_commit_msg.outputs.msg }}" | head -n 1 | tr -d 'commit ')
26+
COMMIT_HASH=$(echo "${{ steps.get_commit_msg.outputs.msg }}" | head -n 1 | sed "s/commit //g")
2727
if [[ "${GOLDEN_BRANCH}" != "main" ]]; then
2828
git config --global user.email "[email protected]"
2929
git config --global user.name "Filament Bot"
@@ -33,3 +33,25 @@ jobs:
3333
python3 test/renderdiff/src/update_golden.py --branch=${GOLDEN_BRANCH} \
3434
--merge-to-main --filament-tag=${COMMIT_HASH} --golden-repo-token=${GH_TOKEN}
3535
fi
36+
37+
update-docs:
38+
name: update-docs
39+
runs-on: 'ubuntu-24.04-4core'
40+
steps:
41+
- uses: actions/[email protected]
42+
with:
43+
fetch-depth: 0
44+
- uses: ./.github/actions/linux-prereq
45+
- id: get_commit_msg
46+
uses: ./.github/actions/get-commit-msg
47+
- name: Prerequisites
48+
run: pip install selenium
49+
- name: Run update script
50+
env:
51+
GH_TOKEN: ${{ secrets.FILAMENTBOT_TOKEN }}
52+
run: |
53+
COMMIT_HASH=$(echo "${{ steps.get_commit_msg.outputs.msg }}" | head -n 1 | sed "s/commit //g")
54+
git config --global user.email "[email protected]"
55+
git config --global user.name "Filament Bot"
56+
git config --global credential.helper cache
57+
bash docs_src/build/postsubmit.sh ${COMMIT_HASH} ${GH_TOKEN}

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -786,6 +786,7 @@ add_subdirectory(${LIBRARIES}/filabridge)
786786
add_subdirectory(${LIBRARIES}/filaflat)
787787
add_subdirectory(${LIBRARIES}/filagui)
788788
add_subdirectory(${LIBRARIES}/filameshio)
789+
add_subdirectory(${LIBRARIES}/generatePrefilterMipmap)
789790
add_subdirectory(${LIBRARIES}/gltfio)
790791
add_subdirectory(${LIBRARIES}/ibl)
791792
add_subdirectory(${LIBRARIES}/iblprefilter)

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.62.1'
34+
implementation 'com.google.android.filament:filament-android:1.62.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.62.1'
54+
pod 'Filament', '~> 1.62.2'
5555
```
5656

5757
## Documentation

RELEASE_NOTES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ 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.62.2
11+
12+
- Metal: fix, respect alpha to coverage rasterization
13+
- engine: removed `Texture::generatePrefilterMipmap`, a new `libfilament-generatePrefilterMipmap` library can be used in its stead [⚠️ **API BREAKAGE**]
14+
1015
## v1.62.1
1116

1217
- Add new shader define `VARIANT_DEPTH`, defined when a material is compiled for depth variants

android/filament-android/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ add_library(filament STATIC IMPORTED)
1313
set_target_properties(filament PROPERTIES IMPORTED_LOCATION
1414
${FILAMENT_DIR}/lib/${ANDROID_ABI}/libfilament.a)
1515

16+
add_library(filament-generatePrefilterMipmap STATIC IMPORTED)
17+
set_target_properties(filament-generatePrefilterMipmap PROPERTIES IMPORTED_LOCATION
18+
${FILAMENT_DIR}/lib/${ANDROID_ABI}/libfilament-generatePrefilterMipmap.a)
19+
1620
add_library(backend STATIC IMPORTED)
1721
set_target_properties(backend PROPERTIES IMPORTED_LOCATION
1822
${FILAMENT_DIR}/lib/${ANDROID_ABI}/libbackend.a)
@@ -120,6 +124,7 @@ add_library(filament-jni SHARED
120124

121125
# Ordering is significant in the following list. The PRIVATE qualifier prevents transitive deps.
122126
target_link_libraries(filament-jni
127+
PRIVATE filament-generatePrefilterMipmap
123128
PRIVATE filament
124129
PRIVATE backend
125130
PRIVATE filaflat

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

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,20 @@
2323
#include <android/bitmap.h>
2424
#endif
2525

26-
#include <backend/BufferDescriptor.h>
2726
#include <filament/Engine.h>
2827
#include <filament/Stream.h>
2928
#include <filament/Texture.h>
3029

30+
#include <filament-generatePrefilterMipmap/generatePrefilterMipmap.h>
31+
32+
#include <backend/BufferDescriptor.h>
33+
3134
#include "common/CallbackUtils.h"
3235
#include "common/NioUtils.h"
3336

3437
#include "private/backend/VirtualMachineEnv.h"
3538

39+
3640
using namespace filament;
3741
using namespace backend;
3842

@@ -421,7 +425,7 @@ Java_com_google_android_filament_Texture_nGeneratePrefilterMipmap(JNIEnv *env, j
421425
Engine *engine = (Engine *) nativeEngine;
422426

423427
jint *faceOffsetsInBytes = env->GetIntArrayElements(faceOffsetsInBytes_, nullptr);
424-
Texture::FaceOffsets faceOffsets;
428+
filament::FaceOffsets faceOffsets;
425429
std::copy_n(faceOffsetsInBytes, 6, faceOffsets.offsets);
426430
env->ReleaseIntArrayElements(faceOffsetsInBytes_, faceOffsetsInBytes, JNI_ABORT);
427431

@@ -444,10 +448,11 @@ Java_com_google_android_filament_Texture_nGeneratePrefilterMipmap(JNIEnv *env, j
444448
(uint32_t) left, (uint32_t) top, (uint32_t) stride,
445449
callback->getHandler(), &JniBufferCallback::postToJavaAndDestroy, callback);
446450

447-
Texture::PrefilterOptions options;
451+
filament::PrefilterOptions options;
448452
options.sampleCount = sampleCount;
449453
options.mirror = mirror;
450-
texture->generatePrefilterMipmap(*engine, std::move(desc), faceOffsets, &options);
454+
455+
filament::generatePrefilterMipmap(texture, *engine, std::move(desc), faceOffsets, &options);
451456

452457
return 0;
453458
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1390,8 +1390,8 @@ public enum BlendMode {
13901390
*
13911391
* \note
13921392
* Dynamic resolution is only supported on platforms where the time to render
1393-
* a frame can be measured accurately. Dynamic resolution is currently only
1394-
* supported on Android.
1393+
* a frame can be measured accurately. On platform where this is not supported,
1394+
* Dynamic Resolution can't be enabled unless minScale == maxScale.
13951395
*
13961396
* @see Renderer::FrameRateOptions
13971397
*

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.62.1
2+
VERSION_NAME=1.62.2
33

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

build/common/get-mesa.sh

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,20 @@ if [[ "$OS_NAME" == "Linux" ]]; then
7777
sudo ln -s /usr/bin/clang++-${CLANG_VERSION} /usr/bin/clang++
7878
fi # [[ "$GITHUB_WORKFLOW" ]]
7979
elif [[ "$OS_NAME" == "Darwin" ]]; then
80-
if [[ ! "$GITHUB_WORKFLOW" ]]; then
81-
if [ ! command -v brew > /dev/null 2>&1 ]; then
82-
echo "Error: need to install homebrew to continue"
83-
exit 1
84-
fi
80+
if command -v brew > /dev/null 2>&1; then
81+
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=true brew install autoconf automake libx11 libxext libxrandr \
82+
llvm@${LLVM_VERSION} ninja meson pkg-config libxshmfence
83+
# For reasons unknown, this is necessary for pkg-config to find homebrew's packages
84+
LOCAL_PKG_CONFIG_PATH="/opt/homebrew/lib/pkgconfig:$PKG_CONFIG_PATH"
85+
elif command -v port > /dev/null 2>&1; then
86+
sudo port install autoconf automake libx11 libXext libXrandr llvm-${LLVM_VERSION} \
87+
ninja meson pkgconfig libxshmfence
88+
# For reasons unknown, this is necessary for pkg-config to find macport's packages
89+
LOCAL_PKG_CONFIG_PATH="/opt/local/lib/pkgconfig:$PKG_CONFIG_PATH"
90+
else
91+
echo "Error: need to install homebrew or macports to continue"
92+
exit 1
8593
fi
86-
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=true brew install autoconf automake libx11 libxext libxrandr llvm@${LLVM_VERSION} ninja meson pkg-config libxshmfence
87-
88-
# For reasons unknown, this is necessary for pkg-config to find homebrew's packages
89-
LOCAL_PKG_CONFIG_PATH="/opt/homebrew/lib/pkgconfig:$PKG_CONFIG_PATH"
9094
fi # [[ "$OS_NAME" == x ]]
9195

9296
LOCAL_LDFLAGS=${LDFLAGS}

docs_src/.gitignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1-
book
2-
src/dup/*.md
1+
build/__pycache__
2+
src_mdbook/book
3+
src_mdbook/src/dup/*.md
4+
src_mdbook/src/main/filament.md
5+
src_mdbook/src/main/materials.md

0 commit comments

Comments
 (0)