DethRaid / AndroidRenderer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Render thing

Build Prerequisites

  • Install libKTX. Find the latest release in the Releases tab and install it to D:/Program Files/KTX-Software. If your system does not have a D drive, you'll have to modify RenderCore/extern/extern.cmake to set KTX_DIR to the directory you installed libKTX to
  • You'll also need to install the Vulkan SDK and add it's bin directory to your PATH
  • Download "the glTF Sponza" from https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0/Sponza. You'll need to manually copy it to your working directory before running

Android build

  • Symlink or copy the folder RenderCore/Shaders/ to app/src/main/shaders/
  • Copy the glTF Sponza to app/src/main/assets/Sponza/
  • Build the Gradle project in app/
  • Run the APK

Windows build

  • Download gltfpack from https://github.com/zeux/meshoptimizer and place it in your PATH
  • Copy the glTF Sponza to Windows/build/Sponza/
  • Symlink (or copy) the folder RenderCore/shaders/ to Windows/build/shaders/
  • Build the cmake project in Windows
  • Run the SahWindows Visual Studio project
  • If you want to run from outside Visual Studio, either copy Sponza and the shaders to Windows/build/Debug or copy the SahWindows executable to Windows/build

Other OSs

Unsupported. You could probably modify the Windows build to also run on Linux, but I've had no reason to

Known-good configurations

  • This program definitely works on a Nvidia RTX 2080 Super GPU, and a Mali G710 GPU. Other Vulkan implementations may or may not support all the required features

About


Languages

Language:C++ 79.0%Language:CMake 13.6%Language:GLSL 6.7%Language:Python 0.3%Language:PowerShell 0.2%Language:Java 0.1%Language:C 0.1%