• Advertisement
Sign in to follow this  

Where is my triangle? Issue moving to Directx 11 and Metro

This topic is 1910 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
Hi, some links to the visual studio solutions.

The Metro Version that doesn't work..(shader code is compiled by VS2012's nice new abilitie, you need Win8 and VS2012)
http://www.filedropper.com/metrodx11trianglenotviewable

The Win32 Version that does work... (same shader code. uses shader compilation at run time)
http://www.filedropper.com/win32dx11triangleisviewable

As you can see, win 32..easy! Metro...no triangles :(

Share this post


Link to post
Share on other sites
I'm sorry that I keep bumping this thread. Is there anyone with a Windows 8 Development Environment and Visual Studio 2012 Professional that can run this through the graphics debugger to find out what is going wrong? I've rewritten this a million times now. Going stir crazy as not sure where the problem lies..think must be shader, but are so simple. THANKS

Share this post


Link to post
Share on other sites
SOLVED...After so much time it was such a silly mistake (as always). I messed up the vertex buffer setting. d3dContext->IASetVertexBuffers(0, 1, &vertexBuffer, &str, &oset); had to be : d3dContext->IASetVertexBuffers(0, 1, vertexBuffer.GetAddressOf(), &str, &oset);

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement