|
Vulkan Schnee 0.0.1
High-performance rendering engine
|
Type-safe texture handle wrapper providing compile-time type safety. More...
#include <TextureHandle.h>
Public Member Functions | |
| TypedTextureHandle ()=default | |
| TypedTextureHandle (TextureHandle base) | |
| Construct from a base TextureHandle. | |
| bool | isValid () const |
| Check if this handle points to a valid registry entry. | |
| TextureHandle | getBase () const |
| Get the underlying base handle. | |
| uint32_t | getId () const |
| Get the registry ID for this handle. | |
| operator TextureHandle () const | |
| Implicit conversion to base handle for storage/runtime use. | |
| bool | operator== (const TypedTextureHandle &other) const |
| bool | operator!= (const TypedTextureHandle &other) const |
Static Public Member Functions | |
| static constexpr TextureType | getType () |
| Get the texture type (compile-time constant) | |
Private Attributes | |
| TextureHandle | base_ |
Type-safe texture handle wrapper providing compile-time type safety.
This template class wraps TextureHandle and provides compile-time type checking. You cannot accidentally assign a normal map handle to an albedo slot - the compiler will reject it.
Example:
| Type | The TextureType this handle represents |
Definition at line 75 of file TextureHandle.h.
|
default |
|
inlineexplicit |
Construct from a base TextureHandle.
Asserts that the base handle's type matches the template type.
Definition at line 84 of file TextureHandle.h.
|
inlinenodiscard |
Get the underlying base handle.
Definition at line 97 of file TextureHandle.h.
|
inlinenodiscard |
Get the registry ID for this handle.
Definition at line 102 of file TextureHandle.h.
Referenced by EngineCore::RenderingDataManager::uploadMaterialBuffers().
|
inlinestaticnodiscardconstexpr |
Get the texture type (compile-time constant)
Definition at line 107 of file TextureHandle.h.
|
inlinenodiscard |
Check if this handle points to a valid registry entry.
Definition at line 92 of file TextureHandle.h.
Referenced by EngineCore::RenderingDataManager::uploadMaterialBuffers().
|
inline |
Implicit conversion to base handle for storage/runtime use.
Definition at line 112 of file TextureHandle.h.
|
inline |
Definition at line 118 of file TextureHandle.h.
|
inline |
Definition at line 114 of file TextureHandle.h.
|
private |
Definition at line 123 of file TextureHandle.h.
Referenced by EngineCore::TypedTextureHandle< TextureType::BaseColor >::operator==().