MCPcopy Create free account
hub / github.com/HumbleUI/Skija / makeVulkan

Method makeVulkan

shared/java/BackendTexture.java:52–55  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 4

onNativeCallMethod · 0.95
_nMakeVulkanMethod · 0.95
getOffsetMethod · 0.80
getSizeMethod · 0.45

Tested by

no test coverage detected