Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
TextureType.h File Reference
#include <vulkan/vulkan_core.h>
#include <cstdint>
Include dependency graph for TextureType.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Engine
namespace  Engine::Assets

Enumerations

enum class  Engine::Assets::TextureType : uint8_t {
  Engine::Assets::BaseColor ,
  Engine::Assets::Normal ,
  Engine::Assets::MetallicRoughness ,
  Engine::Assets::Emissive ,
  Engine::Assets::Lightmap ,
  Engine::Assets::Unknown
}
 Represents the semantic type of a texture, determining its Vulkan format. More...

Functions

constexpr VkFormat Engine::Assets::getVkFormat (TextureType type, int bits, int components)
 Get the correct VkFormat based on texture type and image properties.
constexpr bool Engine::Assets::requiresLinearFormat (TextureType type)
 Check if a texture type requires linear (non-SRGB) format.