Code Monkey home page Code Monkey logo

rdctovkcpp's Introduction

Build Status

Converts RenderDoc Vulkan capture to compilable and executable C++ code.
Work in progress.

How to use

  1. Export RenderDoc capture to XML + ZIP.
  2. Build RDCtoVkCpp or use prebuild binaries.
  3. Run console application RdConverter.exe with -i path/to/exported/rdc.zip -o folder/name/for/cpp/code

Other command line arguments:

-h, --help              - show help
--build                 - build project
--configure             - generate project
--clean                 - clean output folder before converting
--div-by-cmdbuf [bool]  - group api calls by command buffers, default = true
-i, --input [filename]  - open RenderDoc capture, must be *.zip or *.zip.xml file
-o, --output [folder]   - save c++ code into output directory

Warning: console application and converted sources from capture is not portable! You should rebuild and run converter again on new environment or fix pathes to files.

Features

  • Produces readable C++ code.
  • Code validation to fix unsignaled fences/semaphores/events and reset they before next frame.
  • Frame played in infinite loop.
  • Used resource debug name if possible.
  • SPIR-V decompiled to GLSL.
  • Resizable window.

Tested on

  • Doom (2016)
  • Wolfenstein 2 - incorrect rendering
  • X4 - incorrect rendering
  • Dota 2
  • Rage 2 - incorrect rendering
  • RDR 2 - incorrect rendering
  • 3DMark api overhead test
  • No Man's Sky

TODO

  • Immutable samplers
  • Measure frame time
  • Portability (remap queue family and memory types)
  • Upload multisampled image
  • Sparse memory
  • 2nd plane formats
  • Fix validation errors.

Building

Requires C++17 and CMake 3.10+

Dependencies:
FrameGraph - only stl and vulkan helpers.
VulkanMemoryAllocator - required.
glfw or SDL2 - required.
glslang - compile glsl to spirv.
SPIRV-Cross - converts spirv to glsl.
rapidxml - for RDC parsing.
miniz - for RDC content loading.
RenderDoc - some code to generate parser.

rdctovkcpp's People

Contributors

azhirnov avatar

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.