OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
DrawClusters Class Reference

#include <drawclusters.h>

Classes

struct  Cluster
 

Public Types

using Bucket = DrawBuckets::Bucket
 

Public Member Functions

 DrawClusters ()
 
 ~DrawClusters ()
 
Clusteroperator[] (size_t i)
 
size_t size () const
 
void markClusters (size_t id, size_t count=1)
 
uint32_t alloc (const PackedMesh::Cluster *cluster, size_t firstMeshlet, size_t meshletCount, uint16_t bucketId, uint16_t commandId)
 
uint32_t alloc (const Bucket &bucket, size_t firstMeshlet, size_t meshletCount, uint16_t bucketId, uint16_t commandId)
 
void free (uint32_t id, uint32_t numCluster)
 
bool commit (Tempest::Encoder< Tempest::CommandBuffer > &cmd, uint8_t fId)
 
auto ssbo () -> Tempest::StorageBuffer &
 
auto ssbo () const -> const Tempest::StorageBuffer &
 

Detailed Description

Definition at line 10 of file drawclusters.h.

Member Typedef Documentation

◆ Bucket

Definition at line 15 of file drawclusters.h.

Constructor & Destructor Documentation

◆ DrawClusters()

DrawClusters::DrawClusters ( )

Definition at line 9 of file drawclusters.cpp.

◆ ~DrawClusters()

DrawClusters::~DrawClusters ( )

Definition at line 14 of file drawclusters.cpp.

Member Function Documentation

◆ alloc() [1/2]

uint32_t DrawClusters::alloc ( const Bucket bucket,
size_t  firstMeshlet,
size_t  meshletCount,
uint16_t  bucketId,
uint16_t  commandId 
)

Definition at line 40 of file drawclusters.cpp.

◆ alloc() [2/2]

uint32_t DrawClusters::alloc ( const PackedMesh::Cluster cluster,
size_t  firstMeshlet,
size_t  meshletCount,
uint16_t  bucketId,
uint16_t  commandId 
)

Definition at line 17 of file drawclusters.cpp.

◆ commit()

bool DrawClusters::commit ( Tempest::Encoder< Tempest::CommandBuffer > &  cmd,
uint8_t  fId 
)

Definition at line 83 of file drawclusters.cpp.

◆ free()

void DrawClusters::free ( uint32_t  id,
uint32_t  numCluster 
)

Definition at line 58 of file drawclusters.cpp.

◆ markClusters()

void DrawClusters::markClusters ( size_t  id,
size_t  count = 1 
)

Definition at line 183 of file drawclusters.cpp.

◆ operator[]()

Cluster & DrawClusters::operator[] ( size_t  i)
inline

Definition at line 27 of file drawclusters.h.

◆ size()

size_t DrawClusters::size ( ) const
inline

Definition at line 28 of file drawclusters.h.

◆ ssbo() [1/2]

auto DrawClusters::ssbo ( ) -> Tempest::StorageBuffer&
inline

Definition at line 37 of file drawclusters.h.

◆ ssbo() [2/2]

auto DrawClusters::ssbo ( ) const -> const Tempest::StorageBuffer&
inline

Definition at line 38 of file drawclusters.h.


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