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...
 
VkImageView view
 The view for the image, which is used to access the image. More...
 
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...
 
char * name
 The name of the image. More...
 
u32 mip_levels
 

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

◆ format

VkFormat format

The format of the image.

◆ handle

VkImage handle

The handle to the internal image object.

◆ height

u32 height

The image height.

◆ 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.

◆ width

u32 width

The image width.


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