SwapChain function naming
This commit is contained in:
parent
0c5705f2e9
commit
bf37fa2d17
2 changed files with 3 additions and 3 deletions
|
|
@ -526,7 +526,7 @@ void VulkanExampleBase::initVulkan(bool enableValidation)
|
||||||
VkBool32 validDepthFormat = vkTools::getSupportedDepthFormat(physicalDevice, &depthFormat);
|
VkBool32 validDepthFormat = vkTools::getSupportedDepthFormat(physicalDevice, &depthFormat);
|
||||||
assert(validDepthFormat);
|
assert(validDepthFormat);
|
||||||
|
|
||||||
swapChain.init(instance, physicalDevice, device);
|
swapChain.connect(instance, physicalDevice, device);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
|
|
||||||
|
|
@ -217,8 +217,8 @@ public:
|
||||||
colorSpace = surfaceFormats[0].colorSpace;
|
colorSpace = surfaceFormats[0].colorSpace;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Assign instance und device handles and get all required function pointers
|
// Connect to the instance und device and get all required function pointers
|
||||||
void init(VkInstance instance, VkPhysicalDevice physicalDevice, VkDevice device)
|
void connect(VkInstance instance, VkPhysicalDevice physicalDevice, VkDevice device)
|
||||||
{
|
{
|
||||||
this->instance = instance;
|
this->instance = instance;
|
||||||
this->physicalDevice = physicalDevice;
|
this->physicalDevice = physicalDevice;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue