Material Clustering Benchmark
ClusteringAlgorithms.ADispatcher Class Referenceabstract
Inheritance diagram for ClusteringAlgorithms.ADispatcher:
ClusteringAlgorithms.IDispatcher ClusteringAlgorithms.ASimpleDispatcer ClusteringAlgorithms.DispatcherKHMp ClusteringAlgorithms.DispatcherKM ClusteringAlgorithms.ADispatcherRS ClusteringAlgorithms.DispatcherRSfixed ClusteringAlgorithms.DispatcherRSstopCondition

Public Member Functions

void AttributeClustersKHM (ClusteringTextures clusteringTextures, float p)
 
void AttributeClustersKM (ClusteringTextures clusteringTextures)
 
virtual 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...
 
abstract void RunClustering (ClusteringTextures clusteringTextures)
 
void UpdateClusterCenters (ClusteringTextures clusteringTextures, bool rejectOld)
 

Public Attributes

readonly ComputeShader computeShader
 

Protected Member Functions

 ADispatcher (ComputeShader computeShader, int numIterations, bool doRandomizeEmptyClusters, bool useFullResTexRef, ClusteringRTsAndBuffers clusteringRTsAndBuffers)
 Takes ownership of the clusteringRTsAndBuffers More...
 

Properties

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

Detailed Description

Definition at line 6 of file ADispatcher.cs.

Constructor & Destructor Documentation

◆ ADispatcher()

ClusteringAlgorithms.ADispatcher.ADispatcher ( ComputeShader  computeShader,
int  numIterations,
bool  doRandomizeEmptyClusters,
bool  useFullResTexRef,
ClusteringRTsAndBuffers  clusteringRTsAndBuffers 
)
inlineprotected

Takes ownership of the clusteringRTsAndBuffers

Definition at line 35 of file ADispatcher.cs.

Member Function Documentation

◆ AttributeClustersKHM()

void ClusteringAlgorithms.ADispatcher.AttributeClustersKHM ( ClusteringTextures  clusteringTextures,
float  p 
)
inline

Definition at line 118 of file ADispatcher.cs.

◆ AttributeClustersKM()

void ClusteringAlgorithms.ADispatcher.AttributeClustersKM ( ClusteringTextures  clusteringTextures)
inline

Implements ClusteringAlgorithms.IDispatcher.

Definition at line 87 of file ADispatcher.cs.

◆ Dispose()

virtual void ClusteringAlgorithms.ADispatcher.Dispose ( )
inlinevirtual

Definition at line 183 of file ADispatcher.cs.

◆ GetVariance()

float? ClusteringAlgorithms.ADispatcher.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 152 of file ADispatcher.cs.

◆ RunClustering()

◆ UpdateClusterCenters()

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

Implements ClusteringAlgorithms.IDispatcher.

Definition at line 55 of file ADispatcher.cs.

Member Data Documentation

◆ computeShader

readonly ComputeShader ClusteringAlgorithms.ADispatcher.computeShader

Definition at line 28 of file ADispatcher.cs.

Property Documentation

◆ abstractParameters

virtual DispatcherParameters ClusteringAlgorithms.ADispatcher.abstractParameters
get

Implements ClusteringAlgorithms.IDispatcher.

Definition at line 15 of file ADispatcher.cs.

◆ clusteringRTsAndBuffers

ClusteringRTsAndBuffers ClusteringAlgorithms.ADispatcher.clusteringRTsAndBuffers
get

Implements ClusteringAlgorithms.IDispatcher.

Definition at line 11 of file ADispatcher.cs.

◆ doesReadback

abstract bool ClusteringAlgorithms.ADispatcher.doesReadback
get

Implements ClusteringAlgorithms.IDispatcher.

Definition at line 18 of file ADispatcher.cs.

◆ doRandomizeEmptyClusters

bool ClusteringAlgorithms.ADispatcher.doRandomizeEmptyClusters
get

Implements ClusteringAlgorithms.IDispatcher.

Definition at line 9 of file ADispatcher.cs.

◆ name

abstract string ClusteringAlgorithms.ADispatcher.name
get

Implements ClusteringAlgorithms.IDispatcher.

Definition at line 13 of file ADispatcher.cs.

◆ numIterations

int ClusteringAlgorithms.ADispatcher.numIterations
get

Implements ClusteringAlgorithms.IDispatcher.

Definition at line 10 of file ADispatcher.cs.

◆ useFullResTexRef

bool ClusteringAlgorithms.ADispatcher.useFullResTexRef
get

Implements ClusteringAlgorithms.IDispatcher.

Definition at line 150 of file ADispatcher.cs.

◆ usesStopCondition

abstract bool ClusteringAlgorithms.ADispatcher.usesStopCondition
get

Implements ClusteringAlgorithms.IDispatcher.

Definition at line 17 of file ADispatcher.cs.

◆ warningCounter

int ClusteringAlgorithms.ADispatcher.warningCounter
get

Implements ClusteringAlgorithms.IDispatcher.

Definition at line 21 of file ADispatcher.cs.


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