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

Function BufferCopyRegion

libs/drape/vulkan/vulkan_texture.cpp:27–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25namespace
26{
27VkBufferImageCopy 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
45drape_ptr<HWTexture> VulkanTextureAllocator::CreateTexture(ref_ptr<dp::GraphicsContext> context)

Callers 2

UploadDataMethod · 0.85
BindMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected