GithubHelp home page GithubHelp logo

yuki-koyama / bigger Goto Github PK

View Code? Open in Web Editor NEW
226.0 5.0 22.0 3.18 MB

bigg (bgfx + imgui + glfw + glm) + utils

License: MIT License

CMake 11.04% C++ 80.12% SuperCollider 8.34% Scala 0.50%
bgfx imgui glfw glm utils

bigger's People

Contributors

alxbilger avatar dejaime avatar yuki-koyama avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

bigger's Issues

bgfx's multi-threading crushes with macOS's OpenGL and Metal

Currently bigger avoids this issue by an ad hoc hot-fix:

bigger/CMakeLists.txt

Lines 27 to 31 in 07687b0

# Note: This was necessary to avoid a run-time error on macOS/OpenGL. Without
# this option, the NSOpenGLViewContext's setView method was called from a
# wrong (?) thread during bgfx::init and then the app crashes. This needs to be
# investigated further.
target_compile_definitions(bgfx PUBLIC BGFX_CONFIG_MULTITHREADED=0)

I'm getting an error

when i try to run i get two shader errors;

Error D3DCompile failed 0x80004005 (100,26-67): error X3020: type mismatch

Error D3DCompile failed 0x80004005 (130.21): error X3037: constructors only defined for numeric base types

Build fails in screen-shot-callback.hpp:64:28 with `runtime_error` is not a member of `std`

File bigger/include/screen-shot-callback.hpp is missing an inclusion to <stdexcept>.

I'm building it with:

  1. mkdir build && cd build
  2. cmake ..
  3. make

Build fails with:

In file included from <HOME DIR>/GameDev/bigger/bigger/src/app.cpp:4:
<HOME DIR>/GameDev/bigger/bigger/include/bigger/screen-shot-callback.hpp: In member function ‘virtual void bigger::ScreenShotCallback::screenShot(const char*, uint32_t, uint32_t, uint32_t, const void*, uint32_t, bool)’:
<HOME DIR>/GameDev/bigger/bigger/include/bigger/screen-shot-callback.hpp:65:28: error: ‘runtime_error’ is not a member of ‘std’
   65 |                 throw std::runtime_error("");
      |                            ^~~~~~~~~~~~~
make[2]: *** [CMakeFiles/bigger.dir/build.make:162: CMakeFiles/bigger.dir/src/app.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:361: CMakeFiles/bigger.dir/all] Error 2
make: *** [Makefile:149: all] Error 2

Adding an #include <stdexcept> fixes the issue.

Thank you very much!

Xcode aborts programs with Metal API Validation

When using Metal and running built programs through Xcode, the current shaders do not pass the Metal API Validation (which is on by default) and the programs stop with the following assertion:

validateFunctionArguments:3577: failed assertion `Fragment Function(xlatMtlMain): missing sampler binding at index 0 for _mtlsmp_s_texColor[0].'

A hot-fix would be to disable Metal API Validation: https://stackoverflow.com/questions/60645401/xcode-logging-metal-api-validation-enabled

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.