Sign in to follow this  
Razvan1024

Help with DirectX 11

Recommended Posts

Razvan1024    114
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
Erik Rufelt    5901
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

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