New version of the samples and tutorials based on KHR_ray_tracing
This commit is contained in:
parent
2fd15056a2
commit
b6402f0c09
271 changed files with 134108 additions and 2 deletions
24
ray_tracing__advance/vkalloc.hpp
Normal file
24
ray_tracing__advance/vkalloc.hpp
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
|
||||
//#define ALLOC_DEDICATED
|
||||
#define ALLOC_DMA
|
||||
//#define ALLOC_VMA
|
||||
|
||||
#if defined(ALLOC_DEDICATED)
|
||||
#include "nvvkpp/allocator_dedicated_vkpp.hpp"
|
||||
using nvvkBuffer = nvvkpp::BufferDedicated;
|
||||
using nvvkTexture = nvvkpp::TextureDedicated;
|
||||
using nvvkAllocator = nvvkpp::AllocatorDedicated;
|
||||
#elif defined(ALLOC_DMA)
|
||||
#include "nvvkpp/allocator_dma_vkpp.hpp"
|
||||
using nvvkBuffer = nvvkpp::BufferDma;
|
||||
using nvvkTexture = nvvkpp::TextureDma;
|
||||
using nvvkAllocator = nvvkpp::AllocatorDma;
|
||||
using nvvkMemAllocator = nvvk::DeviceMemoryAllocator;
|
||||
|
||||
#elif defined(ALLOC_VMA)
|
||||
#include "nvvkpp/allocator_vma_vkpp.hpp"
|
||||
using nvvkBuffer = nvvkpp::BufferVma;
|
||||
using nvvkTexture = nvvkpp::TextureVma;
|
||||
using nvvkAllocator = nvvkpp::AllocatorVma;
|
||||
using nvvkMemAllocator = VmaAllocator;
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue