Skip to content

Engine → Renderer → environment_asset.h

cubemap_data

Syntax

struct CONJURE_API cubemap_data

Variables

AccessNameTypeDefaultDescription
publicmipCountu320
publicsizeu320
publictexelsstd::vector<u16>{}

Functions

Public

face_length

[[nodiscard]] usize face_length(
    u32 mip) const noexcept;

Number of halves one face of a mip occupies.

face_offset

[[nodiscard]] usize face_offset(
    u32 mip,
    u32 face) const noexcept;

Index of the first half of a face of a mip inside texels.

is_consistent

[[nodiscard]] bool is_consistent() const noexcept;

True when texels has exactly the length the size and mip count imply.

mip_size

[[nodiscard]] u32 mip_size(
    u32 mip) const noexcept;

Edge of a mip (at least 1).

texel

[[nodiscard]] math::vec3 texel(
    u32 mip,
    u32 face,
    u32 x,
    u32 y) const noexcept;

The RGB radiance of a texel.

Operator Overloads

Public

operator==

[[nodiscard]] bool operator==(
    const cubemap_data &other) const noexcept = default;