Package icyllis.arc3d.vulkan
Class VulkanImageView
java.lang.Object
icyllis.arc3d.core.RefCnt
icyllis.arc3d.engine.ManagedResource
icyllis.arc3d.vulkan.VulkanImageView
- All Implemented Interfaces:
RefCounted
Represents Vulkan image views, managed by
VulkanImage
.-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Override this method to invoke de-allocation of the underlying resource.int
int
int
int
static VulkanImageView
makeAttachment
(VulkanDevice device, long image, int imageType, int format, int mipLevel, int arraySlice) Create a render target view as attachment.static VulkanImageView
makeTexture
(VulkanDevice device, long image, int imageType, int format, short swizzle, int mipLevelCount, int layerCount) Create a shader resource view as shader input, for texture sampling.long
Methods inherited from class icyllis.arc3d.engine.ManagedResource
getDevice
-
Method Details
-
makeTexture
@Nullable public static VulkanImageView makeTexture(@Nonnull VulkanDevice device, long image, int imageType, int format, short swizzle, int mipLevelCount, int layerCount) Create a shader resource view as shader input, for texture sampling.- Parameters:
imageType
- seeEngine.ImageType
swizzle
- seeSwizzle
-
makeAttachment
@Nullable public static VulkanImageView makeAttachment(@Nonnull VulkanDevice device, long image, int imageType, int format, int mipLevel, int arraySlice) Create a render target view as attachment. -
vkImageView
public long vkImageView() -
getBaseMipLevel
public int getBaseMipLevel() -
getLevelCount
public int getLevelCount() -
getBaseArrayLayer
public int getBaseArrayLayer() -
getLayerCount
public int getLayerCount() -
deallocate
protected void deallocate()Description copied from class:RefCnt
Override this method to invoke de-allocation of the underlying resource.- Specified by:
deallocate
in classRefCnt
-