Skip to content

Commit

Permalink
Zephyr: GPU: small cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
fleroviux committed Nov 22, 2023
1 parent 73433ad commit 7c4a2f9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion zephyr/gpu/src/vulkan/pipeline_builder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ namespace zephyr {
m_dynamic_state_info.pDynamicStates = dynamic_states.Data();
m_dynamic_state_info.dynamicStateCount = dynamic_states.Size();

auto pipeline = VkPipeline{};
VkPipeline pipeline{};

if(vkCreateGraphicsPipelines(m_device, VK_NULL_HANDLE, 1, &m_pipeline_info, nullptr, &pipeline) != VK_SUCCESS) {
ZEPHYR_PANIC("VulkanGraphicsPipelineBuilder: failed to create graphics pipeline");
Expand Down
2 changes: 1 addition & 1 deletion zephyr/gpu/src/vulkan/render_pass.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace zephyr {
return m_render_pass;
}

auto GetNumberOfColorAttachments() const -> size_t override {
size_t GetNumberOfColorAttachments() const override {
return m_color_attachment_count;
}

Expand Down
2 changes: 1 addition & 1 deletion zephyr/gpu/src/vulkan/texture.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ namespace zephyr {
flags |= VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT;
}

auto image_info = VkImageCreateInfo{
const VkImageCreateInfo image_info{
.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO,
.pNext = nullptr,
.flags = flags,
Expand Down

0 comments on commit 7c4a2f9

Please sign in to comment.