Description
Validation fails with the with not enough memory left error on Android if you create a pipeline without FragmentState or a FragmentState with targets set to empty:
10-16 22:27:30.380 18761 18800 I RustStdoutStderr: thread '<unnamed>' panicked at 'wgpu error: Validation Error
10-16 22:27:30.380 18761 18800 I RustStdoutStderr:
10-16 22:27:30.380 18761 18800 I RustStdoutStderr: Caused by:
10-16 22:27:30.380 18761 18800 I RustStdoutStderr: In Device::create_render_pipeline
10-16 22:27:30.380 18761 18800 I RustStdoutStderr: note: label = `model_shadows_render_pipeline`
10-16 22:27:30.380 18761 18800 I RustStdoutStderr: not enough memory left
The pipeline works fine on Windows and Linux but fails on Android (tested on Pixel 5 with Android 11).
Repro steps
Create a shader and render pipeline without a fragment stage.
Description Validation fails with the with
not enough memory left
error on Android if you create a pipeline withoutFragmentState
or aFragmentState
withtargets
set to empty:The pipeline works fine on Windows and Linux but fails on Android (tested on Pixel 5 with Android 11).
Repro steps Create a shader and render pipeline without a fragment stage.
Reproducible example: https://github.com/larsjarlvik/wgpu-android-fragment/
Expected vs observed behavior Validation should pass and run on Android.
Platform Tested with wgpu version "0.11.0" and "0.10.1" Android 11 with vulkan backend