MCPcopy Create free account
hub / github.com/comaps/comaps / PackAttachmentsOperations

Function PackAttachmentsOperations

libs/drape/vulkan/vulkan_base_context.cpp:25–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23uint32_t constexpr kDefaultStagingBufferSizeInBytes = 3 * 1024 * 1024;
24
25uint16_t PackAttachmentsOperations(VulkanBaseContext::AttachmentsOperations const & operations)
26{
27 uint16_t result = 0;
28 result |= operations.m_color.m_loadOp;
29 result |= (operations.m_color.m_storeOp << 2);
30 result |= operations.m_depth.m_loadOp << 4;
31 result |= (operations.m_depth.m_storeOp << 6);
32 result |= operations.m_stencil.m_loadOp << 8;
33 result |= (operations.m_stencil.m_storeOp << 10);
34 return result;
35}
36} // namespace
37
38VulkanBaseContext::VulkanBaseContext(VkInstance vulkanInstance, VkPhysicalDevice gpu,

Callers 1

ApplyFramebufferMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected