32 [[nodiscard]] uint32_t
getId()
const {
return id_; }
44 return !(*
this == other);
74template<TextureType Type>
86 "TextureHandle type mismatch in TypedTextureHandle construction");
102 [[nodiscard]] uint32_t
getId()
const {
return base_.getId(); }
119 return !(*
this == other);
Type-erased texture handle for runtime storage.
static constexpr uint32_t INVALID_ID
TextureType getType() const
Get the texture type for this handle.
bool operator!=(const TextureHandle &other) const
bool isValid() const
Check if this handle points to a valid registry entry.
TextureHandle(uint32_t id, TextureType type)
uint32_t getId() const
Get the registry ID for this handle.
bool operator==(const TextureHandle &other) const
Type-safe texture handle wrapper providing compile-time type safety.
static constexpr TextureType getType()
Get the texture type (compile-time constant)
bool operator==(const TypedTextureHandle &other) const
TypedTextureHandle(TextureHandle base)
Construct from a base TextureHandle.
TextureHandle getBase() const
Get the underlying base handle.
bool operator!=(const TypedTextureHandle &other) const
uint32_t getId() const
Get the registry ID for this handle.
TypedTextureHandle()=default
bool isValid() const
Check if this handle points to a valid registry entry.
Log category system implementation.
TypedTextureHandle< TextureType::MetallicRoughness > MetallicRoughnessTextureHandle
TypedTextureHandle< TextureType::Lightmap > LightmapTextureHandle
TypedTextureHandle< TextureType::Emissive > EmissiveTextureHandle
TypedTextureHandle< TextureType::Normal > NormalTextureHandle
TypedTextureHandle< TextureType::BaseColor > AlbedoTextureHandle
TextureType
Represents the semantic type of a texture, determining its Vulkan format.
@ Unknown
Fallback type, uses SRGB as default.