Skip to content

Code left over from saving result in 03/00/01 (creating two instances) #54

@vikhik

Description

@vikhik

In the tutorial noted, we create the instance and store the result in one line of code:

VkResult result = vkCreateInstance(&createInfo, nullptr, &instance);

And then immediately ignore the result (apparently this is the new preferred method?) and create the instance again:

if (vkCreateInstance(&createInfo, nullptr, &instance) != VK_SUCCESS) {

I assume that either the first part should no longer exist, or the second part should revert to if (result != VK_SUCCESS) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions