Sign in to follow this  

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

This topic is 1905 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

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)
[url="http://www.filedropper.com/metrodx11trianglenotviewable"]http://www.filedropper.com/metrodx11trianglenotviewable[/url]

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

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

This topic is 1905 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this