瀏覽代碼

no message

Hongtae Kim 6 年之前
父節點
當前提交
f1fede39c8
共有 1 個檔案被更改,包括 4 行新增0 行删除
  1. 4
    0
      TestApp1/TestApp1.cpp

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

@@ -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();