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 voidOverride this method to invoke de-allocation of the underlying resource.intintintintstatic @Nullable VulkanImageViewmakeAttachment(@NonNull VulkanDevice device, long image, int imageType, int format, int mipLevel, int arraySlice) Create a render target view as attachment.static @Nullable VulkanImageViewmakeTexture(@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.longMethods inherited from class icyllis.arc3d.engine.ManagedResource
getDevice
-
Method Details
-
makeTexture
public static @Nullable 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.ImageTypeswizzle- seeSwizzle
-
makeAttachment
public static @Nullable 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:RefCntOverride this method to invoke de-allocation of the underlying resource.- Specified by:
deallocatein classRefCnt
-