You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Optimize Mobile renderer by using FP16 explicitly.
This commit is contained in:
@@ -5888,7 +5888,7 @@ uint64_t RenderingDeviceDriverVulkan::api_trait_get(ApiTrait p_trait) {
|
||||
|
||||
bool RenderingDeviceDriverVulkan::has_feature(Features p_feature) {
|
||||
switch (p_feature) {
|
||||
case SUPPORTS_FSR_HALF_FLOAT:
|
||||
case SUPPORTS_HALF_FLOAT:
|
||||
return shader_capabilities.shader_float16_is_supported && physical_device_features.shaderInt16 && storage_buffer_capabilities.storage_buffer_16_bit_access_is_supported;
|
||||
case SUPPORTS_FRAGMENT_SHADER_WITH_ONLY_SIDE_EFFECTS:
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user