Git Product home page Git Product logo

Comments (14)

Joaopmoliveira avatar Joaopmoliveira commented on May 24, 2024 1

If I can finish these I might understand the code well enough to contribute to source!

from vkvg.

jpbruyere avatar jpbruyere commented on May 24, 2024 1

after a quick run, validation report pNext invalid value in Create structs. This means that your structures are not well initialized, and content of fields you don't use, are not zeroed.

from vkvg.

Joaopmoliveira avatar Joaopmoliveira commented on May 24, 2024 1

Got it!

from vkvg.

Joaopmoliveira avatar Joaopmoliveira commented on May 24, 2024

And you use the following command to synchronize the application with the GPU:

vkDeviceWaitIdle()

Is there a reason for not using fences?

from vkvg.

jpbruyere avatar jpbruyere commented on May 24, 2024

You are right, waiting on device idle is overkill, I can use a draw fence. for the queues, I'll update the rendering loop in the next push on master.
I think lots of middle-market cards has only one graphic queue that support presentation. Also presentation should be transfer operations in the hardware, it should be ok for processing cycles.
We have to sync with final image from surface, it's availability is guaranteed on context destruction. We may test a triple buffering (vkvg_surface_image->image->presentation_image.) now it's (vkvg_surf_image->presentation_image). We may optimize the queue selection to fit to all hardware configurations.
I'm also thinking of a surface fence.

from vkvg.

Joaopmoliveira avatar Joaopmoliveira commented on May 24, 2024

I have a sample tutorial where I can test things but the memory barrier to copy the drawing surface is crashing the application... I will send you the sample afterwards.

from vkvg.

Joaopmoliveira avatar Joaopmoliveira commented on May 24, 2024

This file contains the example I built which tries to remove the need for vkh. The function linkVulkanWithDrawingSurface is throwing an error at runtime at the moment. To compile the code we need a C++ 17 compatible compiler. If you don't like the fact that it uses C++ I can try to translate it into C but the simplicity goes a bit out the window.
testing.txt

from vkvg.

Joaopmoliveira avatar Joaopmoliveira commented on May 24, 2024

The code does not have any comments at the moment because it still does not work!

from vkvg.

jpbruyere avatar jpbruyere commented on May 24, 2024

yes, if you use blitting for copying vkvg image to swapchain image, but you may render with a full screen texture pipeline and the vkvg image as attachment if you don't have blit source/dest. Also you have to say when you create your swapchain, which usage you plan for its images, if you don't have blit_dst in the swapchain create info fields, it will fail even if that format support blitting.

from vkvg.

Joaopmoliveira avatar Joaopmoliveira commented on May 24, 2024

I have it working... I forgot to add the context creation function... But I have the file now working. How detailed do you want my description to be? Something like this?
LunarSamples
The code which I will try to explain is here:
vkvg_code.txt

from vkvg.

jpbruyere avatar jpbruyere commented on May 24, 2024

Try maybe to avoid too deep explanation on vulkan details, and redirect to other dedicated tutorials. For vkvg, explain from you point of view, trying to point what you needed to understand to complete this sample, be creative and do what you think is best.

from vkvg.

Joaopmoliveira avatar Joaopmoliveira commented on May 24, 2024

Ok, working on it today. Can you give me permission to submit files to the repository?

from vkvg.

jpbruyere avatar jpbruyere commented on May 24, 2024

No, you have your fork and you propose pull request. That's the normal procedure. If this account was a company, it would be ok to share permissions, but on my personal account, there's no way to have me give write permissions to it, even to close collaborators or friends.

from vkvg.

jpbruyere avatar jpbruyere commented on May 24, 2024

Also note that vkvg is the result of about 10-15 years of work and learning.

from vkvg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.