Material Clustering Benchmark
ClusteringAlgorithms.WrapperArtificialReadback Class Reference

Runs the clustering function from the wrapped dispatcher and performs one (useless) readback after every iteration. Used to measure the impact of readback on frame times. More...

Inheritance diagram for ClusteringAlgorithms.WrapperArtificialReadback:
ClusteringAlgorithms.IDispatcher

Public Member Functions

void AttributeClustersKM (ClusteringTextures clusteringTextures)
 
void Dispose ()
 
float? GetVariance ()
 Computes variance for the current cluster centers. Depending on this.useFullResTexRef uses either working resolution (this.clusteringRTsAndBuffers.texturesWorkRes), or full resolution (this.clusteringRTsAndBuffers.texturesFullRes) input.

Sets incorrect attribution. Does not restore to save performance. More...
 
virtual void RunClustering (ClusteringTextures clusteringTextures)
 
void UpdateClusterCenters (ClusteringTextures clusteringTextures, bool rejectOld)
 
 WrapperArtificialReadback (ASimpleDispatcer wrappedDispatcher)
 

Properties

DispatcherParameters abstractParameters [get]
 
ClusteringRTsAndBuffers clusteringRTsAndBuffers [get]
 
bool doesReadback [get]
 
bool doRandomizeEmptyClusters [get]
 
virtual string name [get]
 
int numIterations [get]
 
bool useFullResTexRef [get]
 
bool usesStopCondition [get]
 
int warningCounter [get]
 

Detailed Description

Runs the clustering function from the wrapped dispatcher and performs one (useless) readback after every iteration. Used to measure the impact of readback on frame times.

Definition at line 8 of file WrapperArtificialReadback.cs.

Constructor & Destructor Documentation

◆ WrapperArtificialReadback()

ClusteringAlgorithms.WrapperArtificialReadback.WrapperArtificialReadback ( ASimpleDispatcer  wrappedDispatcher)
inline

Definition at line 12 of file WrapperArtificialReadback.cs.

Member Function Documentation

◆ AttributeClustersKM()

void ClusteringAlgorithms.WrapperArtificialReadback.AttributeClustersKM ( ClusteringTextures  clusteringTextures)
inline

Implements ClusteringAlgorithms.IDispatcher.

Definition at line 57 of file WrapperArtificialReadback.cs.

◆ Dispose()

void ClusteringAlgorithms.WrapperArtificialReadback.Dispose ( )
inline

Definition at line 33 of file WrapperArtificialReadback.cs.

◆ GetVariance()

float? ClusteringAlgorithms.WrapperArtificialReadback.GetVariance ( )
inline

Computes variance for the current cluster centers. Depending on this.useFullResTexRef uses either working resolution (this.clusteringRTsAndBuffers.texturesWorkRes), or full resolution (this.clusteringRTsAndBuffers.texturesFullRes) input.

Sets incorrect attribution. Does not restore to save performance.

Implements ClusteringAlgorithms.IDispatcher.

Definition at line 64 of file WrapperArtificialReadback.cs.

◆ RunClustering()

virtual void ClusteringAlgorithms.WrapperArtificialReadback.RunClustering ( ClusteringTextures  clusteringTextures)
inlinevirtual

Implements ClusteringAlgorithms.IDispatcher.

Definition at line 69 of file WrapperArtificialReadback.cs.

◆ UpdateClusterCenters()

void ClusteringAlgorithms.WrapperArtificialReadback.UpdateClusterCenters ( ClusteringTextures  clusteringTextures,
bool  rejectOld 
)
inline

Implements ClusteringAlgorithms.IDispatcher.

Definition at line 49 of file WrapperArtificialReadback.cs.

Property Documentation

◆ abstractParameters

DispatcherParameters ClusteringAlgorithms.WrapperArtificialReadback.abstractParameters
get

Implements ClusteringAlgorithms.IDispatcher.

Definition at line 47 of file WrapperArtificialReadback.cs.

◆ clusteringRTsAndBuffers

ClusteringRTsAndBuffers ClusteringAlgorithms.WrapperArtificialReadback.clusteringRTsAndBuffers
get

Implements ClusteringAlgorithms.IDispatcher.

Definition at line 45 of file WrapperArtificialReadback.cs.

◆ doesReadback

bool ClusteringAlgorithms.WrapperArtificialReadback.doesReadback
get

Implements ClusteringAlgorithms.IDispatcher.

Definition at line 39 of file WrapperArtificialReadback.cs.

◆ doRandomizeEmptyClusters

bool ClusteringAlgorithms.WrapperArtificialReadback.doRandomizeEmptyClusters
get

Implements ClusteringAlgorithms.IDispatcher.

Definition at line 43 of file WrapperArtificialReadback.cs.

◆ name

virtual string ClusteringAlgorithms.WrapperArtificialReadback.name
get

Implements ClusteringAlgorithms.IDispatcher.

Definition at line 42 of file WrapperArtificialReadback.cs.

◆ numIterations

int ClusteringAlgorithms.WrapperArtificialReadback.numIterations
get

Implements ClusteringAlgorithms.IDispatcher.

Definition at line 44 of file WrapperArtificialReadback.cs.

◆ useFullResTexRef

bool ClusteringAlgorithms.WrapperArtificialReadback.useFullResTexRef
get

Implements ClusteringAlgorithms.IDispatcher.

Definition at line 62 of file WrapperArtificialReadback.cs.

◆ usesStopCondition

bool ClusteringAlgorithms.WrapperArtificialReadback.usesStopCondition
get

Implements ClusteringAlgorithms.IDispatcher.

Definition at line 38 of file WrapperArtificialReadback.cs.

◆ warningCounter

int ClusteringAlgorithms.WrapperArtificialReadback.warningCounter
get

Implements ClusteringAlgorithms.IDispatcher.

Definition at line 40 of file WrapperArtificialReadback.cs.


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