filament
filament copied to clipboard
matdbg is not properly refreshed for Vulkan backend on windows/linux
Describe the bug Vulkan backend has an issue on refreshing the new change from matdbg web on windows/linux.
On linux, changes made in matdbg web are not applied to the app from the second modification unless you resize the app window.
On windows, changes made in matdbg web are not applied to the app from the second modification. Resizing doesn't help in this case.
To Reproduce Steps to reproduce the behavior:
- Build the app with matdbg enabled.
- Run the app on the platform.
- Go to https://localhost:8080
- Try making any change on the web. E.g., colorGrading => desktop fragment OPA =>
postProcess.color = color;
>postProcess.color = color * .5;
- Ctrl + S
- Find the change is reflected on the app.
- Revert the change, then Ctrl + S
- Find the change is not reflected on the app.
Expected behavior Changes from matdbg web should be always properly applied to the app.
Logs from the second modification on windows
Applying edits to colorGrading
ShaderReplacer parse:
ERROR: 0:204: 'gl_FragCoord' : undeclared identifier
ERROR: 0:204: 'xy' : vector swizzle selection out of range
ERROR: 0:204: '=' : cannot convert from ' temp float' to ' temp highp 2-component vector of float'
ERROR: 0:204: '' : compilation terminated
ERROR: 4 compilation errors. No code generated.
DebugServer: Unable to apply shader edit at line 306
Desktop (please complete the following information):
- OS: Linux/Windows
- GPU: NVIDIA GTX 4080
- Backend: Vulkan
I would separate the linux and windows issues since they do not appear to be the same - the linux one (with llvmpipe) does not have compilation error.