Giter Club home page Giter Club logo

Comments (8)

niansa avatar niansa commented on July 16, 2024

Unit tests fail too:

[==========] Running 2 tests from 2 test suites.
[----------] Global test environment set-up.
[----------] 1 test from RingBuffer
[ RUN      ] RingBuffer.pushPopResize
[       OK ] RingBuffer.pushPopResize (0 ms)
[----------] 1 test from RingBuffer (0 ms total)

[----------] 1 test from Vector2
[ RUN      ] Vector2.operators
/build/Acid/Tests/Units/Test_Vector2.cpp:13: Failure
Expected equality of these values:
  a - b
    Which is: 4.74, -22.6
  acid::Vector2f(4.74, -22.6)
    Which is: 4.74, -22.6
[  FAILED  ] Vector2.operators (0 ms)
[----------] 1 test from Vector2 (0 ms total)

[----------] Global test environment tear-down
[==========] 2 tests from 2 test suites ran. (0 ms total)
[  PASSED  ] 1 test.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] Vector2.operators

 1 FAILED TEST

from acid.

alundb avatar alundb commented on July 16, 2024

You could try replacing "VK_LAYER_KHRONOS_validation" with "VK_LAYER_LUNARG_standard_validation" and see if that validation layer is found. What version of the vulkan sdk are you running?

from acid.

niansa avatar niansa commented on July 16, 2024

Where/how do I figure that out and how do I change the validation layer?
Do I need to modify the example executables or engines code?

from acid.

mattparks avatar mattparks commented on July 16, 2024

You will need to modify the engine code.
Validation layers are defined here: https://github.com/EQMG/Acid/blob/master/Sources/Devices/Instance.cpp#L14
Device extensions are defined here: https://github.com/EQMG/Acid/blob/master/Sources/Devices/LogicalDevice.cpp#L9

from acid.

niansa avatar niansa commented on July 16, 2024

Nope. That changed absolutely nothing. :-(

from acid.

npfitzenmaier avatar npfitzenmaier commented on July 16, 2024

Unit tests fail too:

[==========] Running 2 tests from 2 test suites.
[----------] Global test environment set-up.
[----------] 1 test from RingBuffer
[ RUN      ] RingBuffer.pushPopResize
[       OK ] RingBuffer.pushPopResize (0 ms)
[----------] 1 test from RingBuffer (0 ms total)

[----------] 1 test from Vector2
[ RUN      ] Vector2.operators
/build/Acid/Tests/Units/Test_Vector2.cpp:13: Failure
Expected equality of these values:
  a - b
    Which is: 4.74, -22.6
  acid::Vector2f(4.74, -22.6)
    Which is: 4.74, -22.6
[  FAILED  ] Vector2.operators (0 ms)
[----------] 1 test from Vector2 (0 ms total)

[----------] Global test environment tear-down
[==========] 2 tests from 2 test suites ran. (0 ms total)
[  PASSED  ] 1 test.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] Vector2.operators

 1 FAILED TEST

I get the same output. The TestPhysics example is working, but no Font, no overlayDebug and no particles are displayed.
The TestGUI only shows the logo for example and I think it should also show the overlayDebug and some Text.
I'll try to modify the engine code as mattparks mentioned but I don't think I have a validation layer problem.

System:
AMD Ryzen 9 3900X
GeForce RTX 2070
Windows 11 Pro
Microsoft Visual Studio Community 2022
VulkanSDK 1.2.198.1

from acid.

alundb avatar alundb commented on July 16, 2024

Similar results as above. TestPhysics seems to work great. Tutorial 1 through 6 returns segmentation fault, but Tutorial 7 runs and displays the house model.

Regarding the failing unit tests, it's an expected behavior when working with equality comparison involving floats. Replacing ASSERT_EQ with ASSERT_FLOAT_EQ and performing the comparison component wise is a simple solution to at least make it pass.

ASSERT_FLOAT_EQ((a - b).x, acid::Vector2f(4.74, -22.6).x);
ASSERT_FLOAT_EQ((a - b).y, acid::Vector2f(4.74, -22.6).y);

Would gladly help to investigate some of the issues mentioned here, but not entirely sure where to start. (I hoped the validation layers would point to some issues, but they seem to be happy(?))

from acid.

niansa avatar niansa commented on July 16, 2024

Moved on to OpenMandriva, but thanks for your help. It seems to work here now.

from acid.

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.