Package icyllis.arc3d.vulkan
Class VulkanBackendImage
java.lang.Object
icyllis.arc3d.engine.BackendImage
icyllis.arc3d.vulkan.VulkanBackendImage
When importing external memory,
mMemoryHandle is POSIX file descriptor or Win32 NT handle (though HANDLE is defined
as void*, we can safely truncate it because Win32 handles are 32-bit significant).
If it is an NT handle, it must be released manually by the memory exporter (e.g. Vulkan).-
Field Summary
FieldsFields inherited from class icyllis.arc3d.engine.BackendImage
mDesc, mMutableState -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint@NonNull BackendFormatGet the BackendFormat for this image/texture.booleanbooleanReturns true if we are working with protected content.booleanisSameImage(BackendImage image) Returns true if both images are valid and refer to the same API image handle.voidsetVkImageLayout(int layout) Anytime the client changes the VkImageLayout of the VkImage captured by thisBackendImage, they must call this function to notify pipeline of the changed layout.voidsetVkQueueFamilyIndex(int queueFamilyIndex) Anytime the client changes the QueueFamilyIndex of the VkImage captured by thisBackendImage, they must call this function to notify pipeline of the changed layout.Methods inherited from class icyllis.arc3d.engine.BackendImage
getArraySize, getDepth, getDesc, getHeight, getImageType, getMipLevelCount, getMutableState, getWidth, glTextureParametersModified, isMipmapped
-
Field Details
-
mLevelCount
public int mLevelCount -
mMemoryHandle
public long mMemoryHandle
-
-
Constructor Details
-
VulkanBackendImage
-
-
Method Details
-
getBackend
public int getBackend()- Specified by:
getBackendin classBackendImage- Returns:
- see
Engine.BackendApi
-
isExternal
public boolean isExternal()- Specified by:
isExternalin classBackendImage- Returns:
- external texture
-
setVkImageLayout
public void setVkImageLayout(int layout) Description copied from class:BackendImageAnytime the client changes the VkImageLayout of the VkImage captured by thisBackendImage, they must call this function to notify pipeline of the changed layout.- Overrides:
setVkImageLayoutin classBackendImage
-
setVkQueueFamilyIndex
public void setVkQueueFamilyIndex(int queueFamilyIndex) Description copied from class:BackendImageAnytime the client changes the QueueFamilyIndex of the VkImage captured by thisBackendImage, they must call this function to notify pipeline of the changed layout.- Overrides:
setVkQueueFamilyIndexin classBackendImage
-
getBackendFormat
Description copied from class:BackendImageGet the BackendFormat for this image/texture.- Specified by:
getBackendFormatin classBackendImage
-
isProtected
public boolean isProtected()Description copied from class:BackendImageReturns true if we are working with protected content.- Specified by:
isProtectedin classBackendImage
-
isSameImage
Description copied from class:BackendImageReturns true if both images are valid and refer to the same API image handle.- Specified by:
isSameImagein classBackendImage
-