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