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