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.
Description
Section titled “Description”The image must be in SHADER_READ_ONLY_OPTIMAL when JOID samples it.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
VulkanBorrowedTexture | of(VulkanImage image) factory | Wraps that image. |
VulkanBorrowedTexture | of(Supplier | Wraps the image that the supplier returns, read again at each use, for a host that recreates its image. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
long | getView() | 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)
Creation details
Section titled “Creation details”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.
Method details
Section titled “Method details”getView
Section titled “getView”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
