|
|
|
|
380
|
encoder->SetRenderPipelineState(pipelineState);
|
380
|
encoder->SetRenderPipelineState(pipelineState);
|
381
|
encoder->SetVertexBuffer(vertexBuffer, 0, 0);
|
381
|
encoder->SetVertexBuffer(vertexBuffer, 0, 0);
|
382
|
encoder->SetIndexBuffer(indexBuffer, 0, DKIndexType::UInt32);
|
382
|
encoder->SetIndexBuffer(indexBuffer, 0, DKIndexType::UInt32);
|
|
|
383
|
+ encoder->SetResources(0, bindSet);
|
383
|
// draw scene!
|
384
|
// draw scene!
|
384
|
encoder->DrawIndexed(indexData.Count(), 1, 0, 0, 1);
|
385
|
encoder->DrawIndexed(indexData.Count(), 1, 0, 0, 1);
|
385
|
encoder->EndEncoding();
|
386
|
encoder->EndEncoding();
|