Use GpuPreprocessingMode::None if features not supported. (#18630)

# Objective

Fixes #18463 

## Solution

The features didn't seem to be getting checked for selecting
`GpuPreprocessingMode::None`.
This commit is contained in:
charlotte 2025-03-31 11:10:22 -07:00 committed by François Mockers
parent 8edeb85f01
commit 3d1335aeed

View File

@ -1107,7 +1107,8 @@ impl FromWorld for GpuPreprocessingSupport {
DownlevelFlags::VERTEX_AND_INSTANCE_INDEX_RESPECTS_RESPECTIVE_FIRST_VALUE_IN_INDIRECT_DRAW
);
let max_supported_mode = if device.limits().max_compute_workgroup_size_x == 0
let max_supported_mode = if !feature_support
|| device.limits().max_compute_workgroup_size_x == 0
|| is_non_supported_android_device(adapter)
{
GpuPreprocessingMode::None