Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an example implementation of vkGetValue #10

Closed
JoseEmilio-ARM opened this issue Nov 12, 2019 · 1 comment · Fixed by #12
Closed

Add an example implementation of vkGetValue #10

JoseEmilio-ARM opened this issue Nov 12, 2019 · 1 comment · Fixed by #12
Assignees

Comments

@JoseEmilio-ARM
Copy link
Contributor

In the "pNext and sType" chapter, so that it is clear how it uses pNext and sType to set the value for b as well as for a.

For example (not sure if this is correct):

{
    a.value = 0;
    if (a.pNext != nullptr) {
        auto b = reinterpret_cast<VkB *>(a.pNext);
        if (b->sType == VK_STRUCTURE_TYPE_B) {
              b->value = 0;
        }
    }
}
@sfricke-samsung
Copy link
Contributor

I thought about this recently too, it would be nice to add a second part explaining that/giving example. I'm happy to write up something first for a review or you can

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants