Kohi Game Engine
vulkan_image Struct Reference

A representation of a Vulkan image. This can be thought of as a texture. Also contains the view and memory used by the internal image. More...

#include <vulkan_types.h>

Data Fields

VkImage handle
 The handle to the internal image object. More...
 
VkDeviceMemory memory
 The memory used by the image. More...
 
VkImageCreateInfo image_create_info
 The image creation info. More...
 
VkImageView view
 The view for the image, which is used to access the image. More...
 
VkImageSubresourceRange view_subresource_range
 
VkImageViewCreateInfo view_create_info
 
VkImageView * layer_views
 If there are multiple layers, one view per layer exists here. More...
 
VkImageSubresourceRange * layer_view_subresource_ranges
 
VkImageViewCreateInfo * layer_view_create_infos
 
VkMemoryRequirements memory_requirements
 The GPU memory requirements for this image. More...
 
VkMemoryPropertyFlags memory_flags
 Memory property flags. More...
 
VkFormat format
 The format of the image. More...
 
u32 width
 The image width. More...
 
u32 height
 The image height. More...
 
u16 layer_count
 The number of layers in this image. More...
 
char * name
 The name of the image. More...
 
ktexture_flag_bits flags
 texture flag bits More...
 
u32 mip_levels
 
b8 has_view
 

Detailed Description

A representation of a Vulkan image. This can be thought of as a texture. Also contains the view and memory used by the internal image.

Field Documentation

◆ flags

texture flag bits

◆ format

VkFormat format

The format of the image.

◆ handle

VkImage handle

The handle to the internal image object.

◆ has_view

b8 has_view

◆ height

u32 height

The image height.

◆ image_create_info

VkImageCreateInfo image_create_info

The image creation info.

◆ layer_count

u16 layer_count

The number of layers in this image.

◆ layer_view_create_infos

VkImageViewCreateInfo* layer_view_create_infos

◆ layer_view_subresource_ranges

VkImageSubresourceRange* layer_view_subresource_ranges

◆ layer_views

VkImageView* layer_views

If there are multiple layers, one view per layer exists here.

◆ memory

VkDeviceMemory memory

The memory used by the image.

◆ memory_flags

VkMemoryPropertyFlags memory_flags

Memory property flags.

◆ memory_requirements

VkMemoryRequirements memory_requirements

The GPU memory requirements for this image.

◆ mip_levels

u32 mip_levels

The number of mipmaps to be generated for this image. Must always be at least 1.

◆ name

char* name

The name of the image.

◆ view

VkImageView view

The view for the image, which is used to access the image.

◆ view_create_info

VkImageViewCreateInfo view_create_info

◆ view_subresource_range

VkImageSubresourceRange view_subresource_range

◆ width

u32 width

The image width.


The documentation for this struct was generated from the following file: