Returns true if any size variable exceeds the given limit
| 58 | |
| 59 | // Returns true if any size variable exceeds the given limit |
| 60 | bool ExceedsMaxSize(const Object& object, const GpuInfo& gpu_info) { |
| 61 | return absl::visit(ExceedSizeChecker{gpu_info.max_texture_size, |
| 62 | gpu_info.max_array_texture_layers}, |
| 63 | object.size); |
| 64 | } |
| 65 | |
| 66 | ObjectType ChooseFastestObjectType(const GpuInfo& gpu_info) { |
| 67 | return gpu_info.type == GpuType::ADRENO ? ObjectType::TEXTURE |