Loading...
Searching...
No Matches

Classes

struct  Bake
 
struct  BakeSource
 
struct  CachedView
 
struct  ins
 
struct  outs
 

Public Types

enum  InstanceTransformMode { FullMatrix , TranslationOnly }
 
enum  BakeSourceIndex {
  BakeTransforms , BakeRotations , BakeScales , BakeColors ,
  BakeCustom , BakeSourceCount
}
 

Public Member Functions

 halp_meta (name, "Instancer") halp_meta(category
 
Visuals Scene halp_meta (c_name, "instancer") halp_meta(description
 
void rebuild ()
 
void operator() ()
 
void init (score::gfx::RenderList &r, QRhiResourceUpdateBatch &res)
 
void update (score::gfx::RenderList &r, QRhiResourceUpdateBatch &res, score::gfx::Edge *e)
 
void runInitialPasses (score::gfx::RenderList &r, QRhiCommandBuffer &cb, QRhiResourceUpdateBatch *&res, score::gfx::Edge &e)
 
void release (score::gfx::RenderList &r)
 
bool refresh ()
 
bool ensureBakeTarget (QRhiBuffer *&buf, quint32 bytes, const char *name)
 
bool prepareBake (const BakeSource(&sources)[BakeSourceCount], uint32_t transform_kind, uint32_t &count, bool full, const QMatrix4x4 &proto)
 

Static Public Member Functions

static CachedView viewOf (const halp::gpu_buffer &b) noexcept
 

Public Attributes

struct Threedim::Instancer::ins inputs
 
struct Threedim::Instancer::outs outputs
 
std::shared_ptr< ossia::scene_state > m_wrapped_state
 
uint8_t m_pending_dirty {0xFF}
 
CachedTRS m_cachedTRS {}
 
const ossia::scene_state * m_cached_in_state {}
 
CachedView m_cached_transforms {}
 
CachedView m_cached_colors {}
 
CachedView m_cached_custom {}
 
int32_t m_cached_count {-1}
 
int m_cached_format {-1}
 
void * m_cached_points_buf {}
 
int64_t m_cached_points_vertices {-1}
 
uintptr_t m_cached_points_fingerprint {}
 
int64_t m_version_counter {0}
 
score::gfx::GpuResourceRegistry::Slot raw_transform_slot
 
ossia::gpu_slot_ref m_xform_ref {}
 
QRhi * m_rhi {}
 
Bake m_bake {}
 
bool m_baking {}
 
QRhiBuffer * m_bakedTransforms {}
 
QRhiBuffer * m_bakedColors {}
 
QRhiBuffer * m_bakedCustom {}
 
QRhiBuffer * m_bakeParams {}
 
QRhiBuffer * m_bakeDummy {}
 
QRhiShaderResourceBindings * m_bakeSrb {}
 
QRhiComputePipeline * m_bakePipeline {}
 
bool m_bakeSrbDirty {true}
 
bool m_warnedBakeFallback {}
 

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