TDME2  1.9.200
Macros
VKRenderer.cpp File Reference
#include <tdme/engine/subsystems/renderer/VKRenderer.h>
#include <GLFW/glfw3.h>
#include <ext/vulkan/glslang/Public/ShaderLang.h>
#include <ext/vulkan/spirv/GlslangToSpv.h>
#include <ext/vulkan/vma/src/VmaUsage.h>
#include <ext/vulkan/OGLCompilersDLL/InitializeDll.h>
#include <ext/vulkan/svs/thsvs_simpler_vulkan_synchronization.h>
#include <array>
#include <cassert>
#include <cstring>
#include <iterator>
#include <map>
#include <memory>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include <tdme/tdme.h>
#include <tdme/application/Application.h>
#include <tdme/engine/Texture.h>
#include <tdme/engine/fileio/textures/TextureReader.h>
#include <tdme/engine/subsystems/manager/TextureManager.h>
#include <tdme/engine/subsystems/renderer/fwd-tdme.h>
#include <tdme/engine/subsystems/renderer/Renderer.h>
#include <tdme/engine/subsystems/renderer/VKGL3CoreShaderProgram.h>
#include <tdme/engine/Engine.h>
#include <tdme/engine/EntityShaderParameters.h>
#include <tdme/engine/FrameBuffer.h>
#include <tdme/engine/Timing.h>
#include <tdme/math/Matrix4x4.h>
#include <tdme/os/filesystem/FileSystem.h>
#include <tdme/os/filesystem/FileSystemInterface.h>
#include <tdme/os/threading/AtomicOperations.h>
#include <tdme/os/threading/Mutex.h>
#include <tdme/os/threading/ReadWriteLock.h>
#include <tdme/utilities/Buffer.h>
#include <tdme/utilities/ByteBuffer.h>
#include <tdme/utilities/Console.h>
#include <tdme/utilities/Exception.h>
#include <tdme/utilities/FloatBuffer.h>
#include <tdme/utilities/Integer.h>
#include <tdme/utilities/IntBuffer.h>
#include <tdme/utilities/RTTI.h>
#include <tdme/utilities/ShortBuffer.h>
#include <tdme/utilities/StringTools.h>
#include <tdme/utilities/Time.h>
Include dependency graph for VKRenderer.cpp:

Go to the source code of this file.

Macros

#define GLFW_INCLUDE_VULKAN
 Vulkan renderer based on https://github.com/glfw/glfw/blob/master/tests/vulkan.c and util.c from Vulkan samples https://vulkan-tutorial.com https://github.com/KhronosGroup/Vulkan-Docs/wiki/Synchronization-Examples https://github.com/SaschaWillems/Vulkan ... More...
 
#define THSVS_SIMPLER_VULKAN_SYNCHRONIZATION_IMPLEMENTATION
 
#define ARRAY_SIZE(a)   (sizeof(a) / sizeof(a[0]))
 
#define ERR_EXIT(err_msg, err_class)
 
#define GET_INSTANCE_PROC_ADDR(inst, entrypoint)
 
#define GET_DEVICE_PROC_ADDR(dev, entrypoint)
 

Macro Definition Documentation

◆ GLFW_INCLUDE_VULKAN

#define GLFW_INCLUDE_VULKAN

◆ THSVS_SIMPLER_VULKAN_SYNCHRONIZATION_IMPLEMENTATION

#define THSVS_SIMPLER_VULKAN_SYNCHRONIZATION_IMPLEMENTATION

Definition at line 26 of file VKRenderer.cpp.

◆ ARRAY_SIZE

#define ARRAY_SIZE (   a)    (sizeof(a) / sizeof(a[0]))

Definition at line 77 of file VKRenderer.cpp.

◆ ERR_EXIT

#define ERR_EXIT (   err_msg,
  err_class 
)
Value:
do { \
Console::println(err_msg); \
Application::exit(1); \
} while (0)

Definition at line 78 of file VKRenderer.cpp.

◆ GET_INSTANCE_PROC_ADDR

#define GET_INSTANCE_PROC_ADDR (   inst,
  entrypoint 
)
Value:
{ \
fp##entrypoint = (PFN_vk##entrypoint)vkGetInstanceProcAddr(inst, "vk" #entrypoint); \
if (fp##entrypoint == nullptr) { \
ERR_EXIT("vkGetInstanceProcAddr failed to find vk" #entrypoint, "vkGetInstanceProcAddr Failure"); \
} \
}

Definition at line 84 of file VKRenderer.cpp.

◆ GET_DEVICE_PROC_ADDR

#define GET_DEVICE_PROC_ADDR (   dev,
  entrypoint 
)
Value:
{ \
fp##entrypoint = (PFN_vk##entrypoint)vkGetDeviceProcAddr(dev, "vk" #entrypoint); \
if (fp##entrypoint == nullptr) { \
ERR_EXIT("vkGetDeviceProcAddr failed to find vk" #entrypoint, "vkGetDeviceProcAddr Failure"); \
} \
}

Definition at line 92 of file VKRenderer.cpp.