GithubHelp home page GithubHelp logo

Comments (7)

mklefrancois avatar mklefrancois commented on August 25, 2024

This can actually be an error. A temporary can not bind to a non-const reference, therefore the signature of Offscreen.draw should be: void draw(VkCommandBuffer cmdBuf, const VkExtent2D& size);

Can you please verify that this change fixes it?

from vk_raytracing_tutorial_khr.

jruebsam avatar jruebsam commented on August 25, 2024

This indeed fixes it... there are a couple of more errors related to this.
I would not mind to create a pull request which fixes this, just tell me what you would prefer.

Just keep in mind this also affects the nvpro-core/nvvk library in particular sbtwrapper_vk.hpp/cpp also need to be changed (since this is a different repository im not sure if this could break something anywhere else)

The function defintion in the header/src has to be changed from

std::array<VkStridedDeviceAddressRegionKHR, 4> getRegions();
to
const std::array<VkStridedDeviceAddressRegionKHR, 4> getRegions();

Cheers

from vk_raytracing_tutorial_khr.

mklefrancois avatar mklefrancois commented on August 25, 2024

Thanks @jruebsam for reporting this. I will also apply the fix for getRegion() in sbtWrapper.
We do not develop in Github, therefore it would still be preferable if you list the errors here.

Could you please tell me which compiler you are using?

from vk_raytracing_tutorial_khr.

jruebsam avatar jruebsam commented on August 25, 2024

Sure no problem, this is g++ (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0

I also attached some of the linking options maybe it helps

cd /home/jonas/code/nvpro/vk_raytracing_tutorial_KHR/build/ray_tracing_gltf && /usr/bin/c++ -DLINUX -DNVP_SUPPORTS_VULKANSDK -DPROJECT_DOWNLOAD_RELDIRECTORY="../../downloaded_resources/" -DPROJECT_NAME="vk_ray_tracing_gltf_KHR" -DPROJECT_RELDIRECTORY="../../vk_raytracing_tutorial_KHR/ray_tracing_gltf/" -DRESOURCE_DIRECTORY="/home/jonas/code/nvpro/nvpro_core/resources/" -DVK_ENABLE_BETA_EXTENSIONS -DVK_USE_PLATFORM_XCB_KHR -DVK_USE_PLATFORM_XLIB_KHR -DVULKAN_HPP_DISPATCH_LOADER_DYNAMIC=1 -I/home/jonas/code/nvpro/vk_raytracing_tutorial_KHR/build/ray_tracing_gltf -I/home/jonas/code/nvpro/vk_raytracing_tutorial_KHR/ray_tracing_gltf -I/home/jonas/code/nvpro/nvpro_core -I/home/jonas/code/nvpro/nvpro_core/imgui -I/home/jonas/code/nvpro/vk_raytracing_tutorial_KHR/common -I/home/jonas/code/nvpro/nvpro_core/third_party/cgltf -I/home/jonas/code/nvpro/nvpro_core/third_party/glfw/include -I/home/jonas/code/nvpro/nvpro_core/third_party/imgui -I/home/jonas/code/nvpro/nvpro_core/third_party/stb -I/home/jonas/code/nvpro/nvpro_core/third_party/tinygltf -I/home/jonas/code/nvpro/nvpro_core/third_party/tinyobjloader -I/home/jonas/code/nvpro/nvpro_core/third_party/vma/include -I/home/jonas/code/nvpro/nvpro_core/third_party/NVTX/c/include -O3 -DNDEBUG -fpermissive -std=gnu++17 -o CMakeFiles/vk_ray_tracing_gltf_KHR.dir/hello_vulkan.cpp.o -c /home/jonas/code/nvpro/vk_raytracing_tutorial_KHR/ray_tracing_gltf/hello_vulkan.cpp

from vk_raytracing_tutorial_khr.

jruebsam avatar jruebsam commented on August 25, 2024

Also this is the last error I get which is a little bit different:

vk_raytracing_tutorial_KHR/ray_tracing_advanced_compilation/hello_vulkan.cpp:1013:75: error: no matching function for call to ‘nvvk::SBTWrapper::create(VkPipeline_T*&, VkRayTracingPipelineCreateInfoKHR&, )’
1013 | m_sbtWrapper.create(m_rtPipeline, rayPipelineInfo, {pipelineLibraryInfo});

from vk_raytracing_tutorial_khr.

mklefrancois avatar mklefrancois commented on August 25, 2024

Hi @jruebsam, we have updated this repository as well as nvpro_core. Can you please confirm that the issues are gone?

Thanks

from vk_raytracing_tutorial_khr.

mklefrancois avatar mklefrancois commented on August 25, 2024

We have tested on Ubuntu and it compiles. Closing.

from vk_raytracing_tutorial_khr.

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.