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

Method BindIB

Source/Engine/GraphicsDevice/Vulkan/GPUContextVulkan.cpp:1118–1123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1116}
1117
1118void 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
1125void GPUContextVulkan::BindSampler(int32 slot, GPUSampler* sampler)
1126{

Callers 8

ExecuteDrawCallsMethod · 0.45
RenderRadialLightMethod · 0.45
RenderMethod · 0.45
DrawDecalsMethod · 0.45
onJobRenderMethod · 0.45
RenderMethod · 0.45
DrawBatchFunction · 0.45
RenderMethod · 0.45

Calls 3

GetCmdBufferMethod · 0.80
GetHandleMethod · 0.45
GetFormatMethod · 0.45

Tested by

no test coverage detected