SwapChain function naming

This commit is contained in:
saschawillems 2016-02-23 22:00:09 +01:00
parent 0c5705f2e9
commit bf37fa2d17
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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;