Code Monkey home page Code Monkey logo

asteroids_d3d12's Issues

Missing Shader Header files.

These files appear to be missing from the repo

include "asteroid_vs.h"

include "asteroid_ps.h"

include "skybox_vs.h"

include "skybox_ps.h"

include "sprite_vs.h"

include "sprite_ps.h"

include "font_ps.h"

Stack overflow in debug mode in Asteroids::Asteroids

When I build and run the program in debug mode, it crashes at the start of Asteroids::Asteroids() due to a stack overflow.

I looked around and couldn't find the culprit (this usually happens due to large stack allocated arrays). I did notice that commenting out the for (int j = 0; j < NUM_ASTEROIDS; ++j) loop in the constructor makes the stack overflow go away, but that code doesn't contain any large stack allocations. Compiler bug?

Works fine in release mode.

Using VS 2017 community edition, version 15.3.1. Windows Build 15063.
(Update: Still happens in version 15.3.2)

missing <cmath> in camera.cpp

I'm on Windows 10. I imported the .sln to Visual Studio 2019. It did some automatic project conversions and let me use the most current SDK. When building the solution I get the following errors:

1>C:\devel\asteroids_d3d12\src\camera.cpp(91,24): error C2039: 'sin': is not a member of 'std'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\vector(24): message : see declaration of 'std'
1>C:\devel\asteroids_d3d12\src\camera.cpp(91,46): error C2039: 'cos': is not a member of 'std'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\vector(24): message : see declaration of 'std'
1>C:\devel\asteroids_d3d12\src\camera.cpp(92,24): error C2039: 'cos': is not a member of 'std'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\vector(24): message : see declaration of 'std'
1>C:\devel\asteroids_d3d12\src\camera.cpp(93,24): error C2039: 'sin': is not a member of 'std'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\vector(24): message : see declaration of 'std'
1>C:\devel\asteroids_d3d12\src\camera.cpp(93,46): error C2039: 'sin': is not a member of 'std'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\vector(24): message : see declaration of 'std'

Adding
#include <cmath>
as the last header file, makes the problem go away. Build succeeds and the demo runs.

On a completely different Windows 10 machine, using Visual Studio 2017, I didn't need this. I don't know how clean that build environment is, or how many additional developer tools I've installed.

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.