diff --git a/src/igl/vulkan/Common.cpp b/src/igl/vulkan/Common.cpp index b0030123ea..c46db5eeb4 100644 --- a/src/igl/vulkan/Common.cpp +++ b/src/igl/vulkan/Common.cpp @@ -7,7 +7,6 @@ #include "Common.h" -#include #include // clang-format off diff --git a/src/igl/vulkan/Common.h b/src/igl/vulkan/Common.h index 535eb51cc1..8c14d85b58 100644 --- a/src/igl/vulkan/Common.h +++ b/src/igl/vulkan/Common.h @@ -220,7 +220,7 @@ void ensureShaderModule(IShaderModule* sm); /// @brief Implements the igl::IDepthStencilState interface struct DepthStencilState final : public IDepthStencilState { - explicit DepthStencilState(const DepthStencilStateDesc& desc) : desc_(desc) {} + explicit DepthStencilState(DepthStencilStateDesc desc) : desc_(std::move(desc)) {} const DepthStencilStateDesc desc_; }; diff --git a/src/igl/vulkan/PlatformDevice.h b/src/igl/vulkan/PlatformDevice.h index 9fa28ca82e..241ec05e7e 100644 --- a/src/igl/vulkan/PlatformDevice.h +++ b/src/igl/vulkan/PlatformDevice.h @@ -15,9 +15,7 @@ struct AHardwareBuffer; #endif // defined(IGL_ANDROID_HWBUFFER_SUPPORTED) -namespace igl { - -namespace vulkan { +namespace igl::vulkan { class Device; @@ -82,5 +80,4 @@ class PlatformDevice : public IPlatformDevice { std::shared_ptr nativeDepthTexture_; }; -} // namespace vulkan -} // namespace igl +} // namespace igl::vulkan diff --git a/src/igl/vulkan/SamplerState.h b/src/igl/vulkan/SamplerState.h index 87786da494..445481200d 100644 --- a/src/igl/vulkan/SamplerState.h +++ b/src/igl/vulkan/SamplerState.h @@ -14,8 +14,6 @@ namespace igl::vulkan { class Device; -class PipelineState; -class VulkanContext; /** * @brief Encapsulates a VulkanSampler class and its descriptor, along with a vulkan::Device for