Project
Loading...
Searching...
No Matches
GPUDisplayBackendVulkan.cxx File Reference
#include <vulkan/vulkan.hpp>
#include "HandMadeMath.h"
#include "GPUCommonDef.h"
#include "GPUDisplayBackendVulkan.h"
#include "GPUDisplay.h"
#include "GPULogging.h"
#include "GPUParam.h"
#include <mutex>
#include <iostream>
#include "GPUDisplayLoadShaders.h"

Go to the source code of this file.

Macros

#define VULKAN_HPP_DISPATCH_LOADER_DYNAMIC   1
 
#define GPUCA_DISPLAY_SHADER_TYPE_VULKAN
 
#define CHKERR(cmd)
 
#define LOAD_SHADER(file, ext)    mShaders[#file] = vk::ShaderModuleCreateInfo { {}, _binary_vulkan_##file##_##ext##_spv_len, reinterpret_cast<const uint32_t*>(_binary_vulkan_##file##_##ext##_spv_start) }
 

Detailed Description

Author
David Rohr

Definition in file GPUDisplayBackendVulkan.cxx.

Macro Definition Documentation

◆ CHKERR

#define CHKERR (   cmd)
Value:
do { \
auto tmp_internal_retVal = cmd; \
if ((int32_t)tmp_internal_retVal < 0) { \
GPUError("VULKAN ERROR: %d: %s (%s: %d)", (int32_t)tmp_internal_retVal, "ERROR", __FILE__, __LINE__); \
throw std::runtime_error("Vulkan Failure"); \
} \
} while (false)

Definition at line 35 of file GPUDisplayBackendVulkan.cxx.

◆ GPUCA_DISPLAY_SHADER_TYPE_VULKAN

#define GPUCA_DISPLAY_SHADER_TYPE_VULKAN

Definition at line 31 of file GPUDisplayBackendVulkan.cxx.

◆ LOAD_SHADER

#define LOAD_SHADER (   file,
  ext 
)     mShaders[#file] = vk::ShaderModuleCreateInfo { {}, _binary_vulkan_##file##_##ext##_spv_len, reinterpret_cast<const uint32_t*>(_binary_vulkan_##file##_##ext##_spv_start) }

Definition at line 1224 of file GPUDisplayBackendVulkan.cxx.

◆ VULKAN_HPP_DISPATCH_LOADER_DYNAMIC

#define VULKAN_HPP_DISPATCH_LOADER_DYNAMIC   1

Definition at line 15 of file GPUDisplayBackendVulkan.cxx.