MCPcopy Create free account
hub / github.com/baldurk/renderdoc / GetGPULocalMemoryIndex

Method GetGPULocalMemoryIndex

renderdoc/driver/vulkan/vk_memory.cpp:201–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201uint32_t WrappedVulkan::GetGPULocalMemoryIndex(uint32_t resourceCompatibleBitmask)
202{
203 if(m_PhysicalDeviceData.GPULocalMemIndex < 32 &&
204 resourceCompatibleBitmask & (1 << m_PhysicalDeviceData.GPULocalMemIndex))
205 return m_PhysicalDeviceData.GPULocalMemIndex;
206
207 // we don't actually need to require device local, but it is preferred
208 return m_PhysicalDeviceData.GetMemoryIndex(resourceCompatibleBitmask, 0,
209 VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT);
210}
211
212uint32_t WrappedVulkan::PhysicalDeviceData::GetMemoryIndex(uint32_t resourceCompatibleBitmask,
213 uint32_t allocRequiredProps,

Callers 12

CreateMethod · 0.80
RenderOverlayMethod · 0.80
FetchMeshOutMethod · 0.80
FetchVSOutMethod · 0.80
FetchTessGSOutMethod · 0.80
CreateMethod · 0.80
VulkanDebugManagerMethod · 0.80
CreateCustomShaderTexMethod · 0.80
InitMethod · 0.80
VulkanTextRendererMethod · 0.80
GetTextureDataMethod · 0.80

Calls 1

GetMemoryIndexMethod · 0.80

Tested by

no test coverage detected