179180181182183184185186187188189
// Set primitive topology and draw immediateContext.IASetPrimitiveTopology(D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST); immediateContext.Draw(3, 0); // Present to screen swapChain.Present(0, 0); } }); try { Thread.sleep(5);
138139140141142143144145146147148
immediateContext.PSSetShader(pointerTo(ps), null, 0); immediateContext.IASetPrimitiveTopology(D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST); immediateContext.Draw(3, 0); swapChain.Present(0, 0); } }); try { Thread.sleep(5);