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

Public Member Functions

 ASimpleDispatcer (ComputeShader computeShader, int numIterations, bool doRandomizeEmptyClusters, bool useFullResTexRef, ClusteringRTsAndBuffers clusteringRTsAndBuffers)
 
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)
 
abstract void SingleIteration (ClusteringTextures textures)
 
void UpdateClusterCenters (ClusteringTextures clusteringTextures, bool rejectOld)
 

Public Attributes

readonly ComputeShader computeShader
 

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]
 
override bool usesStopCondition [get]
 
int warningCounter [get]
 

Detailed Description

Definition at line 5 of file ASimpleDispatcher.cs.

Constructor & Destructor Documentation

◆ ASimpleDispatcer()

ClusteringAlgorithms.ASimpleDispatcer.ASimpleDispatcer ( ComputeShader  computeShader,
int  numIterations,
bool  doRandomizeEmptyClusters,
bool  useFullResTexRef,
ClusteringRTsAndBuffers  clusteringRTsAndBuffers 
)
inline

Definition at line 7 of file ASimpleDispatcher.cs.

Member Function Documentation

◆ AttributeClustersKHM()

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

Definition at line 118 of file ADispatcher.cs.

◆ AttributeClustersKM()

void ClusteringAlgorithms.ADispatcher.AttributeClustersKM ( ClusteringTextures  clusteringTextures)
inlineinherited

Implements ClusteringAlgorithms.IDispatcher.

Definition at line 87 of file ADispatcher.cs.

◆ Dispose()

virtual void ClusteringAlgorithms.ADispatcher.Dispose ( )
inlinevirtualinherited

Definition at line 183 of file ADispatcher.cs.

◆ GetVariance()

float? ClusteringAlgorithms.ADispatcher.GetVariance ( )
inlineinherited

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()

◆ SingleIteration()

abstract void ClusteringAlgorithms.ASimpleDispatcer.SingleIteration ( ClusteringTextures  textures)
pure virtual

◆ UpdateClusterCenters()

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

Implements ClusteringAlgorithms.IDispatcher.

Definition at line 55 of file ADispatcher.cs.

Member Data Documentation

◆ computeShader

readonly ComputeShader ClusteringAlgorithms.ADispatcher.computeShader
inherited

Definition at line 28 of file ADispatcher.cs.

Property Documentation

◆ abstractParameters

virtual DispatcherParameters ClusteringAlgorithms.ADispatcher.abstractParameters
getinherited

Implements ClusteringAlgorithms.IDispatcher.

Definition at line 15 of file ADispatcher.cs.

◆ clusteringRTsAndBuffers

ClusteringRTsAndBuffers ClusteringAlgorithms.ADispatcher.clusteringRTsAndBuffers
getinherited

Implements ClusteringAlgorithms.IDispatcher.

Definition at line 11 of file ADispatcher.cs.

◆ doesReadback

abstract bool ClusteringAlgorithms.ADispatcher.doesReadback
getinherited

Implements ClusteringAlgorithms.IDispatcher.

Definition at line 18 of file ADispatcher.cs.

◆ doRandomizeEmptyClusters

bool ClusteringAlgorithms.ADispatcher.doRandomizeEmptyClusters
getinherited

Implements ClusteringAlgorithms.IDispatcher.

Definition at line 9 of file ADispatcher.cs.

◆ name

abstract string ClusteringAlgorithms.ADispatcher.name
getinherited

Implements ClusteringAlgorithms.IDispatcher.

Definition at line 13 of file ADispatcher.cs.

◆ numIterations

int ClusteringAlgorithms.ADispatcher.numIterations
getinherited

Implements ClusteringAlgorithms.IDispatcher.

Definition at line 10 of file ADispatcher.cs.

◆ useFullResTexRef

bool ClusteringAlgorithms.ADispatcher.useFullResTexRef
getinherited

Implements ClusteringAlgorithms.IDispatcher.

Definition at line 150 of file ADispatcher.cs.

◆ usesStopCondition

override bool ClusteringAlgorithms.ASimpleDispatcer.usesStopCondition
get

Implements ClusteringAlgorithms.IDispatcher.

Definition at line 24 of file ASimpleDispatcher.cs.

◆ warningCounter

int ClusteringAlgorithms.ADispatcher.warningCounter
getinherited

Implements ClusteringAlgorithms.IDispatcher.

Definition at line 21 of file ADispatcher.cs.


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