Giter VIP home page Giter VIP logo

big2-stack's People

Contributors

object71 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

Watchers

 avatar

big2-stack's Issues

Linux Ubuntu 22.04 build failure at 93%

error: no match for call to ‘(big2::GlfwEventQueue::SortEventsByWindow()::<lambda(TRef, TRef)>) (const big2::GlfwEvent&, big2::GlfwEvent&)’

Ubuntu22.04
gcc 11.4.0

Build failure against main, v0.0.9, v0.0.8

[ 93%] Building CXX object big2/CMakeFiles/BIG2.dir/src/event_queue.cpp.o
In file included from /usr/include/c++/11/bits/stl_algobase.h:71,
                 from /usr/include/c++/11/array:40,
                 from /home/dkords/dev/repos/big2-stack/build/_deps/microsoft-gsl-src/include/gsl/util:22,
                 from /home/dkords/dev/repos/big2-stack/build/_deps/microsoft-gsl-src/include/gsl/span:22,
                 from /home/dkords/dev/repos/big2-stack/build/_deps/microsoft-gsl-src/include/gsl/algorithm:21,
                 from /home/dkords/dev/repos/big2-stack/build/_deps/microsoft-gsl-src/include/gsl/gsl:20,
                 from /home/dkords/dev/repos/big2-stack/big2/include/big2/event_queue.h:9,
                 from /home/dkords/dev/repos/big2-stack/big2/src/event_queue.cpp:5:
/usr/include/c++/11/bits/predefined_ops.h: In instantiation of ‘constexpr bool __gnu_cxx::__ops::_Val_comp_iter<_Compare>::operator()(_Value&, _Iterator) [with _Value = const big2::GlfwEvent; _Iterator = __gnu_cxx::__normal_iterator<big2::GlfwEvent*, std::vector<big2::GlfwEvent> >; _Compare = big2::GlfwEventQueue::SortEventsByWindow()::<lambda(TRef, TRef)>]’:
/usr/include/c++/11/bits/stl_algo.h:2041:14:   required from ‘constexpr _ForwardIterator std::__upper_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = __gnu_cxx::__normal_iterator<big2::GlfwEvent*, std::vector<big2::GlfwEvent> >; _Tp = big2::GlfwEvent; _Compare = __gnu_cxx::__ops::_Val_comp_iter<big2::GlfwEventQueue::SortEventsByWindow()::<lambda(TRef, TRef)> >]’
/usr/include/c++/11/bits/stl_algo.h:2108:32:   required from ‘constexpr _FIter std::upper_bound(_FIter, _FIter, const _Tp&, _Compare) [with _FIter = __gnu_cxx::__normal_iterator<big2::GlfwEvent*, std::vector<big2::GlfwEvent> >; _Tp = big2::GlfwEvent; _Compare = big2::GlfwEventQueue::SortEventsByWindow()::<lambda(TRef, TRef)>]’
/usr/include/c++/11/pstl/parallel_backend_tbb.h:1014:40:   required from ‘__pstl::__tbb_backend::__task* __pstl::__tbb_backend::__merge_func<_RandomAccessIterator1, _RandomAccessIterator2, _Compare, _Cleanup, _LeafMerge>::split_merging(__pstl::__tbb_backend::__task*) [with _RandomAccessIterator1 = __gnu_cxx::__normal_iterator<big2::GlfwEvent*, std::vector<big2::GlfwEvent> >; _RandomAccessIterator2 = big2::GlfwEvent*; _Compare = big2::GlfwEventQueue::SortEventsByWindow()::<lambda(TRef, TRef)>; _Cleanup = __pstl::__utils::__serial_destroy; _LeafMerge = __pstl::__utils::__serial_move_merge]’
/usr/include/c++/11/pstl/parallel_backend_tbb.h:923:20:   required from ‘__pstl::__tbb_backend::__task* __pstl::__tbb_backend::__merge_func<_RandomAccessIterator1, _RandomAccessIterator2, _Compare, _Cleanup, _LeafMerge>::merge_ranges(__pstl::__tbb_backend::__task*) [with _RandomAccessIterator1 = __gnu_cxx::__normal_iterator<big2::GlfwEvent*, std::vector<big2::GlfwEvent> >; _RandomAccessIterator2 = big2::GlfwEvent*; _Compare = big2::GlfwEventQueue::SortEventsByWindow()::<lambda(TRef, TRef)>; _Cleanup = __pstl::__utils::__serial_destroy; _LeafMerge = __pstl::__utils::__serial_move_merge]’
/usr/include/c++/11/pstl/parallel_backend_tbb.h:1053:16:   required from ‘__pstl::__tbb_backend::__task* __pstl::__tbb_backend::__merge_func<_RandomAccessIterator1, _RandomAccessIterator2, _Compare, _Cleanup, _LeafMerge>::operator()(__pstl::__tbb_backend::__task*) [with _RandomAccessIterator1 = __gnu_cxx::__normal_iterator<big2::GlfwEvent*, std::vector<big2::GlfwEvent> >; _RandomAccessIterator2 = big2::GlfwEvent*; _Compare = big2::GlfwEventQueue::SortEventsByWindow()::<lambda(TRef, TRef)>; _Cleanup = __pstl::__utils::__serial_destroy; _LeafMerge = __pstl::__utils::__serial_move_merge]’
/usr/include/c++/11/pstl/parallel_backend_tbb.h:620:33:   required from ‘__pstl::__tbb_backend::__task* __pstl::__tbb_backend::__func_task<_Func>::execute(tbb::detail::d1::execution_data&) [with _Func = __pstl::__tbb_backend::__merge_func<__gnu_cxx::__normal_iterator<big2::GlfwEvent*, std::vector<big2::GlfwEvent> >, big2::GlfwEvent*, big2::GlfwEventQueue::SortEventsByWindow()::<lambda(TRef, TRef)>, __pstl::__utils::__serial_destroy, __pstl::__utils::__serial_move_merge>]’
/usr/include/c++/11/pstl/parallel_backend_tbb.h:616:5:   required from here
/usr/include/c++/11/bits/predefined_ops.h:240:30: error: no match for call to ‘(big2::GlfwEventQueue::SortEventsByWindow()::<lambda(TRef, TRef)>) (const big2::GlfwEvent&, big2::GlfwEvent&)’
  240 |         { return bool(_M_comp(__val, *__it)); }
      |                       ~~~~~~~^~~~~~~~~~~~~~

