google / filament

Filament is a real-time physically based rendering engine for Android, iOS, Windows, Linux, macOS, and WebGL2

Home Page:https://google.github.io/filament/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

metal: assertion when scene has refraction and all effects are disabled

pixelflinger opened this issue · comments

To reproduce:

gltf_viewer -a metal  TransmissionTest.glb

Then either run the automation tests or disable post-processing, MSAA and SSAO.
This will result in this assertion:

-[MTLDebugRenderCommandEncoder validateCommonDrawErrors:]:5252: failed assertion `Draw Errors Validation
Fragment Function(blitterFrag): Shader reads texture (sourceColor[0]) whose usage (0x04) doesn't specify MTLTextureUsageShaderRead (0x01)