Browse Source

no message

Hongtae Kim 6 years ago
parent
commit
f1fede39c8
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      TestApp1/TestApp1.cpp

+ 4
- 0
TestApp1/TestApp1.cpp View File

@@ -86,7 +86,11 @@ public:
86 86
 			DKObject<DKRenderCommandEncoder> encoder = buffer->CreateRenderCommandEncoder(rpd);
87 87
 			if (encoder)
88 88
 			{
89
+				encoder->SetRenderPipelineState(pipelineState);
90
+				encoder->SetVertexBuffer(vertexBuffer, 0, 0);
91
+				encoder->SetIndexBuffer(indexBuffer, 0, DKIndexType::UInt32);
89 92
 				// draw scene!
93
+				encoder->DrawIndexed(indexData.Count(), 1, 0, 0, 0);
90 94
 				encoder->EndEncoding();
91 95
 				buffer->Commit();
92 96
 				swapChain->Present();