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

@ -68,7 +68,7 @@ private:
nvvk::Texture m_depthTexture; nvvk::Texture m_depthTexture;
vk::Format m_depthFormat{vk::Format::eD32Sfloat}; vk::Format m_depthFormat{vk::Format::eD32Sfloat};
nvvk::Allocator* m_alloc; // Allocator for buffer, images, acceleration structures nvvk::Allocator* m_alloc{nullptr}; // Allocator for buffer, images, acceleration structures
vk::Device m_device; vk::Device m_device;
int m_graphicsQueueIndex{0}; int m_graphicsQueueIndex{0};
nvvk::DebugUtil m_debug; // Utility to name objects nvvk::DebugUtil m_debug; // Utility to name objects

View file

@ -58,7 +58,7 @@ public:
ObjPushConstants& sceneConstants); ObjPushConstants& sceneConstants);
private: 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::PhysicalDevice m_physicalDevice;
vk::Device m_device; vk::Device m_device;
int m_graphicsQueueIndex{0}; int m_graphicsQueueIndex{0};