Header menu logo Nu

TextureWrapper Type

Wraps a vulkan texture in the various ways that vulkan provides.

Record fields

Record Field Description

Allocation

Full Usage: Allocation

Field type: VmaAllocation
Field type: VmaAllocation

Image

Full Usage: Image

Field type: VkImage
Field type: VkImage

ImageView

Full Usage: ImageView

Field type: VkImageView
Field type: VkImageView

LayerViews

Full Usage: LayerViews

Field type: VkImageView array
Field type: VkImageView array

StagingBuffers

Full Usage: StagingBuffers

Field type: List<VulkanBuffer>
Field type: List<VulkanBuffer>

SubViews

Full Usage: SubViews

Field type: VkImageView[,]
Field type: VkImageView[,]

TextureMetadata

Full Usage: TextureMetadata

Field type: TextureMetadata
Field type: TextureMetadata

Static members

Static member Description

TextureWrapper.create pixelFormat internalFormat metadata mipLevels attachmentMode textureType usageFlags context

Full Usage: TextureWrapper.create pixelFormat internalFormat metadata mipLevels attachmentMode textureType usageFlags context

Parameters:
Returns: TextureWrapper

Create a texture wrapper.

pixelFormat : PixelFormat
internalFormat : ImageFormat
metadata : TextureMetadata
mipLevels : int
attachmentMode : AttachmentMode
textureType : TextureType
usageFlags : VkImageUsageFlags
context : VulkanContext
Returns: TextureWrapper

TextureWrapper.destroy texture context

Full Usage: TextureWrapper.destroy texture context

Parameters:

Destroy a texture wrapper.

texture : TextureWrapper
context : VulkanContext

Type something to start searching.