Skip to content

VulkanBorrowedTexture

final class VulkanBorrowedTexture
Extends: BorrowedTexture<VulkanImage>
Implements: IVulkanTexture
Package: dev.joid.backend.vulkan.render.texture · Module: backend-vulkan · Source: VulkanBorrowedTexture.java
Backends: Vulkan

An image of the host, by image view, that JOID samples without owning it.

The image must be in SHADER_READ_ONLY_OPTIMAL when JOID samples it.

ReturnsSignatureSummary
VulkanBorrowedTextureof(VulkanImage image) factoryWraps that image.
VulkanBorrowedTextureof(Supplier image) factoryWraps the image that the supplier returns, read again at each use, for a host that recreates its image.

ReturnsSignatureSummary
longgetView()Returns the view of the current image; when the supplier returns another image, forgets the descriptor sets of the previous view.
Inherited from BorrowedTexture (10)

getWidth · getHeight · isMipmapped · getHandle · isValid · getSupplier · mipmap · allocate · upload · delete

Inherited from ITexture (1)

isAllocated

VulkanBorrowedTexture of(VulkanImage image) factory

Wraps that image. Throws an IllegalStateException when the Vulkan backend is not registered.

VulkanBorrowedTexture of(Supplier<VulkanImage> image) factory

Wraps the image that the supplier returns, read again at each use, for a host that recreates its image. Throws an IllegalStateException when the Vulkan backend is not registered.

long getView()

Returns the view of the current image; when the supplier returns another image, forgets the descriptor sets of the previous view.


fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses

Report a problem with this page