Skip to content

Commit

Permalink
Remove secondary MVKSwapchainImage constructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
billhollings committed Apr 2, 2020
1 parent 6229582 commit fde9d51
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion MoltenVK/MoltenVK/GPUObjects/MVKDevice.mm
Original file line number Diff line number Diff line change
Expand Up @@ -2131,7 +2131,7 @@ static uint32_t mvkGetEntryProperty(io_registry_entry_t entry, CFStringRef prope
}
}
if (swapchainInfo) {
return (MVKImage*)addResource(new MVKSwapchainImage(this, pCreateInfo, (MVKSwapchain*)swapchainInfo->swapchain));
return createSwapchainImage(pCreateInfo, (MVKSwapchain*)swapchainInfo->swapchain, uint32_t(-1), pAllocator);
}
return (MVKImage*)addResource(new MVKImage(this, pCreateInfo));
}
Expand Down
5 changes: 0 additions & 5 deletions MoltenVK/MoltenVK/GPUObjects/MVKImage.h
Original file line number Diff line number Diff line change
Expand Up @@ -320,11 +320,6 @@ class MVKSwapchainImage : public MVKImage {
MVKSwapchain* swapchain,
uint32_t swapchainIndex);

/** Constructs an instance for the specified device and swapchain, without binding to a particular swapchain image index. */
MVKSwapchainImage(MVKDevice* device,
const VkImageCreateInfo* pCreateInfo,
MVKSwapchain* swapchain);

~MVKSwapchainImage() override;

protected:
Expand Down
5 changes: 0 additions & 5 deletions MoltenVK/MoltenVK/GPUObjects/MVKImage.mm
Original file line number Diff line number Diff line change
Expand Up @@ -991,11 +991,6 @@
_preSignaler = make_pair(nullptr, nullptr);
}

MVKSwapchainImage::MVKSwapchainImage(MVKDevice* device,
const VkImageCreateInfo* pCreateInfo,
MVKSwapchain* swapchain) :
MVKSwapchainImage(device, pCreateInfo, swapchain, uint32_t(-1)) {}

MVKSwapchainImage::~MVKSwapchainImage() {
resetMetalDrawable();
}
Expand Down

0 comments on commit fde9d51

Please sign in to comment.