Could anyone please help me fix my DX11 Renderer?

Started by
2 comments, last by JardaF 6 years, 9 months ago

What I see is a corner flower blue background in a window, I can't see a triangle at all.

Thanks

D3D11_Test.zip

 

Jack

Advertisement

I have my doubts that anyone is going to download ( im not going to download some random zip file from a forum ) and fix your code for you considering you haven't said what the problem is, how you attempted to fix it, or what part you don't understand / is broken. Its a huge time investment considering you haven't invested the time in explaining the problem

Maybe put your code on github or something similar that someone can just browse to safely, and explain your problem in more depth, and you are more likely to get help in my opinion

In D3D11_Renderer::BeginFrame set render target:


m_pDeviceContext->OMSetRenderTargets(1, &m_renderTargetView.p, nullptr);

In Triangle::Draw, set primitive topology and vertex-buffer:


deviceContext->IASetPrimitiveTopology(D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST);
deviceContext->IASetVertexBuffers(0, 1, &m_vertexBuffer.p, &stride, &offset);

See CComPtr with ID3D11RenderTargetView.

This topic is closed to new replies.

Advertisement