| 83 | } |
| 84 | |
| 85 | VkImageUsageFlags TextureVk::BindFlagsToVkImageUsageFlags(unsigned int flags) |
| 86 | { |
| 87 | VkImageUsageFlags result = VK_IMAGE_USAGE_TRANSFER_SRC_BIT | VK_IMAGE_USAGE_SAMPLED_BIT; |
| 88 | if (flags & ovrTextureBind_DX_RenderTarget) |
| 89 | result |= VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT; |
| 90 | if (flags & ovrTextureBind_DX_UnorderedAccess) |
| 91 | result |= VK_IMAGE_USAGE_STORAGE_BIT; |
| 92 | if (flags & ovrTextureBind_DX_DepthStencil) |
| 93 | result |= VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT; |
| 94 | return result; |
| 95 | } |
| 96 | |
| 97 | bool TextureVk::GetMemoryType(uint32_t typeBits, VkFlags requirements_mask, uint32_t* typeIndex) |
| 98 | { |
nothing calls this directly
no outgoing calls
no test coverage detected