Lugdunum  0.1.0
Namespaces | Macros | Functions
Renderer.cpp File Reference
#include <lug/Graphics/Vulkan/Renderer.hpp>
#include <lug/Graphics/Graphics.hpp>
#include <lug/Graphics/Vulkan/API/Builder/Device.hpp>
#include <lug/Graphics/Vulkan/API/Builder/Instance.hpp>
#include <lug/Graphics/Vulkan/API/RTTI/Enum.hpp>
#include <lug/Graphics/Vulkan/Requirements/Core.hpp>
#include <lug/Graphics/Vulkan/Requirements/Requirements.hpp>
#include <lug/Graphics/Vulkan/Render/Window.hpp>
#include <lug/System/Logger/Logger.hpp>
#include <lug/Math/Geometry/Transform.hpp>
Include dependency graph for Renderer.cpp:

Go to the source code of this file.

Namespaces

 lug
 
 lug::Graphics
 
 lug::Graphics::Vulkan
 

Macros

#define LUG_INIT_GRAPHICS_MODULES_REQUIREMENTS(name)
 
#define LUG_LOAD_IMAGE_FORMAT_PROPERTIES(formatEnum)   vkGetPhysicalDeviceFormatProperties(physicalDevices[idx], formatEnum, &_physicalDeviceInfos[idx].formatProperties[formatEnum]);
 
#define LUG_CHECK_VULKAN_PHYSICAL_DEVICE_MANDATORY_FEATURES(featureName)
 
#define LUG_CHECK_VULKAN_PHYSICAL_DEVICE_OPTIONNAL_FEATURES(featureName)
 
#define LUG_FILL_VULKAN_PHYSICAL_DEVICE_FEATURES(featureName)   _loadedDeviceFeatures.featureName = _loadedDeviceFeatures.featureName || features.featureName;
 

Functions

static VKAPI_ATTR VkBool32 VKAPI_CALL lug::Graphics::Vulkan::debugReportCallback (VkDebugReportFlagsEXT flags, VkDebugReportObjectTypeEXT, uint64_t, size_t, int32_t, const char *layerPrefix, const char *msg, void *)
 

Macro Definition Documentation

◆ LUG_INIT_GRAPHICS_MODULES_REQUIREMENTS

#define LUG_INIT_GRAPHICS_MODULES_REQUIREMENTS (   name)
Value:
{ \
},
const Renderer::Requirements requirements
Definition: Core.hpp:11

◆ LUG_LOAD_IMAGE_FORMAT_PROPERTIES

#define LUG_LOAD_IMAGE_FORMAT_PROPERTIES (   formatEnum)    vkGetPhysicalDeviceFormatProperties(physicalDevices[idx], formatEnum, &_physicalDeviceInfos[idx].formatProperties[formatEnum]);

◆ LUG_CHECK_VULKAN_PHYSICAL_DEVICE_MANDATORY_FEATURES

#define LUG_CHECK_VULKAN_PHYSICAL_DEVICE_MANDATORY_FEATURES (   featureName)
Value:
{ \
if (requirements.mandatoryFeatures.featureName == VK_TRUE) { \
if (physicalDeviceInfo.features.featureName == VK_TRUE) { \
features.featureName = VK_TRUE; \
} else { \
if (!quiet) { \
LUG_LOG.warn("Device {}: Can't load mandatory feature '{}' for module '{}'", physicalDeviceInfo.properties.deviceName, #featureName, moduleType); \
} \
moduleRequirementsCheck = false; \
} \
} \
}
const Renderer::Requirements requirements
Definition: Core.hpp:11
const VkPhysicalDeviceFeatures mandatoryFeatures
Definition: Renderer.hpp:32

◆ LUG_CHECK_VULKAN_PHYSICAL_DEVICE_OPTIONNAL_FEATURES

#define LUG_CHECK_VULKAN_PHYSICAL_DEVICE_OPTIONNAL_FEATURES (   featureName)
Value:
{ \
if (requirements.optionalFeatures.featureName == VK_TRUE) { \
if (physicalDeviceInfo.features.featureName == VK_TRUE) { \
features.featureName = VK_TRUE; \
} else if (!quiet) { \
LUG_LOG.warn("Device {}: Can't load optional feature '{}' for module '{}'", physicalDeviceInfo.properties.deviceName, #featureName, moduleType); \
} \
} \
}
const Renderer::Requirements requirements
Definition: Core.hpp:11
const VkPhysicalDeviceFeatures optionalFeatures
Definition: Renderer.hpp:33

◆ LUG_FILL_VULKAN_PHYSICAL_DEVICE_FEATURES

#define LUG_FILL_VULKAN_PHYSICAL_DEVICE_FEATURES (   featureName)    _loadedDeviceFeatures.featureName = _loadedDeviceFeatures.featureName || features.featureName;