| 1116 | } |
| 1117 | |
| 1118 | void GPUContextVulkan::BindIB(GPUBuffer* indexBuffer) |
| 1119 | { |
| 1120 | const auto cmdBuffer = _cmdBufferManager->GetCmdBuffer(); |
| 1121 | const auto ibVulkan = static_cast<GPUBufferVulkan*>(indexBuffer)->GetHandle(); |
| 1122 | vkCmdBindIndexBuffer(cmdBuffer->GetHandle(), ibVulkan, 0, indexBuffer->GetFormat() == PixelFormat::R32_UInt ? VK_INDEX_TYPE_UINT32 : VK_INDEX_TYPE_UINT16); |
| 1123 | } |
| 1124 | |
| 1125 | void GPUContextVulkan::BindSampler(int32 slot, GPUSampler* sampler) |
| 1126 | { |
no test coverage detected