Companion

object Companion

Functions

Link copied to clipboard
fun makeMetal(width: Int, height: Int, texturePtr: NativePointer): BackendTexture

Creates a Graphite backend texture that wraps a Metal texture.

Link copied to clipboard
fun makeVulkan(width: Int, height: Int, textureInfo: VulkanTextureInfo, imageLayout: Int, queueFamilyIndex: Int, imagePtr: NativePointer): BackendTexture

Creates a Graphite backend texture that wraps an existing VkImage.

fun makeVulkan(width: Int, height: Int, sampleCount: Int, mipmapped: Boolean, flags: Int, format: Int, imageTiling: Int, imageUsageFlags: Int, sharingMode: Int, aspectMask: Int, imageLayout: Int, queueFamilyIndex: Int, imagePtr: NativePointer): BackendTexture

Creates a Graphite backend texture that wraps an existing VkImage using raw Vulkan values.