MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / BindIB

Method BindIB

Source/Engine/GraphicsDevice/DirectX/DX11/GPUContextDX11.cpp:472–480  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

470}
471
472void 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
482void GPUContextDX11::BindSampler(int32 slot, GPUSampler* sampler)
483{

Callers

nothing calls this directly

Calls 2

GetBufferMethod · 0.45
GetFormatMethod · 0.45

Tested by

no test coverage detected