| 715 | } |
| 716 | |
| 717 | void Device::BindPipeline(CommandBufferID commandBuffer, PipelineID pipeline) { |
| 718 | CommandBufferInfo& info = commandBuffers.at(commandBuffer); |
| 719 | |
| 720 | // Get pipeline |
| 721 | const PipelineInfo& pipelineInfo = pipelines[pipeline]; |
| 722 | |
| 723 | // Set states |
| 724 | info.commandList->SetComputeRootSignature(pipelineInfo.rootSignature.Get()); |
| 725 | info.commandList->SetPipelineState(pipelineInfo.pipeline.Get()); |
| 726 | } |
| 727 | |
| 728 | void Device::BindResourceSet(CommandBufferID commandBuffer, uint32_t slot, ResourceSetID resourceSet) { |
| 729 | CommandBufferInfo& info = commandBuffers.at(commandBuffer); |
no test coverage detected