Creates GrBackendTexture from Vulkan image. @param width width of the texture @param height height of the texture @param info VkImageInfo describing the Vulkan image to be used as backend texture @return BackendTexture wrapping the passed Vulkan image
(int width, int height, VkImageInfo info)
| 50 | * @return BackendTexture wrapping the passed Vulkan image |
| 51 | */ |
| 52 | public static BackendTexture makeVulkan(int width, int height, VkImageInfo info) { |
| 53 | Stats.onNativeCall(); |
| 54 | return new BackendTexture(_nMakeVulkan(width, height, info.getVkImage(), info.getAlloc().getMemory(), info.getAlloc().getOffset(), info.getAlloc().getSize(), info.getAlloc().getFlags(), info.getAlloc().getBackendMemory(), info.getImageTiling(), info.getImageLayout(), info.getFormat(), info.getImageUsageFlags(), info.getSampleCount(), info.getLevelCount(), info.getCurrentQueueFamily(), info.isProtected(), info.getSharingMode(), info.isPartOfSwapchainOrAndroidWindow())); |
| 55 | } |
| 56 | |
| 57 | @ApiStatus.Internal |
| 58 | public static class _FinalizerHolder { |
nothing calls this directly
no test coverage detected