Skip to content

VulkanTexture

final class VulkanTexture
Extends: Texture
Implements: IVulkanTexture
Package: dev.joid.backend.vulkan.render.texture · Module: backend-vulkan · Source: VulkanTexture.java
Backends: Vulkan

A texture of Vulkan in device memory, uploaded through a staging buffer, with mipmaps built by linear blits.

A texture larger than the maximum size of the device throws an IllegalArgumentException that starts with A texture of.

ReturnsSignatureSummary
VulkanTexturecreate(VulkanRenderBridge bridge) factoryCreates the texture, without storage; VulkanRenderBridge.createTexture calls it.

ReturnsSignatureSummary
VulkanRenderBridgegetBridge()Returns the render bridge that created it.
longgetView()Returns the image view, VK_NULL_HANDLE before the storage exists.
longgetImage()Returns the image handle.
longgetMemory()Returns the memory handle.
Inherited from Texture (10)

getWidth · getHeight · isAllocated · getLevels · isDeleted · isMipmapped · mipmap · allocate · upload · delete

VulkanTexture create(VulkanRenderBridge bridge) factory

Creates the texture, without storage; VulkanRenderBridge.createTexture calls it.

VulkanRenderBridge getBridge()

Returns the render bridge that created it.

long getView()

Returns the image view, VK_NULL_HANDLE before the storage exists.

long getImage()

Returns the image handle.

long getMemory()

Returns the memory handle.


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