Code Monkey home page Code Monkey logo

Comments (9)

simondeschenes avatar simondeschenes commented on June 30, 2024

Effectively, if we re-enable that code by initializing i to 0, then we get another problem because this line is commented :

//gVkWantedInstanceExtensions[k] = "";

Which means that VK_EXT_debug_report is both in the VK_LAYER_LUNARG_standard_validation and the "nullptr" layer (second loop) as the standard validation layer is implicitly enabled.

The only way to fix when we require VK_EXT_debug_report is to uncomment that line again.
However, it causes a new issue as we can't call CreateInstance again as we broke the initial array.

So, the real correct solution after we fix the loop with uint i = 0; is to empty the local array of string instead :
wantedInstanceExtensions[k] = "";

from the-forge.

AntoineConffx avatar AntoineConffx commented on June 30, 2024

@simondeschenes
We just merged a fix for the loop index but we weren't able to reproduce the second part of this issue.
Could you give us repro steps?
Also, could you try it out after the latest merge?
Thanks

from the-forge.

simondeschenes avatar simondeschenes commented on June 30, 2024

You need to comment #define USE_DEBUG_UTILS_EXTENSION inside of Vulkan.cpp.
That way, it will want to use VK_EXT_DEBUG_REPORT_EXTENSION_NAME instead of VK_EXT_DEBUG_UTILS_EXTENSION_NAME .

If you do, and have the first loop fixed, you will get VK_EXT_debug_utils 2 times in the gVkInstanceExtensions array (member of pRenderer).

I believe this commented code (because of the comment) was supposed to address this issue :

//gVkWantedInstanceExtensions[k] = "";

However, it is not right because it modifies gVkWantedInstanceExtensions instead of the local wantedInstanceExtensions array.

This is why the code should now read :

wantedInstanceExtensions[k] = "";

in both loops.

from the-forge.

simondeschenes avatar simondeschenes commented on June 30, 2024

I looked at the latest merge and it is effectively partially fixed. See previous post.

from the-forge.

boberfly avatar boberfly commented on June 30, 2024

Just to add to this, this is crashing on Linux on this line:
https://github.com/ConfettiFX/The-Forge/blob/master/Common_3/Renderer/Vulkan/Vulkan.cpp#L2533
I tried the things @simondeschenes suggests but it still crashes. I haven't spent much time on this to investigate.

Cheers!

from the-forge.

boberfly avatar boberfly commented on June 30, 2024

Disregard this, it was just an issue on my side not passing #define VULKAN, it works with/without the tweak from @simondeschenes

from the-forge.

wolfgangfengel avatar wolfgangfengel commented on June 30, 2024

@simondeschenes this should be resolved with the next release, probably next week ... if you have a chance check it out and then we can close this.

from the-forge.

simondeschenes avatar simondeschenes commented on June 30, 2024

As soon as I see the code online I'll check it out.

from the-forge.

wolfgangfengel avatar wolfgangfengel commented on June 30, 2024

It is up now ... let us know ....

from the-forge.

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.