Skip to content

ludus::graphics::rhi::ComputeCacheKey

Ludus Wiki · API overview · Browse API

Struct

Caller-owned semantic revisions. Scene includes geometry, instances, materials, lights, environment and preprocessing settings; Model includes weights and layout. Both must be nonzero. Reusing a key promises identical inputs, never pointer equality. Camera and image dimensions need not enter a view-independent encoding's scene revision.

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/compute_cache.hpp

#include <ludus/graphics/rhi/compute_cache.hpp>
struct ludus::graphics::rhi::ComputeCacheKey final

Fields

Scene

foundation::uint64 ludus::graphics::rhi::ComputeCacheKey::Scene = 0
Complete source/preprocessing revision.

Related types: foundation::uint64

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/compute_cache.hpp

Model

foundation::uint64 ludus::graphics::rhi::ComputeCacheKey::Model = 0
Complete learned weights/kernel/layout revision.

Related types: foundation::uint64

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/compute_cache.hpp

Methods

operator==

LUDUS_INLINE bool ludus::graphics::rhi::ComputeCacheKey::operator==(const ComputeCacheKey &) const noexcept=default
Compare revision identities without inspecting source data.

Related types: ComputeCacheKey

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/compute_cache.hpp