Coder Social home page Coder Social logo

williamlewww / vulkan_ray_tracing_minimal_abstraction Goto Github PK

View Code? Open in Web Editor NEW
74.0 5.0 7.0 3.34 MB

A minimal implementation of Vulkan ray tracing.

Home Page: http://williamlewww.com/showcase_website/vk_khr_ray_tracing_tutorial/index.html

License: GNU General Public License v3.0

GLSL 3.61% C++ 86.30% CMake 0.46% C 9.64%
raytracing vulkan rtx ray-pipeline ray-query example tutorial gpu graphics

vulkan_ray_tracing_minimal_abstraction's Introduction

Vulkan Ray Tracing Minimal Abstraction

ray_pipeline uses the ray tracing pipeline to generate the final image.

ray_query uses the graphics pipeline along with ray querying to generate the final image.

headless generates a ray traced image without creating a window or needing a surface.

Important Note

Make sure the VK_KHR_ray_query and VK_KHR_ray_tracing_pipeline extensions are available on your device!

Even if you have a compatible RTX / RX graphics card, your drivers may not have the extension available.

To see if the extension is available, you can use the vulkaninfo binary.

vulkaninfo

Build Steps

Navigate to a subproject:

cd vulkan_ray_tracing_minimal_abstraction/ray_pipeline
# or cd vulkan_ray_tracing_minimal_abstraction/ray_query
# or cd vulkan_ray_tracing_minimal_abstraction/headless

Create a build directory and navigate to the new directory.

mkdir build
cd build

Run cmake with the root of the repository as the argument. You can now use the make file generated by CMake.

cmake ..
make

Image generated from headless example:

headless

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.