Code Monkey home page Code Monkey logo

vulkanstarter's Introduction

GitHub Workflow Status (branch)

VulkanStarter

This is a template to setting up a new Vulkan C++ project.

Features

  • Sources, headers and mains separated in distinct folders
  • Use of modern CMake for much easier compiling
  • Automatically compile shaders with glslValidator
  • Integrated test suite using Doctest
  • Continuous integration via GitHub Actions
  • Support Conan package manager to quick install your package

Building

Build and run the standalone target

Use the following command to build and run the executable target.

cmake -Bbuild
cmake --build build
./build/bin/VulkanStarterStandalone

Build and run test suite

Use the following commands from the project's root directory to run the test suite.

cmake -Bbuild
cmake --build build
./build/bin/VulkanStarterTests

Dependencies

  • C++17 compiler :
    • Visual Studio 2016
    • GCC 7+ or Clang 8+
  • Conan for install packages
  • Git for cmake automatic dependencies
  • CMake for build system creation (>= 3.12)
  • Doxygen for generate documentation (>= 1.8, optional)

References

vulkanstarter's People

Contributors

dependabot[bot] avatar florianvazelle avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

vulkanstarter's Issues

Application always recreates swap chain.

In Application::DrawFrame() when checking the present result, successfully creating the swap chain doesn't clear the frameBufferResized flag. The clear needs to be moved after recreateSwapChain().

Spams errors in console and black screen with imgui

I just downloaded this template and got a window that has a black screen (imgui does work though).
I'm on arch linux with clang 12 and I have a GTX 1050 Ti.
My vscode console spams the following errors each frame.

validation layer: Validation Error: [ VUID-VkMappedMemoryRange-size-01389 ] Object 0: handle = 0x69eeaa0000000047, type = VK_OBJECT_TYPE_DEVICE_MEMORY;
| MessageID = 0xee4872d | vkFlushMappedMemoryRanges: Size in pMemRanges[0] is VK_WHOLE_SIZE and the mapping end (0x28c8 = 0x0 + 0x28c8)
not a multiple of VkPhysicalDeviceLimits::nonCoherentAtomSize (0x40) 
and not equal to the end of the memory object (0x2a00). 
The Vulkan spec states: If size is equal to VK_WHOLE_SIZE, 
the end of the current mapping of memory must either be a multiple of 
VkPhysicalDeviceLimits::nonCoherentAtomSize bytes from the beginning of the memory object, or be equal to the end of the memory object (https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#VUID-VkMappedMemoryRange-size-01389)

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.