Skip to content

Commit

Permalink
igl | vulkan | Pass VulkanContext as non-const
Browse files Browse the repository at this point in the history
Reviewed By: mmaurer

Differential Revision: D64218818

fbshipit-source-id: 73b70a65c007f91ce0918cf46213a3dd72f2ad64
  • Loading branch information
corporateshark authored and facebook-github-bot committed Oct 12, 2024
1 parent a526a6b commit a40c0ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/igl/vulkan/ResourcesBinder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
#include <igl/vulkan/VulkanBuffer.h>
#include <igl/vulkan/VulkanContext.h>
#include <igl/vulkan/VulkanImage.h>
#include <igl/vulkan/VulkanImageView.h>
#include <igl/vulkan/VulkanSampler.h>
#include <igl/vulkan/VulkanTexture.h>

namespace igl::vulkan {

ResourcesBinder::ResourcesBinder(const CommandBuffer* commandBuffer,
const VulkanContext& ctx,
VulkanContext& ctx,
VkPipelineBindPoint bindPoint) :
ctx_(ctx),
cmdBuffer_(commandBuffer ? commandBuffer->getVkCommandBuffer() : VK_NULL_HANDLE),
Expand Down
4 changes: 2 additions & 2 deletions src/igl/vulkan/ResourcesBinder.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ struct BindingsTextures {
class ResourcesBinder final {
public:
ResourcesBinder(const CommandBuffer* commandBuffer,
const VulkanContext& ctx,
VulkanContext& ctx,
VkPipelineBindPoint bindPoint);

/// @brief Binds a uniform buffer with an offset to index equal to `index`
Expand Down Expand Up @@ -91,7 +91,7 @@ class ResourcesBinder final {
};

private:
const VulkanContext& ctx_;
VulkanContext& ctx_;
VkCommandBuffer cmdBuffer_ = VK_NULL_HANDLE;
VkPipeline lastPipelineBound_ = VK_NULL_HANDLE;
uint32_t isDirtyFlags_ = DirtyFlagBits_Textures | DirtyFlagBits_Buffers;
Expand Down

0 comments on commit a40c0ce

Please sign in to comment.