mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 12:42:34 +01:00
Allow configuring vulkan renderer max descriptor sets per frame (#3461)
This commit is contained in:
@@ -170,6 +170,11 @@
|
||||
# define BGFX_CONFIG_RENDERER_DIRECT3D11_USE_STAGING_BUFFER 0
|
||||
#endif // BGFX_CONFIG_RENDERER_DIRECT3D11_USE_STAGING_BUFFER
|
||||
|
||||
/// Configure the amount of max descriptor sets per frame for Vulkan
|
||||
#ifndef BGFX_CONFIG_RENDERER_VULKAN_MAX_DESCRIPTOR_SETS_PER_FRAME
|
||||
# define BGFX_CONFIG_RENDERER_VULKAN_MAX_DESCRIPTOR_SETS_PER_FRAME 1024
|
||||
#endif // BGFX_CONFIG_RENDERER_VULKAN_MAX_DESCRIPTOR_SETS_PER_FRAME
|
||||
|
||||
/// Enable use of tinystl.
|
||||
#ifndef BGFX_CONFIG_USE_TINYSTL
|
||||
# define BGFX_CONFIG_USE_TINYSTL 1
|
||||
|
||||
@@ -1130,7 +1130,7 @@ VK_IMPORT_DEVICE
|
||||
);
|
||||
}
|
||||
|
||||
#define MAX_DESCRIPTOR_SETS (1024 * BGFX_CONFIG_MAX_FRAME_LATENCY)
|
||||
#define MAX_DESCRIPTOR_SETS (BGFX_CONFIG_RENDERER_VULKAN_MAX_DESCRIPTOR_SETS_PER_FRAME * BGFX_CONFIG_MAX_FRAME_LATENCY)
|
||||
|
||||
struct RendererContextVK : public RendererContextI
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user