Commit Graph
7509 Commits
Author SHA1 Message Date
Doris Wu ff394f7c1b feat: Add Visibility Bitmask method for GTAO (#9101)
* Quick test

* Fix incorrect logic and add some comments

* Set thickness parameter

* refactoring

* Update

* Generated files

* Some comments

* Update

* Update generated files

* Update

* Update

* Add comments
2025-08-26 23:27:02 +00:00
Syed Idris Shah 161b75b9b7 wgpu: Fix samples on linux
Window size should be calculated from windows not screen on XLIB.
XCB window is not implemented in Dawn. Remove the stale/wrong implementation in filament
2025-08-25 16:51:04 -04:00
Powei FengandSerge Metral bc12a56920 vk: check rebind flow if bindDescriptorSet called between draw2 (#9139)
In the case with external samplers, if another descriptor set gets
bound between draw2(), then we need to check to see if a rebinding
of the pipeline is necessary.

Co-authored-by: Serge Metral <sergemetral@google.com>
2025-08-25 09:04:11 -07:00
Mathias Agopian 15bb295ec6 A new froxel grid vizualization for FilamentApp
FilamentApp now has debugging options to enable or disable the
camera and directional shadow frustums, as well as the new
"froxel grid" visualization.

"froxel grid" is automatically enabled when "froxel debugging" is
enabled in the debug gui in gltf_viewer.


New corresponding debugging APIs were added to View.
2025-08-22 15:55:46 -07:00
Mathias Agopian cea178a40c froxel vizualization can now be turned on/off per view
Before this change once the froxel vizualizaition was enabled via
the Engine debug framework, it applied to all views. This adds a
debug API on View to control whether the view will display this
vizualization.
2025-08-22 15:55:46 -07:00
Mathias Agopian f34bb3d775 ViewerGui: hide stereo options when stereo is not enabled 2025-08-22 15:37:06 -07:00
Mathias Agopian 30112b5b5b gltf_Viewer: the -y (--eyes) options wasn't working 2025-08-22 15:37:06 -07:00
Mathias Agopian 9aaa1bf413 FilamentApp: fix projection matrix
For some reason we were not setting the aspect-ratio to 1 and scaling 
the clip-space instead. This could lead to lighting and clipping
issues.
2025-08-22 15:37:06 -07:00
Powei Feng 0471c5de2f vk: use firstBitSet API (#9128)
This is more efficient than the prevoius way
2025-08-22 22:31:48 +00:00
Juan Caldas 65cca71abf webGPU Run Load Image Tests (#9140) 2025-08-22 18:11:16 -04:00
Doris Wu e3384feee0 Clamp before assign to uint (#9132) (b/440220363) 2025-08-22 03:51:11 +00:00
Mathias Agopian 3650556de4 make sure PixelParams::thickness is initialized
If screen-space refraction was used enabled but the thickness
parameter wasn't explicitly set in the material, it would end-up
being uninitialized. Now it's initialized to 0.5 by default,
which is the value used for subsurface.

Also removed some calculations dependent on thickness being set, as
they assumed a thickness of 0.
2025-08-21 20:25:01 -07:00
Powei Feng 679b08b5db github: add script and action for getting gltf assets (#9085)
- Script for getting models from glTF-Sample-Assets
- Add support for reading gltf models from a file.
2025-08-21 22:16:12 +00:00
Juan Caldas 5fd5cd270c webgpu: Skip failing tests for WebGPU (#9133)
BUGS = [424157731]
2025-08-21 20:37:32 +00:00
Andy Hovingh 275ffb409f wgpu: add texture swizzle support (#9129)
BUGS = [433944896]
2025-08-21 20:03:37 +00:00
Powei Feng 0261af22b0 Feature flag guard GEN_MIPMAPPABLE precondition (#9134) 2025-08-21 18:50:06 +00:00
Powei Feng 60bdbb3d1f matdbg: fix matinfo no variants bug (#9127)
matinfo -w doesn't show the variants for any backend other than
metal.  The reason is that the code for updating the variant
list wasn't being triggered on currentBackend changes.
2025-08-21 11:04:59 -07:00
Juan Caldas 84c68f7080 webgpu: Remove texture logs (#9126) 2025-08-20 19:02:43 +00:00
Juan Caldas d9b3535be9 webgpu: Implement blitDEPRECATED (#9121)
BUGS = [436887647]
2025-08-20 18:20:34 +00:00
Juan Caldas fe3c804c73 webgpu: Add missing constexpr (#9125) 2025-08-20 15:56:08 +00:00
Juan Caldas d76ba8fb19 webgpu: refactor texture usage (#9044) 2025-08-20 10:49:25 -04:00
Filament Bot 5daa0cfe4b [automated] Updating /docs due to commit a7653cf
Full commit hash is a7653cf773

DOCS_ALLOW_DIRECT_EDITS
2025-08-20 06:27:19 +00:00
Powei Feng a7653cf773 docs: override index.html to redirect to intro.md 2025-08-19 23:24:38 -07:00
Filament Bot 1b3a22876c [automated] Updating /docs due to commit 663a451
Full commit hash is 663a451031

DOCS_ALLOW_DIRECT_EDITS
2025-08-20 06:13:36 +00:00
Powei Feng 663a451031 renderdiff: enable vulkan (#9108)
RDIFF_BRANCH=pf/renderdiff-enable-vulkan
2025-08-20 06:10:01 +00:00
Mathias Agopian 96b26b85cc add a --workarounds option to matc
Currently the only values possible are 'none' and 'all'. 'all' is the
default. This option will be used to control code generation
workarounds individually. Currently 'all' disable the
MergeReturn and Simplification passes, which have causes issues in
the past on some older Android devices.
2025-08-19 22:10:46 -07:00
Mathias Agopian 69fe317052 matc: add -O0 and -Os aliases for -g and -S 2025-08-19 22:10:46 -07:00
Mathias Agopian 9e16263876 matc: source cleanup 2025-08-19 22:10:46 -07:00
Mathias Agopian cb43e53b71 a small micro optimization when executing commands 2025-08-19 22:10:24 -07:00
Powei Feng 45fcea101f webgpu: enable choosing vulkan backend on MacOS (#9106)
- Add a Configuration struct to the WebGPUPlatform class.  This
   allows for client-side setting of WebGPU backend configurations.
 - Add a configuration for forcing the wgpu backend to pick a
   certain backend.
 - Add Vulkan as a potential backend for WebGPU + MacOS.
 - Locally modify Dawn so that it does not assume only switfshader
   is available for Vulkan on MacOS.
 - Enable vulkan support for Dawn (third_party/dawn/tnt/CMakeLists.txt)
 - Plumb option to pick different WebGPU backend through
   FilamentApp and gltf_viewer.
2025-08-20 04:50:17 +00:00
Powei Feng a150fabace docs: fix broken links (#9118)
- Fix broken links in https://google.github.io/filament/main/
 - Make /README.md links consistent
 - Add additional replacement recipes for /README.md
 - Make /index.html redirect to /dup/intro.html because
   /index.html has the wrong relative links. This is essentially
   adding a redirect-only index.html to src_raw.
2025-08-19 22:37:07 +00:00
Sungun Park 95db13a544 Release Filament 1.64.0 2025-08-19 21:50:50 +00:00
Andy Hovingh a8732caa1f temporary test workaround for missing read_pixels texture usage 2025-08-19 16:42:39 -05:00
Andy Hovingh 0d6995babc wgpu: fix finish(), where it was erroneously returning if a command encoder was not in flight. Also, it was not waiting for async buffer maps to finish 2025-08-19 09:00:08 -05:00
granade-work c9a1e446c8 Add feature to emit image diff highlighting differing pixels when image comparison tests fail. (#9097) 2025-08-18 23:48:28 +00:00
Juan Caldas 39aef4b430 Remove assert and precondition (#9117)
BUGS = [422704995]
2025-08-18 19:18:39 -04:00
Ben Doherty cc382fd571 Metal: verify that the native window is a CAMetalLayer (#9104) 2025-08-18 15:18:53 -04:00
rafadevai 55c65fb8a2 VK: Fix memory corruption in VulkanExternalImageManager (#9116)
When calling setExternalSamplerVkSet the recycle
function lambda captured some variables allocated
on the stack, which are out of scope by the time
the function is called.

Change the capture to be done by value instead of
by ref to avoid this problem.
2025-08-18 10:57:46 -07:00
Sungun Park bcea4ef75d Update MATERIAL_VERSION to 64 2025-08-18 09:45:08 -07:00
Sungun Park 0ef7507464 mat: Store matc parameters in material packages (#9070)
This commit enhances the material compilation process by embedding the
`matc` command-line parameters directly into the compiled material file.
This feature is valuable for debugging, as it allows developers to
inspect the exact compilation settings used for a given material.

A key consideration is the potential for personally identifiable
information (PII) in the command-line arguments (e.g., file paths). To
address this, a `toPIISafeString` method has been implemented to filter
out PII-sensitive options before they are stored in the material.

With this change, the matc command below
    /path/to/matc -a opengl --api vulkan -p desktop -g -o /path/to/my.filamat /path/to/my.mat

is stored to the package as below. (veryfied by running `matinfo my.filamat`)
    Compilation Parameters:         -a opengl --api vulkan -p desktop -g
2025-08-17 19:25:37 +00:00
Mathias Agopian 39268a6ad0 correctly handle UTF8 strings in materials 2025-08-16 22:50:57 -07:00
Konrad Piascik 01f7744025 Remove WebGPU warning since most features now work 2025-08-15 22:15:47 -04:00
Juan Caldas 6b2804985b Modify Load Image (#9068) 2025-08-15 15:29:21 +00:00
Juan Caldas 320ee183c6 webgpu: Gemini provided/inspired documentation
# Conflicts:
#	filament/backend/src/webgpu/WebGPUDriver.cpp
2025-08-15 10:10:04 -05:00
Juan Caldas 8145a5dd25 webgpu: Perform Blit when textures dont match (#9105)
BUGS = [435200998]
2025-08-15 14:41:13 +00:00
Powei Feng ba0793ac18 Revert "[WIP] renderdiff: enable vulkan"
This reverts commit 2c154be0b3.
2025-08-14 16:19:46 -07:00
Powei Feng 2c154be0b3 [WIP] renderdiff: enable vulkan 2025-08-14 16:19:17 -07:00
rafadevai 37f4d0d1fa GL: Fix memory leak when importing AHardwareBuffer (#9094)
In EGL Android, when importing an AHardwareBuffer
from an ExternalImageHandle, the corresponding EGLImageKHR
is not destroyed when calling destroyExternalImageTexture,
causing a memory leak that depending on the scenario
will cause an OOM situation.
2025-08-14 13:15:47 -07:00
Andy Hovingh d83a5903df wgpu: flush/submit commands, e.g. draws, prior to buffer or texture writes to ensure expected state/sequence 2025-08-14 12:24:41 -05:00
Filament Bot 12c3de228f [automated] Updating /docs due to commit bbf0754
Full commit hash is bbf0754183

DOCS_ALLOW_DIRECT_EDITS
2025-08-14 03:25:42 +00:00