8 private const int textureSize = 64;
9 private const bool doRandomizeEmptyClusters =
false;
13 UnityEngine.Video.VideoClip[]
videos,
21 for (
int i = 0; i < 5; i++)
23 foreach (UnityEngine.Video.VideoClip video in
this.videos)
27 const int numIterations = 3;
30 workList.dispatches.Push(
32 staggeredJitter:
false,
37 numIterations: numIterations,
38 doRandomizeEmptyClusters: doRandomizeEmptyClusters,
39 useFullResTexRef:
false,
42 workingSize: textureSize,
51 workList.dispatches.Push(
53 staggeredJitter:
false,
57 computeShader: this.csHighlightRemoval,
58 numIterations: numIterations,
59 doRandomizeEmptyClusters,
60 useFullResTexRef:
false,
64 workingSize: textureSize,
72 foreach (
bool doReadback
in new bool[] {
true,
false })
75 workList.dispatches.Push(
77 staggeredJitter:
false,
82 numIterations: numIterations,
83 doRandomizeEmptyClusters: doRandomizeEmptyClusters,
84 useFullResTexRef:
false,
86 doReadback: doReadback,
89 workingSize: textureSize,
101 const int numIterations = 2;
104 workList.dispatches.Push(
106 staggeredJitter:
false,
111 numIterations: numIterations,
112 doRandomizeEmptyClusters: doRandomizeEmptyClusters,
113 useFullResTexRef:
false,
116 workingSize: textureSize,
124 workList.dispatches.Push(
126 staggeredJitter:
false,
131 computeShader: this.csHighlightRemoval,
132 numIterations: numIterations,
133 doRandomizeEmptyClusters: doRandomizeEmptyClusters,
134 useFullResTexRef:
false,
137 workingSize: textureSize,
147 workList.dispatches.Push(
149 staggeredJitter:
false,
153 computeShader: this.csHighlightRemoval,
154 numIterations: numIterations,
155 doRandomizeEmptyClusters: doRandomizeEmptyClusters,
156 useFullResTexRef:
false,
160 workingSize: textureSize,
168 workList.dispatches.Push(
170 staggeredJitter:
false,
175 computeShader: this.csHighlightRemoval,
176 numIterations: numIterations,
177 doRandomizeEmptyClusters: doRandomizeEmptyClusters,
178 useFullResTexRef:
false,
182 workingSize: textureSize,
195 textureSize: textureSize,
204 private static void AddStopCondtion(
206 UnityEngine.Video.VideoClip video,
214 staggeredJitter:
false,
219 doRandomizeEmptyClusters: doRandomizeEmptyClusters,
222 workingSize: textureSize,
233 staggeredJitter:
false,
238 doRandomizeEmptyClusters: doRandomizeEmptyClusters,
239 useFullResTexRef:
false,
243 workingSize: textureSize,
254 staggeredJitter:
false,
260 doRandomizeEmptyClusters: doRandomizeEmptyClusters,
261 useFullResTexRef:
false,
265 workingSize: textureSize,
277 staggeredJitter:
false,
283 doRandomizeEmptyClusters: doRandomizeEmptyClusters,
284 useFullResTexRef:
false,
289 workingSize: textureSize,
readonly ComputeShader csHighlightRemoval
readonly UnityEngine.Video.VideoClip[] videos
readonly Stack< LaunchParameters > dispatches
override BenchmarkDescription GenerateBenchmark()
FrameTime(int kernelSize, UnityEngine.Video.VideoClip[] videos, ComputeShader csHighlightRemoval)
Call Dispose after using.
Call Allocate before using and Dispose after using.
static Parameters Default()
Default value of Parameters.p is 2.5, which we experimentally confirmed to be optimal for our dataset...
Runs the clustering function from the wrapped dispatcher and performs one (useless) readback after ev...
const int fullTextureSize