2022-03-19 03:14:55 -04:00
|
|
|
#include "ge_vulkan_features.hpp"
|
|
|
|
|
2022-08-07 03:33:54 -04:00
|
|
|
#include "ge_compressor_astc_4x4.hpp"
|
2022-03-19 03:14:55 -04:00
|
|
|
#include "ge_vulkan_driver.hpp"
|
2022-03-20 01:35:22 -04:00
|
|
|
#include "ge_vulkan_shader_manager.hpp"
|
2022-03-19 03:14:55 -04:00
|
|
|
|
2022-07-21 00:26:06 -04:00
|
|
|
#include <algorithm>
|
2022-03-19 03:14:55 -04:00
|
|
|
#include <set>
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "../source/Irrlicht/os.h"
|
2022-08-25 03:13:23 -04:00
|
|
|
#include <SDL_cpuinfo.h>
|
2022-03-19 03:14:55 -04:00
|
|
|
|
|
|
|
namespace GE
|
|
|
|
{
|
|
|
|
namespace GEVulkanFeatures
|
|
|
|
{
|
|
|
|
// ============================================================================
|
2022-03-20 01:35:22 -04:00
|
|
|
bool g_supports_bind_textures_at_once = false;
|
2022-04-19 00:49:05 -04:00
|
|
|
bool g_supports_rgba8_blit = false;
|
|
|
|
bool g_supports_r8_blit = false;
|
2022-03-19 03:14:55 -04:00
|
|
|
// https://chunkstories.xyz/blog/a-note-on-descriptor-indexing
|
|
|
|
bool g_supports_descriptor_indexing = false;
|
|
|
|
bool g_supports_non_uniform_indexing = false;
|
|
|
|
bool g_supports_partially_bound = false;
|
2022-07-21 00:26:06 -04:00
|
|
|
uint32_t g_max_sampler_supported = 0;
|
2022-07-23 02:02:37 -04:00
|
|
|
bool g_supports_multi_draw_indirect = false;
|
2022-08-01 12:25:36 -04:00
|
|
|
bool g_supports_base_vertex_rendering = true;
|
2022-08-03 22:56:29 -04:00
|
|
|
bool g_supports_compute_in_main_queue = false;
|
2022-09-30 02:42:06 -04:00
|
|
|
bool g_supports_shader_draw_parameters = false;
|
2022-08-05 21:48:11 -04:00
|
|
|
bool g_supports_s3tc_bc3 = false;
|
2022-08-25 03:13:23 -04:00
|
|
|
bool g_supports_bptc_bc7 = false;
|
2022-08-07 03:33:54 -04:00
|
|
|
bool g_supports_astc_4x4 = false;
|
2022-03-19 03:14:55 -04:00
|
|
|
} // GEVulkanFeatures
|
|
|
|
|
|
|
|
// ============================================================================
|
|
|
|
void GEVulkanFeatures::init(GEVulkanDriver* vk)
|
|
|
|
{
|
2022-03-20 01:35:22 -04:00
|
|
|
g_supports_bind_textures_at_once = true;
|
2022-04-15 05:05:38 -04:00
|
|
|
bool dynamic_indexing = true;
|
2022-03-20 01:35:22 -04:00
|
|
|
VkPhysicalDeviceLimits limit = vk->getPhysicalDeviceProperties().limits;
|
|
|
|
// https://vulkan.gpuinfo.org/displaydevicelimit.php?name=maxDescriptorSetSamplers&platform=all
|
|
|
|
// https://vulkan.gpuinfo.org/displaydevicelimit.php?name=maxDescriptorSetSampledImages&platform=all
|
|
|
|
// https://vulkan.gpuinfo.org/displaydevicelimit.php?name=maxPerStageDescriptorSamplers&platform=all
|
|
|
|
// https://vulkan.gpuinfo.org/displaydevicelimit.php?name=maxPerStageDescriptorSampledImages&platform=all
|
2022-08-18 02:56:44 -04:00
|
|
|
// We decide 512 (GEVulkanShaderManager::getSamplerSize()) based on those infos
|
2022-07-21 00:26:06 -04:00
|
|
|
g_max_sampler_supported = std::min(
|
|
|
|
{
|
|
|
|
limit.maxDescriptorSetSamplers,
|
|
|
|
limit.maxDescriptorSetSampledImages,
|
|
|
|
limit.maxPerStageDescriptorSamplers,
|
|
|
|
limit.maxPerStageDescriptorSampledImages
|
|
|
|
});
|
2022-04-15 05:05:38 -04:00
|
|
|
const unsigned max_sampler_size = GEVulkanShaderManager::getSamplerSize();
|
2022-07-21 00:26:06 -04:00
|
|
|
if (max_sampler_size > g_max_sampler_supported)
|
2022-03-20 01:35:22 -04:00
|
|
|
g_supports_bind_textures_at_once = false;
|
|
|
|
if (vk->getPhysicalDeviceFeatures().shaderSampledImageArrayDynamicIndexing == VK_FALSE)
|
2022-04-15 05:05:38 -04:00
|
|
|
{
|
|
|
|
dynamic_indexing = false;
|
2022-03-20 01:35:22 -04:00
|
|
|
g_supports_bind_textures_at_once = false;
|
2022-04-15 05:05:38 -04:00
|
|
|
}
|
2022-07-23 02:02:37 -04:00
|
|
|
g_supports_multi_draw_indirect = vk->getPhysicalDeviceFeatures().multiDrawIndirect &&
|
|
|
|
vk->getPhysicalDeviceFeatures().drawIndirectFirstInstance;
|
2022-03-20 01:35:22 -04:00
|
|
|
|
2022-04-19 00:49:05 -04:00
|
|
|
VkFormatProperties format_properties = {};
|
|
|
|
vkGetPhysicalDeviceFormatProperties(vk->getPhysicalDevice(),
|
|
|
|
VK_FORMAT_R8G8B8A8_UNORM, &format_properties);
|
|
|
|
g_supports_rgba8_blit = format_properties.optimalTilingFeatures & VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT;
|
|
|
|
format_properties = {};
|
|
|
|
vkGetPhysicalDeviceFormatProperties(vk->getPhysicalDevice(),
|
|
|
|
VK_FORMAT_R8_UNORM, &format_properties);
|
|
|
|
g_supports_r8_blit = format_properties.optimalTilingFeatures & VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT;
|
2022-08-05 21:48:11 -04:00
|
|
|
format_properties = {};
|
|
|
|
vkGetPhysicalDeviceFormatProperties(vk->getPhysicalDevice(),
|
|
|
|
VK_FORMAT_BC3_UNORM_BLOCK, &format_properties);
|
|
|
|
g_supports_s3tc_bc3 = format_properties.optimalTilingFeatures & VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT;
|
2022-08-25 03:13:23 -04:00
|
|
|
#ifdef BC7_ISPC
|
|
|
|
format_properties = {};
|
|
|
|
// We compile bc7e.ispc with avx2 on
|
|
|
|
if (SDL_HasAVX2() == SDL_TRUE)
|
|
|
|
{
|
|
|
|
vkGetPhysicalDeviceFormatProperties(vk->getPhysicalDevice(),
|
|
|
|
VK_FORMAT_BC7_UNORM_BLOCK, &format_properties);
|
|
|
|
g_supports_bptc_bc7 = format_properties.optimalTilingFeatures & VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT;
|
|
|
|
}
|
|
|
|
#endif
|
2022-08-07 03:33:54 -04:00
|
|
|
format_properties = {};
|
|
|
|
vkGetPhysicalDeviceFormatProperties(vk->getPhysicalDevice(),
|
|
|
|
VK_FORMAT_ASTC_4x4_UNORM_BLOCK, &format_properties);
|
|
|
|
g_supports_astc_4x4 = format_properties.optimalTilingFeatures & VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT;
|
2022-04-19 00:49:05 -04:00
|
|
|
|
2022-03-19 03:14:55 -04:00
|
|
|
uint32_t extension_count;
|
|
|
|
vkEnumerateDeviceExtensionProperties(vk->getPhysicalDevice(), NULL,
|
|
|
|
&extension_count, NULL);
|
|
|
|
std::vector<VkExtensionProperties> extensions(extension_count);
|
|
|
|
vkEnumerateDeviceExtensionProperties(vk->getPhysicalDevice(), NULL,
|
|
|
|
&extension_count, &extensions[0]);
|
|
|
|
|
|
|
|
for (VkExtensionProperties& prop : extensions)
|
|
|
|
{
|
2022-09-29 04:01:27 -04:00
|
|
|
if (strcmp(prop.extensionName,
|
|
|
|
VK_EXT_DESCRIPTOR_INDEXING_EXTENSION_NAME) == 0)
|
2022-03-19 03:14:55 -04:00
|
|
|
g_supports_descriptor_indexing = true;
|
|
|
|
}
|
|
|
|
|
2022-08-03 22:56:29 -04:00
|
|
|
uint32_t queue_family_count = 0;
|
|
|
|
vkGetPhysicalDeviceQueueFamilyProperties(vk->getPhysicalDevice(),
|
|
|
|
&queue_family_count, NULL);
|
|
|
|
if (queue_family_count != 0)
|
|
|
|
{
|
|
|
|
std::vector<VkQueueFamilyProperties> queue_families(queue_family_count);
|
|
|
|
vkGetPhysicalDeviceQueueFamilyProperties(vk->getPhysicalDevice(),
|
|
|
|
&queue_family_count, &queue_families[0]);
|
|
|
|
uint32_t main_family = vk->getGraphicsFamily();
|
|
|
|
if (main_family < queue_families.size())
|
|
|
|
{
|
|
|
|
g_supports_compute_in_main_queue =
|
|
|
|
(queue_families[main_family].queueFlags & VK_QUEUE_COMPUTE_BIT)
|
|
|
|
!= 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-19 03:14:55 -04:00
|
|
|
VkPhysicalDeviceFeatures2 supported_features = {};
|
|
|
|
supported_features.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2;
|
|
|
|
VkPhysicalDeviceDescriptorIndexingFeatures descriptor_indexing_features = {};
|
|
|
|
descriptor_indexing_features.sType =
|
|
|
|
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DESCRIPTOR_INDEXING_FEATURES;
|
|
|
|
supported_features.pNext = &descriptor_indexing_features;
|
|
|
|
|
2022-09-30 02:42:06 -04:00
|
|
|
VkPhysicalDeviceShaderDrawParametersFeatures shader_draw = {};
|
|
|
|
shader_draw.sType =
|
|
|
|
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DRAW_PARAMETERS_FEATURES;
|
|
|
|
descriptor_indexing_features.pNext = &shader_draw;
|
|
|
|
|
2022-09-29 04:01:27 -04:00
|
|
|
PFN_vkGetPhysicalDeviceFeatures2 get_features = vkGetPhysicalDeviceFeatures2;
|
2022-04-02 21:55:17 -04:00
|
|
|
if (vk->getPhysicalDeviceProperties().apiVersion < VK_API_VERSION_1_1 ||
|
2022-09-29 04:01:27 -04:00
|
|
|
!get_features)
|
|
|
|
{
|
|
|
|
get_features = (PFN_vkGetPhysicalDeviceFeatures2)
|
|
|
|
vkGetPhysicalDeviceFeatures2KHR;
|
|
|
|
}
|
|
|
|
if (!get_features)
|
2022-03-19 03:14:55 -04:00
|
|
|
return;
|
2022-09-29 04:01:27 -04:00
|
|
|
get_features(vk->getPhysicalDevice(), &supported_features);
|
2022-03-19 03:14:55 -04:00
|
|
|
if (supported_features.sType !=
|
|
|
|
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2)
|
|
|
|
return;
|
|
|
|
|
|
|
|
g_supports_non_uniform_indexing = (descriptor_indexing_features
|
|
|
|
.shaderSampledImageArrayNonUniformIndexing == VK_TRUE);
|
|
|
|
g_supports_partially_bound = (descriptor_indexing_features
|
|
|
|
.descriptorBindingPartiallyBound == VK_TRUE);
|
2022-09-30 02:42:06 -04:00
|
|
|
g_supports_shader_draw_parameters = (shader_draw
|
|
|
|
.shaderDrawParameters == VK_TRUE);
|
2022-04-15 05:05:38 -04:00
|
|
|
|
2022-09-03 21:05:00 -04:00
|
|
|
#if defined(__APPLE__)
|
2022-04-15 05:05:38 -04:00
|
|
|
bool missing_vkGetPhysicalDeviceProperties2 =
|
|
|
|
!vkGetPhysicalDeviceProperties2;
|
|
|
|
if (!missing_vkGetPhysicalDeviceProperties2 &&
|
|
|
|
!g_supports_bind_textures_at_once && dynamic_indexing)
|
|
|
|
{
|
|
|
|
// Required for moltenvk argument buffers
|
|
|
|
VkPhysicalDeviceProperties2 props1 = {};
|
|
|
|
props1.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2;
|
|
|
|
VkPhysicalDeviceDescriptorIndexingProperties props2 = {};
|
|
|
|
props2.sType =
|
|
|
|
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DESCRIPTOR_INDEXING_PROPERTIES;
|
|
|
|
props1.pNext = &props2;
|
|
|
|
vkGetPhysicalDeviceProperties2(vk->getPhysicalDevice(), &props1);
|
|
|
|
if (props2.sType ==
|
|
|
|
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DESCRIPTOR_INDEXING_PROPERTIES)
|
|
|
|
{
|
2022-07-21 00:26:06 -04:00
|
|
|
g_max_sampler_supported = std::min(
|
|
|
|
{
|
|
|
|
props2.maxPerStageDescriptorUpdateAfterBindSamplers,
|
|
|
|
props2.maxPerStageDescriptorUpdateAfterBindSampledImages,
|
|
|
|
props2.maxDescriptorSetUpdateAfterBindSamplers,
|
|
|
|
props2.maxDescriptorSetUpdateAfterBindSampledImages
|
|
|
|
});
|
2022-04-15 05:05:38 -04:00
|
|
|
g_supports_bind_textures_at_once =
|
2022-07-21 00:26:06 -04:00
|
|
|
g_max_sampler_supported >= max_sampler_size;
|
2022-04-15 05:05:38 -04:00
|
|
|
}
|
|
|
|
}
|
2022-08-01 12:25:36 -04:00
|
|
|
|
|
|
|
MVKPhysicalDeviceMetalFeatures mvk_features = {};
|
|
|
|
size_t mvk_features_size = sizeof(MVKPhysicalDeviceMetalFeatures);
|
|
|
|
vkGetPhysicalDeviceMetalFeaturesMVK(vk->getPhysicalDevice(), &mvk_features,
|
|
|
|
&mvk_features_size);
|
|
|
|
g_supports_base_vertex_rendering = mvk_features.baseVertexInstanceDrawing;
|
|
|
|
if (!g_supports_base_vertex_rendering)
|
|
|
|
g_supports_multi_draw_indirect = false;
|
2022-10-02 04:41:09 -04:00
|
|
|
|
|
|
|
// https://github.com/KhronosGroup/MoltenVK/issues/1743
|
|
|
|
g_supports_shader_draw_parameters = false;
|
2022-08-01 12:25:36 -04:00
|
|
|
#endif
|
2022-03-19 03:14:55 -04:00
|
|
|
} // init
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
void GEVulkanFeatures::printStats()
|
|
|
|
{
|
2022-03-20 01:35:22 -04:00
|
|
|
os::Printer::log(
|
|
|
|
"Vulkan can bind textures at once in shader",
|
|
|
|
g_supports_bind_textures_at_once ? "true" : "false");
|
2022-07-21 00:26:06 -04:00
|
|
|
os::Printer::log(
|
|
|
|
"Vulkan can bind mesh textures at once in shader",
|
|
|
|
supportsBindMeshTexturesAtOnce() ? "true" : "false");
|
2022-04-19 00:49:05 -04:00
|
|
|
os::Printer::log(
|
|
|
|
"Vulkan supports linear blitting for rgba8",
|
|
|
|
g_supports_rgba8_blit ? "true" : "false");
|
|
|
|
os::Printer::log(
|
|
|
|
"Vulkan supports linear blitting for r8",
|
|
|
|
g_supports_r8_blit ? "true" : "false");
|
2022-03-19 03:14:55 -04:00
|
|
|
os::Printer::log(
|
|
|
|
"Vulkan supports VK_EXT_descriptor_indexing",
|
|
|
|
g_supports_descriptor_indexing ? "true" : "false");
|
2022-07-23 02:02:37 -04:00
|
|
|
os::Printer::log(
|
|
|
|
"Vulkan supports multi-draw indirect",
|
|
|
|
g_supports_multi_draw_indirect ? "true" : "false");
|
2022-08-01 12:25:36 -04:00
|
|
|
os::Printer::log(
|
|
|
|
"Vulkan supports base vertex rendering",
|
|
|
|
g_supports_base_vertex_rendering ? "true" : "false");
|
2022-08-03 22:56:29 -04:00
|
|
|
os::Printer::log(
|
|
|
|
"Vulkan supports compute in main queue",
|
|
|
|
g_supports_compute_in_main_queue ? "true" : "false");
|
2022-09-30 02:42:06 -04:00
|
|
|
os::Printer::log(
|
|
|
|
"Vulkan supports shader draw parameters",
|
|
|
|
g_supports_shader_draw_parameters ? "true" : "false");
|
2022-08-05 21:48:11 -04:00
|
|
|
os::Printer::log(
|
|
|
|
"Vulkan supports s3 texture compression (bc3, dxt5)",
|
|
|
|
g_supports_s3tc_bc3 ? "true" : "false");
|
2022-08-25 03:13:23 -04:00
|
|
|
os::Printer::log(
|
|
|
|
"Vulkan supports BPTC texture compression (bc7)",
|
|
|
|
g_supports_bptc_bc7 ? "true" : "false");
|
2022-08-07 03:33:54 -04:00
|
|
|
os::Printer::log(
|
|
|
|
"Vulkan supports adaptive scalable texture compression (4x4 block)",
|
|
|
|
supportsASTC4x4() ? "true" : "false");
|
2022-03-19 03:14:55 -04:00
|
|
|
os::Printer::log(
|
|
|
|
"Vulkan descriptor indexes can be dynamically non-uniform",
|
|
|
|
g_supports_non_uniform_indexing ? "true" : "false");
|
|
|
|
os::Printer::log(
|
|
|
|
"Vulkan descriptor can be partially bound",
|
|
|
|
g_supports_partially_bound ? "true" : "false");
|
|
|
|
} // printStats
|
|
|
|
|
2022-03-20 01:35:22 -04:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
bool GEVulkanFeatures::supportsBindTexturesAtOnce()
|
|
|
|
{
|
|
|
|
return g_supports_bind_textures_at_once;
|
|
|
|
} // supportsBindTexturesAtOnce
|
|
|
|
|
2022-04-19 00:49:05 -04:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
bool GEVulkanFeatures::supportsRGBA8Blit()
|
|
|
|
{
|
|
|
|
return g_supports_rgba8_blit;
|
|
|
|
} // supportsRGBA8Blit
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
bool GEVulkanFeatures::supportsR8Blit()
|
|
|
|
{
|
|
|
|
return g_supports_r8_blit;
|
|
|
|
} // supportsR8Blit
|
|
|
|
|
2022-03-19 03:14:55 -04:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
bool GEVulkanFeatures::supportsDescriptorIndexing()
|
|
|
|
{
|
|
|
|
return g_supports_descriptor_indexing;
|
|
|
|
} // supportsDescriptorIndexing
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
bool GEVulkanFeatures::supportsNonUniformIndexing()
|
|
|
|
{
|
|
|
|
return g_supports_non_uniform_indexing;
|
|
|
|
} // supportsNonUniformIndexing
|
|
|
|
|
2022-03-19 04:09:32 -04:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
bool GEVulkanFeatures::supportsDifferentTexturePerDraw()
|
|
|
|
{
|
2022-03-20 01:35:22 -04:00
|
|
|
return g_supports_bind_textures_at_once &&
|
|
|
|
g_supports_descriptor_indexing && g_supports_non_uniform_indexing;
|
2022-03-19 04:09:32 -04:00
|
|
|
} // supportsDifferentTexturePerDraw
|
|
|
|
|
2022-03-19 03:14:55 -04:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
bool GEVulkanFeatures::supportsPartiallyBound()
|
|
|
|
{
|
|
|
|
return g_supports_partially_bound;
|
|
|
|
} // supportsPartiallyBound
|
|
|
|
|
2022-07-21 00:26:06 -04:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
bool GEVulkanFeatures::supportsBindMeshTexturesAtOnce()
|
|
|
|
{
|
2022-10-02 04:41:09 -04:00
|
|
|
if (!g_supports_bind_textures_at_once || !g_supports_multi_draw_indirect ||
|
|
|
|
!g_supports_shader_draw_parameters)
|
2022-07-21 00:26:06 -04:00
|
|
|
return false;
|
|
|
|
const unsigned sampler_count = GEVulkanShaderManager::getSamplerSize() *
|
|
|
|
GEVulkanShaderManager::getMeshTextureLayer();
|
|
|
|
return g_max_sampler_supported >= sampler_count;
|
|
|
|
} // supportsBindMeshTexturesAtOnce
|
|
|
|
|
2022-07-23 02:02:37 -04:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
bool GEVulkanFeatures::supportsMultiDrawIndirect()
|
|
|
|
{
|
|
|
|
return g_supports_multi_draw_indirect;
|
2022-08-03 22:56:29 -04:00
|
|
|
} // supportsMultiDrawIndirect
|
2022-07-23 02:02:37 -04:00
|
|
|
|
2022-08-01 12:25:36 -04:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
bool GEVulkanFeatures::supportsBaseVertexRendering()
|
|
|
|
{
|
|
|
|
return g_supports_base_vertex_rendering;
|
2022-08-03 22:56:29 -04:00
|
|
|
} // supportsBaseVertexRendering
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
bool GEVulkanFeatures::supportsComputeInMainQueue()
|
|
|
|
{
|
|
|
|
return g_supports_compute_in_main_queue;
|
|
|
|
} // supportsComputeInMainQueue
|
2022-08-01 12:25:36 -04:00
|
|
|
|
2022-09-30 02:42:06 -04:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
bool GEVulkanFeatures::supportsShaderDrawParameters()
|
|
|
|
{
|
|
|
|
return g_supports_shader_draw_parameters;
|
|
|
|
} // supportsShaderDrawParameters
|
|
|
|
|
2022-08-05 21:48:11 -04:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
bool GEVulkanFeatures::supportsS3TCBC3()
|
|
|
|
{
|
|
|
|
return g_supports_s3tc_bc3;
|
|
|
|
} // supportsS3TCBC3
|
|
|
|
|
2022-08-25 03:13:23 -04:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
bool GEVulkanFeatures::supportsBPTCBC7()
|
|
|
|
{
|
|
|
|
return g_supports_bptc_bc7;
|
|
|
|
} // supportsBPTCBC7
|
|
|
|
|
2022-08-07 03:33:54 -04:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
bool GEVulkanFeatures::supportsASTC4x4()
|
|
|
|
{
|
|
|
|
return g_supports_astc_4x4 && GECompressorASTC4x4::loaded();
|
|
|
|
} // supportsASTC4x4
|
|
|
|
|
2022-03-19 03:14:55 -04:00
|
|
|
}
|