Remove secondary MVKSwapchainImage constructor.
This commit is contained in:
parent
6229582887
commit
fde9d515ca
@ -2131,7 +2131,7 @@ MVKImage* MVKDevice::createImage(const VkImageCreateInfo* pCreateInfo,
|
||||
}
|
||||
}
|
||||
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));
|
||||
}
|
||||
|
@ -320,11 +320,6 @@ public:
|
||||
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:
|
||||
|
@ -991,11 +991,6 @@ MVKSwapchainImage::MVKSwapchainImage(MVKDevice* device,
|
||||
_preSignaler = make_pair(nullptr, nullptr);
|
||||
}
|
||||
|
||||
MVKSwapchainImage::MVKSwapchainImage(MVKDevice* device,
|
||||
const VkImageCreateInfo* pCreateInfo,
|
||||
MVKSwapchain* swapchain) :
|
||||
MVKSwapchainImage(device, pCreateInfo, swapchain, uint32_t(-1)) {}
|
||||
|
||||
MVKSwapchainImage::~MVKSwapchainImage() {
|
||||
resetMetalDrawable();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user