]> O.S.I.I.S - jp/vkvg.git/commitdiff
set default cached context count to 2
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Wed, 9 Mar 2022 12:20:13 +0000 (13:20 +0100)
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Wed, 9 Mar 2022 12:20:13 +0000 (13:20 +0100)
src/vkvg_device.c
src/vkvg_device_internal.h

index 4a266cc90ae8dc541f41d7c17e24782e578baeb9..94f0c1150665130d0976e55a6e0f0eec7603c2e1 100644 (file)
@@ -178,7 +178,8 @@ void vkvg_get_required_device_extensions (VkPhysicalDevice phy, const char** pEx
 //enabledFeature12 is guarantied to be the first in pNext chain
 const void* vkvg_get_device_requirements (VkPhysicalDeviceFeatures* pEnabledFeatures) {
 
-       pEnabledFeatures->fillModeNonSolid = true;
+       pEnabledFeatures->fillModeNonSolid      = VK_TRUE;
+       pEnabledFeatures->sampleRateShading     = VK_TRUE;
 
        void* pNext = NULL;
 
index f776880a3d35e21197a040abd87c6b9d3bc2b2a9..dc44fd3d1879cd1c4e9b52d366e0bf03a9546e56 100644 (file)
@@ -30,7 +30,7 @@
 #define STENCIL_CLIP_BIT       0x2
 #define STENCIL_ALL_BIT                0x3
 
-#define VKVG_MAX_CACHED_CONTEXT_COUNT 0
+#define VKVG_MAX_CACHED_CONTEXT_COUNT 2
 
 extern PFN_vkCmdBindPipeline                   CmdBindPipeline;
 extern PFN_vkCmdBindDescriptorSets             CmdBindDescriptorSets;