Add input layout
Add matrix buffer Convert camera to D3D11
This commit is contained in:
+1
-1
@@ -56,7 +56,7 @@ void Mesh::render(ID3D11DeviceContext* pD3DDeviceContext)
|
||||
);
|
||||
|
||||
pD3DDeviceContext->IASetIndexBuffer(_pIndexBuffer, DXGI_FORMAT_R16_UINT, 0);
|
||||
pD3DDeviceContext->IASetPrimitiveTopology(D3D10_PRIMITIVE_TOPOLOGY_TRIANGLELIST);
|
||||
pD3DDeviceContext->IASetPrimitiveTopology(D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST);
|
||||
|
||||
// draw call
|
||||
pD3DDeviceContext->DrawIndexed(_indexCount, 0, 0);
|
||||
|
||||
Reference in New Issue
Block a user