Initializing variables

This commit is contained in:
mklefrancois 2020-04-29 16:06:57 +02:00
parent 60103dd1ce
commit 4f46136c08
2 changed files with 10 additions and 10 deletions

View file

@ -39,7 +39,7 @@ class Raytracer
public:
void setup(const vk::Device& device,
const vk::PhysicalDevice& physicalDevice,
nvvk::Allocator* allocator,
nvvk::Allocator* allocator,
uint32_t queueFamily);
void destroy();
@ -58,7 +58,7 @@ public:
ObjPushConstants& sceneConstants);
private:
nvvk::Allocator* m_alloc; // Allocator for buffer, images, acceleration structures
nvvk::Allocator* m_alloc{nullptr}; // Allocator for buffer, images, acceleration structures
vk::PhysicalDevice m_physicalDevice;
vk::Device m_device;
int m_graphicsQueueIndex{0};
@ -74,7 +74,7 @@ private:
std::vector<vk::RayTracingShaderGroupCreateInfoKHR> m_rtShaderGroups;
vk::PipelineLayout m_rtPipelineLayout;
vk::Pipeline m_rtPipeline;
nvvk::Buffer m_rtSBTBuffer;
nvvk::Buffer m_rtSBTBuffer;
struct RtPushConstants
{