40 lines
598 B
C++
40 lines
598 B
C++
|
|
#pragma once
|
|
|
|
#if !defined(VK_CAPTURE_COMMON_HPP_INCLUDED)
|
|
#define VK_CAPTURE_COMMON_HPP_INCLUDED 1
|
|
|
|
#include <cstddef>
|
|
#include "vk_capture.h"
|
|
|
|
namespace vk_capture
|
|
{
|
|
|
|
//
|
|
// public defines
|
|
//
|
|
|
|
//
|
|
// public constants
|
|
//
|
|
|
|
//
|
|
// public types
|
|
//
|
|
|
|
//
|
|
// public functions
|
|
//
|
|
|
|
VkVariantMWN* allocVariant(std::size_t num);
|
|
void* allocData(std::size_t bytes, std::size_t alignment = 1);
|
|
|
|
template<typename T>
|
|
inline T* allocType(std::size_t count = 1) {
|
|
return static_cast<T*>(allocData(sizeof(T) * count, alignof(T)));
|
|
}
|
|
|
|
} // namespace vk_capture
|
|
|
|
#endif // !defined(VK_CAPTURE_COMMON_HPP_INCLUDED)
|