瀏覽代碼

no message

Hongtae Kim 7 年之前
父節點
當前提交
eedf7fb46c
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. 10
    0
      TestApp1/TestApp1.cpp

+ 10
- 0
TestApp1/TestApp1.cpp 查看文件

@@ -28,7 +28,17 @@ public:
28 28
 		DKLog("Render thread begin");
29 29
 		while (!runningRenderThread.CompareAndSet(0, 0))
30 30
 		{
31
+			DKRenderPassDescriptor rpd = swapChain->CurrentRenderPassDescriptor();
32
+			DKObject<DKRenderCommandEncoder> encoder = buffer->CreateRenderCommandEncoder(rpd);
33
+			if (encoder)
34
+			{
35
+				// draw scene!
31 36
 
37
+				swapChain->Present();
38
+			}
39
+			else
40
+			{
41
+			}
32 42
 
33 43
 			DKThread::Sleep(0.01);
34 44
 		}