SpiecsEngine
 
Loading...
Searching...
No Matches
Spices::RendererResourceCreateInfo Struct Reference

This struct defines the data used to create a texture2d. From render pass. More...

#include <RendererResource.h>

Public Member Functions

 RendererResourceCreateInfo ()=default
 Constructor Function.
 
 RendererResourceCreateInfo (const std::string &name)
 Constructor Function.
 
virtual ~RendererResourceCreateInfo ()=default
 Destructor Function.
 

Public Attributes

VkAttachmentDescription description {}
 Texture's description info.
 
std::string name
 Texture's name.
 
TextureType type = TextureType::Texture2D
 Texture's Class Type.
 
uint32_t width = 1920
 Texture' width.
 
uint32_t height = 1080
 Texture' height..
 
float sizeScale = 1.0f
 Texture's size scale.
 
uint32_t layer = 1
 Texture's layer(1 for Texture2D, 6 for TextureCube, any for TextureArray).
 
uint32_t mipLevel = 1
 Texture's mipmap level.
 
VkImageUsageFlagBits usage {}
 Image Usage.
 
bool isDepthResource = false
 True if this resource is a DepthResource.
 
bool isResizeable = true
 True if this resource needs resize(sync with viewport's size).
 

Detailed Description

This struct defines the data used to create a texture2d. From render pass.

Todo
More type of texture support.

Definition at line 25 of file RendererResource.h.


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