VmaReplay: Initialized Vulkan.

This commit is contained in:
Adam Sawicki 2018-08-07 14:13:06 +02:00
parent 0b9bcf0340
commit 9d7d848658
2 changed files with 278 additions and 1741 deletions

View File

@ -24,11 +24,6 @@ typedef std::chrono::high_resolution_clock::duration duration;
#define ERR_GUARD_VULKAN(Expr) do { VkResult res__ = (Expr); if (res__ < 0) assert(0); } while(0)
extern VkPhysicalDevice g_hPhysicalDevice;
extern VkDevice g_hDevice;
extern VmaAllocator g_hAllocator;
extern bool g_MemoryAliasingWarningEnabled;
inline float ToFloatSeconds(duration d)
{
return std::chrono::duration_cast<std::chrono::duration<float>>(d).count();
@ -46,8 +41,6 @@ static inline T align_up(T val, T align)
return (val + align - 1) / align * align;
}
static const float PI = 3.14159265358979323846264338327950288419716939937510582f;
class RandomNumberGenerator
{
public:

File diff suppressed because it is too large Load Diff