getting-started needs some details

https://github.com/Paper-Cranes-Ltd/big2-stack/blob/main/docs/getting-started.md

BGFX is arguably one of the more complex to configure if you don't take defaults. And bgfx is like serving coffee or tea. Many things may need to be customized depending on the situation. I like the idea of something like big2 or bigg that provides more batteries and decisions for things to help getting started.

I am expecting to find:

  • default build instructions for win / mac / linux (I can help on linux and mac)
  • considerations for customizing (different backends for example, bgfx flags etc..)
  • known issues

example 03 & 04 not work in windows 11( bgfx init failed )

in 03_multiple_windows.cpp, the following code blocks cause bgfx error as "BX_TRACE("Initializing headless mode, resolution of non-existing backbuffer can't be larger than 0x0!");"

  bgfx::Init init_object;
  big2::Validate(bgfx::init(init_object), "BGFX couldn't be initialized");

Patched bgfx_compile_shader_to_header tramples output files with multiple fragment/vertex shaders.

The patched version of bgfx_compile_shader_to_header does not work properly when there are multiple shaders of the same type (e.g. fs_pass1.sc, fs_pass2.sc, etc). The resulting contents of ARGS_OUT_FILES_VAR will only contain paths for one input shader, rather than all of them.

This is due to the following trampling the previous contents of ARGS_OUT_FILES_VAR here:

+ if(DEFINED ARGS_OUT_FILES_VAR)
+ set(${ARGS_OUT_FILES_VAR} ${OUTPUTS} PARENT_SCOPE)
+ endif()

To fix this, I changed this in my version of this patch to the following:

+		if(DEFINED ARGS_OUT_FILES_VAR)
+			list(APPEND ${ARGS_OUT_FILES_VAR} ${OUTPUTS})
+			set(${ARGS_OUT_FILES_VAR} ${${ARGS_OUT_FILES_VAR}} PARENT_SCOPE)
+		endif()

– Dylan

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.