gametechdev / asteroids_d3d12 Goto Github PK
View Code? Open in Web Editor NEWIntel Asteroids DirectX 12 Sample
License: Apache License 2.0
Intel Asteroids DirectX 12 Sample
License: Apache License 2.0
These files appear to be missing from the repo
Could you please share how to query the power draw to presenet the power graph similar to the one that can be found in the demo screen?
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)
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.