| Fling Engine 0.00.1 Fling Engine is a game engine written in Vulkan

FlingVulkan.h
Go to the documentation of this file.
1 #pragma once
2
3 #ifdef NOMINMAX
4
5 #undef NOMINMAX
6
7 #include <vulkan/vulkan.h>
8 #include <vulkan/vk_sdk_platform.h>
9
10 #else
11
12 #define NOMINMAX
13
14 #include <vulkan/vulkan.h>
15 #include <vulkan/vk_sdk_platform.h>
16
17 #undef NOMINMAX
18
19 #endif // NOMINMAX
20
21 // Some Vulkan constant definitions
22 // Grabbed these from Granite: https://github.com/Themaister/Granite/blob/master/vulkan/shader.cpp
23 namespace Fling
24 {
25 static const unsigned VULKAN_NUM_DESCRIPTOR_SETS = 4;
26 static const unsigned VULKAN_NUM_BINDINGS = 16;
27 static const unsigned VULKAN_NUM_ATTACHMENTS = 8;
28 static const unsigned VULKAN_NUM_VERTEX_ATTRIBS = 16;
29 static const unsigned VULKAN_NUM_VERTEX_BUFFERS = 4;
30 static const unsigned VULKAN_PUSH_CONSTANT_SIZE = 128;
31 static const unsigned VULKAN_UBO_SIZE = 16 * 1024;
32 static const unsigned VULKAN_NUM_SPEC_CONSTANTS = 8;
33
34 namespace VkConfig
35 {
36 static const int MAX_FRAMES_IN_FLIGHT = 2;
37 }
38
39 } // namespace Fling
Fling::VkConfig::MAX_FRAMES_IN_FLIGHT
static const int MAX_FRAMES_IN_FLIGHT
Definition: FlingVulkan.h:36
Fling::VULKAN_UBO_SIZE
static const unsigned VULKAN_UBO_SIZE
Definition: FlingVulkan.h:31
Fling::VULKAN_NUM_DESCRIPTOR_SETS
static const unsigned VULKAN_NUM_DESCRIPTOR_SETS
Definition: FlingVulkan.h:25
Fling::VULKAN_NUM_VERTEX_BUFFERS
static const unsigned VULKAN_NUM_VERTEX_BUFFERS
Definition: FlingVulkan.h:29
Fling::VULKAN_NUM_ATTACHMENTS
static const unsigned VULKAN_NUM_ATTACHMENTS
Definition: FlingVulkan.h:27
Fling::VULKAN_NUM_VERTEX_ATTRIBS
static const unsigned VULKAN_NUM_VERTEX_ATTRIBS
Definition: FlingVulkan.h:28
Fling::VULKAN_NUM_BINDINGS
static const unsigned VULKAN_NUM_BINDINGS
Definition: FlingVulkan.h:26
Fling::VULKAN_PUSH_CONSTANT_SIZE
static const unsigned VULKAN_PUSH_CONSTANT_SIZE
Definition: FlingVulkan.h:30
Fling
Definition: Engine.h:29
Fling::VULKAN_NUM_SPEC_CONSTANTS
static const unsigned VULKAN_NUM_SPEC_CONSTANTS
Definition: FlingVulkan.h:32