Engine → Renderer → environment_asset.h
environment_asset
Syntax
class CONJURE_API environment_asset
Constructors
Destructors
| Access | Signature | Description |
| public | ~environment_asset(); | |
Variables
| Access | Name | Type | Default | Description |
| private | mIrradiance | sh9 | {} | |
| private | mName | std::string | {} | |
| private | mPrefiltered | cubemap_data | {} | |
| private | mSky | cubemap_data | {} | |
Functions
Public
gpu_byte_size
[[nodiscard]] u64 gpu_byte_size() const noexcept;
Bytes of both cubemaps together.
irradiance
[[nodiscard]] const sh9 &irradiance() const noexcept;
name
[[nodiscard]] std::string_view name() const noexcept;
parse_blob
Parses a .cenv blob. Fails with renderer_error::INVALID_ASSET naming the problem, including a cubemap whose mip count exceeds the chain of its size (bit_width(size) levels).
prefiltered
[[nodiscard]] const cubemap_data &prefiltered() const noexcept;
set_name
void set_name(
std::string name);
sky
A uniform grey environment (the fallback): constant sky and prefiltered chains of the given radiance, SH band 0 matching, tiny cubemaps.
write_blob
[[nodiscard]] std::vector<std::byte> write_blob() const;
Operator Overloads
Public
operator=
operator==