@@ -228,8 +228,10 @@ static bool fillInputBuffer(LPCSTR Name, std::vector<BYTE> &Data,
228228 return false ;
229229}
230230
231- static VariantCompType makeExpected (ComponentType CompType, int32_t M, int32_t N,
232- float StartingVal, bool Increment = true , bool Transpose = false ) {
231+ static VariantCompType makeExpected (ComponentType CompType, int32_t M,
232+ int32_t N, float StartingVal,
233+ bool Increment = true ,
234+ bool Transpose = false ) {
233235 int32_t NumElements = M * N;
234236 std::vector<float > Floats (NumElements);
235237 std::vector<int32_t > Ints (NumElements);
@@ -249,7 +251,8 @@ static VariantCompType makeExpected(ComponentType CompType, int32_t M, int32_t N
249251 Ints[Idx] = static_cast <int32_t >(StartingVal) + (Increment ? Value : 0 );
250252 break ;
251253 case ComponentType::F16: {
252- // Downcasting is safe here since HLSLHalf_t will clamp if F is too large.
254+ // Downcasting is safe here since HLSLHalf_t will clamp if F is too
255+ // large.
253256 float F = StartingVal + static_cast <float >(Increment ? Value : 0 );
254257 Halfs[Idx] = HLSLHalf_t (F);
255258 break ;
@@ -259,15 +262,15 @@ static VariantCompType makeExpected(ComponentType CompType, int32_t M, int32_t N
259262 }
260263
261264 switch (CompType) {
262- case ComponentType::F32:
263- return Floats;
264- case ComponentType::I32:
265- return Ints;
266- case ComponentType::F16:
267- return Halfs;
268- default :
269- DXASSERT (false , " Unable to fill unexpected ComponentType" );
270- return Floats;
265+ case ComponentType::F32:
266+ return Floats;
267+ case ComponentType::I32:
268+ return Ints;
269+ case ComponentType::F16:
270+ return Halfs;
271+ default :
272+ DXASSERT (false , " Unable to fill unexpected ComponentType" );
273+ return Floats;
271274 }
272275}
273276
@@ -527,7 +530,8 @@ static void runSplatStore(ID3D12Device *Device,
527530 return ;
528531 }
529532
530- auto Expected = makeExpected (Params.CompType , Params.M , Params.N , FillValue, false );
533+ auto Expected =
534+ makeExpected (Params.CompType , Params.M , Params.N , FillValue, false );
531535
532536 auto Op = createComputeOp (SplatStoreShader, Target.c_str (), " UAV(u0)" ,
533537 Args.c_str ());
0 commit comments