Sign in to follow this  

Help with DirectX 11

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

Hello. I have a little problem with D3D11. After I downloaded the SDK I modified a program that worked on the beta SDK and tried to run it. Unfortunately the program produces an unexpected output. Instead of drawing a 2D red triangle on the screen all I get is a red dot in the middle of my window. Can anyone help me with this? This is the source code for the shader: http://razvan1024.pastebin.com/f3d85c384 The source code for the program: http://razvan1024.pastebin.com/f45c50a85 Thanks in advance for the help.

Share this post


Link to post
Share on other sites
You don't seem to set the primitive topology. Try using pDeviceContext->IASetPrimitiveTopology(D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST), before drawing your triangle.

You can also use [source]..code..[/source] tags to post code directly here on GameDev:
..code..

Share this post


Link to post
Share on other sites

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