mirror of
https://github.com/bevyengine/bevy
synced 2025-02-16 22:18:33 +00:00
disable gpu preprocessing on android with Adreno 6xx GPU (#13323)
# Objective - Fixes #13038 ## Solution - Disable gpu preprocessing when feature `SAMPLED_TEXTURE_AND_STORAGE_BUFFER_ARRAY_NON_UNIFORM_INDEXING` is not available ## Testing - Tested on android device that used to crash
This commit is contained in:
parent
16fe7e64cc
commit
e208fb70f5
1 changed files with 4 additions and 1 deletions
|
@ -223,7 +223,10 @@ impl FromWorld for GpuPreprocessingSupport {
|
|||
let adapter = world.resource::<RenderAdapter>();
|
||||
let device = world.resource::<RenderDevice>();
|
||||
|
||||
if device.limits().max_compute_workgroup_size_x == 0 {
|
||||
if device.limits().max_compute_workgroup_size_x == 0 ||
|
||||
// filter lower end / older devices on Android as they crash when using GPU preprocessing
|
||||
(cfg!(target_os = "android") && adapter.get_info().name.starts_with("Adreno (TM) 6"))
|
||||
{
|
||||
GpuPreprocessingSupport::None
|
||||
} else if !device
|
||||
.features()
|
||||
|
|
Loading…
Add table
Reference in a new issue