diff --git a/src/rendering/vulkan/system/vk_objects.h b/src/rendering/vulkan/system/vk_objects.h index b5de0c748..bcf54b969 100644 --- a/src/rendering/vulkan/system/vk_objects.h +++ b/src/rendering/vulkan/system/vk_objects.h @@ -804,7 +804,7 @@ inline void VulkanCommandBuffer::executeCommands(uint32_t commandBufferCount, co ///////////////////////////////////////////////////////////////////////////// -inline VulkanShader::VulkanShader(VulkanDevice *device, VkShaderModule module) : device(device), module(module) +inline VulkanShader::VulkanShader(VulkanDevice *device, VkShaderModule module) : module(module), device(device) { } @@ -875,7 +875,7 @@ inline VulkanFramebuffer::~VulkanFramebuffer() ///////////////////////////////////////////////////////////////////////////// -inline VulkanImage::VulkanImage(VulkanDevice *device, VkImage image, VmaAllocation allocation, int width, int height, int mipLevels) : device(device), image(image), allocation(allocation), width(width), height(height), mipLevels(mipLevels) +inline VulkanImage::VulkanImage(VulkanDevice *device, VkImage image, VmaAllocation allocation, int width, int height, int mipLevels) : image(image), width(width), height(height), mipLevels(mipLevels), device(device), allocation(allocation) { } @@ -898,7 +898,7 @@ inline void VulkanImage::Unmap() ///////////////////////////////////////////////////////////////////////////// -inline VulkanImageView::VulkanImageView(VulkanDevice *device, VkImageView view) : device(device), view(view) +inline VulkanImageView::VulkanImageView(VulkanDevice *device, VkImageView view) : view(view), device(device) { } @@ -909,7 +909,7 @@ inline VulkanImageView::~VulkanImageView() ///////////////////////////////////////////////////////////////////////////// -inline VulkanSampler::VulkanSampler(VulkanDevice *device, VkSampler sampler) : device(device), sampler(sampler) +inline VulkanSampler::VulkanSampler(VulkanDevice *device, VkSampler sampler) : sampler(sampler), device(device) { }