Browse Source

no message

Hongtae Kim 7 years ago
parent
commit
eedf7fb46c
1 changed files with 10 additions and 0 deletions
  1. 10
    0
      TestApp1/TestApp1.cpp

+ 10
- 0
TestApp1/TestApp1.cpp View File

28
 		DKLog("Render thread begin");
28
 		DKLog("Render thread begin");
29
 		while (!runningRenderThread.CompareAndSet(0, 0))
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
 			DKThread::Sleep(0.01);
43
 			DKThread::Sleep(0.01);
34
 		}
44
 		}