Increase sampler size for max 20 karts in game

This commit is contained in:
Benau
2022-08-18 14:56:44 +08:00
parent 2d1c7385c6
commit 058aa45894
2 changed files with 2 additions and 2 deletions

View File

@@ -41,7 +41,7 @@ void GEVulkanFeatures::init(GEVulkanDriver* vk)
// 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
// We decide 256 (GEVulkanShaderManager::getSamplerSize()) based on those infos
// We decide 512 (GEVulkanShaderManager::getSamplerSize()) based on those infos
g_max_sampler_supported = std::min(
{
limit.maxDescriptorSetSamplers,

View File

@@ -25,7 +25,7 @@ std::string g_predefines = "";
// More when PBR is used later
uint32_t g_mesh_texture_layer = 2;
uint32_t g_sampler_size = 256;
uint32_t g_sampler_size = 512;
std::map<std::string, VkShaderModule> g_shaders;
} // GEVulkanShaderManager