Toast Engine
Loading...
Searching...
No Matches
assets::Shader Class Reference
Inheritance diagram for assets::Shader:
Collaboration diagram for assets::Shader:

Public Member Functions

 Shader (std::vector< uint8_t > data)
auto type () const -> std::string_view override
auto source () const noexcept -> const std::string &
void setSource (std::vector< uint8_t > data) noexcept
 Replaces the source in place on hot reload.
Public Member Functions inherited from assets::Asset
 Asset (const Asset &)=delete
auto operator= (const Asset &) -> Asset &=delete
auto refCount () const noexcept -> uint32_t

Additional Inherited Members

Protected Member Functions inherited from assets::Asset
void addRef () noexcept
void release () noexcept

Member Function Documentation

◆ type()

auto assets::Shader::type ( ) const -> std::string_view
inlinenodiscardoverridevirtual

Implements assets::Asset.


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