| 470 | } |
| 471 | |
| 472 | void GPUContextDX11::BindIB(GPUBuffer* indexBuffer) |
| 473 | { |
| 474 | const auto ibDX11 = static_cast<GPUBufferDX11*>(indexBuffer); |
| 475 | if (ibDX11 != _ibHandle) |
| 476 | { |
| 477 | _ibHandle = ibDX11; |
| 478 | _context->IASetIndexBuffer(ibDX11->GetBuffer(), RenderToolsDX::ToDxgiFormat(ibDX11->GetFormat()), 0); |
| 479 | } |
| 480 | } |
| 481 | |
| 482 | void GPUContextDX11::BindSampler(int32 slot, GPUSampler* sampler) |
| 483 | { |