D3D11_SUBRESOURCE_DATA initData = new D3D11_SUBRESOURCE_DATA();
initData.pSysMem(pointerToFloats(0.0f, 1.0f, 0.5f, 1f, -0.5f, 0.5f, -0.5f, -0.5f, 0.5f));
initData.SysMemPitch(0).SysMemSlicePitch(0);
final ID3D11Buffer vertexBuffer = device.CreateBuffer(bufferDesc, initData);
JNIEnv env = JAWTUtils.getJNIEnv();
JAWT jawt = JAWTUtils.getJAWT(env);
while(frame.isEnabled()) {
if(frame.isVisible())
JAWTUtils.withLockedSurface(env, jawt, frame, new LockedComponentRunnable() {