| 23 | uint32_t constexpr kDefaultStagingBufferSizeInBytes = 3 * 1024 * 1024; |
| 24 | |
| 25 | uint16_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 | |
| 38 | VulkanBaseContext::VulkanBaseContext(VkInstance vulkanInstance, VkPhysicalDevice gpu, |