immediateContext.ClearRenderTargetView(pointerTo(rtView), pointerToFloats(0.0f, 0.125f, 0.3f, 1.0f));
int stride = (int) (sizeOf(Float.class) * 3);
immediateContext.IASetVertexBuffers(0, 1, pointerToPointer(pointerTo(vertexBuffer)), pointerToInt(stride), pointerToInt(0));
immediateContext.IASetInputLayout(layout);
immediateContext.VSSetShader(pointerTo(vs), null, 0);
immediateContext.PSSetShader(pointerTo(ps), null, 0);
immediateContext.IASetPrimitiveTopology(D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST);
immediateContext.Draw(3, 0);