Before drawing, all state must be set up as desired in the current context. See Pipeline Setup for more information.
#include
{
...
// Get a pointer to the immediate context used to issue commands to the graphics device.
auto context = device->getImmediateContext();
// Draw a single triangle, pulling three vertexes from our currently bound vertex buffer, mapping
// the data in the vertex buffer into our currently set effect using the current input layout.
context->draw(PrimitiveType::TriangleList, 0, 3);
...
}