| 25 | namespace |
| 26 | { |
| 27 | VkBufferImageCopy BufferCopyRegion(uint32_t x, uint32_t y, uint32_t width, uint32_t height, uint32_t stagingOffset) |
| 28 | { |
| 29 | VkBufferImageCopy bufferCopyRegion = {}; |
| 30 | bufferCopyRegion.imageSubresource.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; |
| 31 | bufferCopyRegion.imageSubresource.mipLevel = 0; |
| 32 | bufferCopyRegion.imageSubresource.baseArrayLayer = 0; |
| 33 | bufferCopyRegion.imageSubresource.layerCount = 1; |
| 34 | bufferCopyRegion.imageExtent.width = width; |
| 35 | bufferCopyRegion.imageExtent.height = height; |
| 36 | bufferCopyRegion.imageExtent.depth = 1; |
| 37 | bufferCopyRegion.imageOffset.x = x; |
| 38 | bufferCopyRegion.imageOffset.y = y; |
| 39 | bufferCopyRegion.imageOffset.z = 0; |
| 40 | bufferCopyRegion.bufferOffset = stagingOffset; |
| 41 | return bufferCopyRegion; |
| 42 | } |
| 43 | } // namespace |
| 44 | |
| 45 | drape_ptr<HWTexture> VulkanTextureAllocator::CreateTexture(ref_ptr<dp::GraphicsContext> context) |
no outgoing calls
no test coverage detected