Class VulkanImageDesc
When wrapping a BackendImage
or BackendRenderTarget
, the
invalid reference
#mCurrentQueueFamily
invalid reference
VKUtil#VK_QUEUE_FAMILY_IGNORED
invalid reference
VKUtil#VK_QUEUE_FAMILY_EXTERNAL
EXTQueueFamilyForeign.VK_QUEUE_FAMILY_FOREIGN_EXT
. If mSharingMode
is
invalid reference
VKUtil#VK_SHARING_MODE_EXCLUSIVE
invalid reference
#mCurrentQueueFamily
When importing external memory,
invalid reference
#mMemoryHandle
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
Modifier and TypeFieldDescriptionfinal int
final int
final int
final int
final int
final int
Fields inherited from class icyllis.arc3d.engine.ImageDesc
mArraySize, mDepth, mFlags, mHeight, mImageType, mMipLevelCount, mSampleCount, mWidth
-
Constructor Summary
ConstructorDescriptionVulkanImageDesc
(int vkFlags, int vkImageType, int format, int imageTiling, int imageUsageFlags, int sharingMode, int imageType, int width, int height, int depth, int arraySize, int mipLevelCount, int sampleCount, int flags) -
Method Summary
Methods inherited from class icyllis.arc3d.engine.ImageDesc
getArraySize, getDepth, getGLFormat, getHeight, getImageType, getMipLevelCount, getSampleCount, getWidth, isCompressed, isMipmapped, isMultisampled, isProtected, isRenderable, isSampledImage, isStorageImage
-
Field Details
-
mVkFlags
public final int mVkFlags -
mVkImageType
public final int mVkImageType -
mFormat
public final int mFormat -
mImageTiling
public final int mImageTiling -
mImageUsageFlags
public final int mImageUsageFlags -
mSharingMode
public final int mSharingMode
-
-
Constructor Details
-
VulkanImageDesc
public VulkanImageDesc(int vkFlags, int vkImageType, int format, int imageTiling, int imageUsageFlags, int sharingMode, int imageType, int width, int height, int depth, int arraySize, int mipLevelCount, int sampleCount, int flags)
-
-
Method Details
-
getBackend
public int getBackend()- Specified by:
getBackend
in classImageDesc
- Returns:
- see
Engine.BackendApi
-
getVkFormat
public int getVkFormat()Description copied from class:ImageDesc
If the backend API is Vulkan this gets the format as a VkFormat.- Overrides:
getVkFormat
in classImageDesc
-
getChannelFlags
public int getChannelFlags()Description copied from class:ImageDesc
Gets the channels present in the format as a bitfield of ColorChannelFlag values.- Overrides:
getChannelFlags
in classImageDesc
- See Also:
-
isSRGB
public boolean isSRGB() -
getCompressionType
public int getCompressionType()- Overrides:
getCompressionType
in classImageDesc
- See Also:
-
getBytesPerBlock
public int getBytesPerBlock()- Overrides:
getBytesPerBlock
in classImageDesc
- Returns:
- if compressed, bytes per block, otherwise bytes per pixel
-
getDepthBits
public int getDepthBits()- Overrides:
getDepthBits
in classImageDesc
-
getStencilBits
public int getStencilBits()- Overrides:
getStencilBits
in classImageDesc
-
hashCode
public int hashCode() -
equals
-
toString
-