Skip to content

Commit

Permalink
Use variadic Append for stackarraytest.
Browse files Browse the repository at this point in the history
  • Loading branch information
Duttenheim committed Aug 24, 2023
1 parent e491818 commit 45f2418
Show file tree
Hide file tree
Showing 75 changed files with 8,641 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testfoundation/stackarraytest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ StackArrayTest::Run()

// test Sort()
array0.Clear();
array0.Append(4); array0.Append(2); array0.Append(1); array0.Append(3);
array0.Append(4, 2, 1, 3);
array0.Sort();
VERIFY(array0[0] == 1);
VERIFY(array0[1] == 2);
Expand Down
Binary file added work/assets/Sponza/10381718147657362067.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added work/assets/Sponza/10388182081421875623.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added work/assets/Sponza/11474523244911310074.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added work/assets/Sponza/11490520546946913238.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added work/assets/Sponza/11872827283454512094.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added work/assets/Sponza/11968150294050148237.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added work/assets/Sponza/1219024358953944284.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added work/assets/Sponza/12501374198249454378.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added work/assets/Sponza/13196865903111448057.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added work/assets/Sponza/13824894030729245199.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added work/assets/Sponza/13982482287905699490.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added work/assets/Sponza/14118779221266351425.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added work/assets/Sponza/14170708867020035030.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added work/assets/Sponza/14267839433702832875.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added work/assets/Sponza/14650633544276105767.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added work/assets/Sponza/15295713303328085182.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added work/assets/Sponza/15722799267630235092.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added work/assets/Sponza/16275776544635328252.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added work/assets/Sponza/16299174074766089871.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added work/assets/Sponza/16885566240357350108.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added work/assets/Sponza/17556969131407844942.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added work/assets/Sponza/17876391417123941155.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added work/assets/Sponza/2051777328469649772.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added work/assets/Sponza/2185409758123873465.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added work/assets/Sponza/2299742237651021498.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added work/assets/Sponza/2374361008830720677.jpg
Binary file added work/assets/Sponza/2411100444841994089.jpg
Binary file added work/assets/Sponza/2775690330959970771.jpg
Binary file added work/assets/Sponza/2969916736137545357.jpg
Binary file added work/assets/Sponza/332936164838540657.jpg
Binary file added work/assets/Sponza/3371964815757888145.jpg
Binary file added work/assets/Sponza/3455394979645218238.jpg
Binary file added work/assets/Sponza/3628158980083700836.jpg
Binary file added work/assets/Sponza/3827035219084910048.jpg
Binary file added work/assets/Sponza/4477655471536070370.jpg
Binary file added work/assets/Sponza/4601176305987539675.jpg
Binary file added work/assets/Sponza/466164707995436622.jpg
Binary file added work/assets/Sponza/4675343432951571524.jpg
Binary file added work/assets/Sponza/4871783166746854860.jpg
Binary file added work/assets/Sponza/4910669866631290573.jpg
Binary file added work/assets/Sponza/4975155472559461469.jpg
Binary file added work/assets/Sponza/5061699253647017043.png
Binary file added work/assets/Sponza/5792855332885324923.jpg
Binary file added work/assets/Sponza/5823059166183034438.jpg
Binary file added work/assets/Sponza/6047387724914829168.jpg
Binary file added work/assets/Sponza/6151467286084645207.jpg
Binary file added work/assets/Sponza/6593109234861095314.jpg
Binary file added work/assets/Sponza/6667038893015345571.jpg
Binary file added work/assets/Sponza/6772804448157695701.jpg
Binary file added work/assets/Sponza/7056944414013900257.jpg
Binary file added work/assets/Sponza/715093869573992647.jpg
Binary file added work/assets/Sponza/7268504077753552595.jpg
Binary file added work/assets/Sponza/7441062115984513793.jpg
Binary file added work/assets/Sponza/755318871556304029.jpg
Binary file added work/assets/Sponza/759203620573749278.jpg
Binary file added work/assets/Sponza/7645212358685992005.jpg
Binary file added work/assets/Sponza/7815564343179553343.jpg
Binary file added work/assets/Sponza/8006627369776289000.png
Binary file added work/assets/Sponza/8051790464816141987.jpg
Binary file added work/assets/Sponza/8114461559286000061.jpg
Binary file added work/assets/Sponza/8481240838833932244.jpg
Binary file added work/assets/Sponza/8503262930880235456.jpg
Binary file added work/assets/Sponza/8747919177698443163.jpg
Binary file added work/assets/Sponza/8750083169368950601.jpg
Binary file added work/assets/Sponza/8773302468495022225.jpg
Binary file added work/assets/Sponza/8783994986360286082.jpg
Binary file added work/assets/Sponza/9288698199695299068.jpg
Binary file added work/assets/Sponza/9916269861720640319.jpg
31 changes: 31 additions & 0 deletions work/assets/Sponza/Sponza.attributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8" ?>
<Nebula version="1">
<Options exportFlags="4" scale="1.000000" />
<States>
<ModelNode name="root/unnamed:0" material="sur:Sponza/Sponza/unnamed_0.sur" />
<ModelNode name="root/unnamed:101" material="sur:Sponza/Sponza/unnamed_24.sur" />
<ModelNode name="root/unnamed:12" material="sur:Sponza/Sponza/unnamed_10.sur" />
<ModelNode name="root/unnamed:21" material="sur:Sponza/Sponza/unnamed_7.sur" />
<ModelNode name="root/unnamed:3" material="sur:Sponza/Sponza/unnamed_4.sur" />
<ModelNode name="root/unnamed:38" material="sur:Sponza/Sponza/unnamed_11.sur" />
<ModelNode name="root/unnamed:4" material="sur:Sponza/Sponza/unnamed_5.sur" />
<ModelNode name="root/unnamed:46" material="sur:Sponza/Sponza/unnamed_9.sur" />
<ModelNode name="root/unnamed:49" material="sur:Sponza/Sponza/unnamed_12.sur" />
<ModelNode name="root/unnamed:5" material="sur:Sponza/Sponza/unnamed_6.sur" />
<ModelNode name="root/unnamed:50" material="sur:Sponza/Sponza/unnamed_2.sur" />
<ModelNode name="root/unnamed:59" material="sur:Sponza/Sponza/unnamed_14.sur" />
<ModelNode name="root/unnamed:60" material="sur:Sponza/Sponza/unnamed_16.sur" />
<ModelNode name="root/unnamed:61" material="sur:Sponza/Sponza/unnamed_15.sur" />
<ModelNode name="root/unnamed:62" material="sur:Sponza/Sponza/unnamed_13.sur" />
<ModelNode name="root/unnamed:67" material="sur:Sponza/Sponza/unnamed_19.sur" />
<ModelNode name="root/unnamed:68" material="sur:Sponza/Sponza/unnamed_18.sur" />
<ModelNode name="root/unnamed:7" material="sur:Sponza/Sponza/unnamed_8.sur" />
<ModelNode name="root/unnamed:72" material="sur:Sponza/Sponza/unnamed_17.sur" />
<ModelNode name="root/unnamed:73" material="sur:Sponza/Sponza/unnamed_20.sur" />
<ModelNode name="root/unnamed:74" material="sur:Sponza/Sponza/unnamed_21.sur" />
<ModelNode name="root/unnamed:84" material="sur:Sponza/Sponza/unnamed_1.sur" />
<ModelNode name="root/unnamed:91" material="sur:Sponza/Sponza/unnamed_3.sur" />
<ModelNode name="root/unnamed:95" material="sur:Sponza/Sponza/unnamed_22.sur" />
<ModelNode name="root/unnamed:98" material="sur:Sponza/Sponza/unnamed_23.sur" />
</States>
</Nebula>
Binary file added work/assets/Sponza/Sponza.bin
Binary file not shown.
32 changes: 32 additions & 0 deletions work/assets/Sponza/Sponza.constants
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8" ?>
<Nebula version="4">
<Model name="Sponza/Sponza" bboxcenter="-60.518921,651.495361,-38.690552,1.000000" bboxextents="1860.427002,777.937866,1144.116577,0.000000">
<ShapeNodes>
<ShapeNode name="unnamed:50" path="root/unnamed:50" useLOD="false" position="0.000000,0.000000,0.000000,1.000000" rotation="0.000000,0.000000,0.000000,1.000000" scale="1.000000,1.000000,1.000000,0.000000" bboxcenter="-63.835102,302.464172,572.081787,1.000000" bboxextents="55.572201,45.733200,3.423401,0.000000" mesh="msh:Sponza/Sponza.nvx" mid="0" primitive="0" />
<ShapeNode name="unnamed:0" path="root/unnamed:0" useLOD="false" position="0.000000,0.000000,0.000000,1.000000" rotation="0.000000,0.000000,0.000000,1.000000" scale="1.000000,1.000000,1.000000,0.000000" bboxcenter="-64.518921,98.526253,-37.346954,1.000000" bboxextents="615.745300,126.575851,303.789246,0.000000" mesh="msh:Sponza/Sponza.nvx" mid="1" primitive="1" />
<ShapeNode name="unnamed:84" path="root/unnamed:84" useLOD="false" position="0.000000,0.000000,0.000000,1.000000" rotation="0.000000,0.000000,0.000000,1.000000" scale="1.000000,1.000000,1.000000,0.000000" bboxcenter="-65.721680,26.084400,-36.166138,1.000000" bboxextents="925.017212,30.115101,215.476959,0.000000" mesh="msh:Sponza/Sponza.nvx" mid="1" primitive="2" />
<ShapeNode name="unnamed:12" path="root/unnamed:12" useLOD="false" position="0.000000,0.000000,0.000000,1.000000" rotation="0.000000,0.000000,0.000000,1.000000" scale="1.000000,1.000000,1.000000,0.000000" bboxcenter="-63.516602,438.987549,-35.621216,1.000000" bboxextents="1366.788574,256.335266,611.346680,0.000000" mesh="msh:Sponza/Sponza.nvx" mid="1" primitive="3" />
<ShapeNode name="unnamed:38" path="root/unnamed:38" useLOD="false" position="0.000000,0.000000,0.000000,1.000000" rotation="0.000000,0.000000,0.000000,1.000000" scale="1.000000,1.000000,1.000000,0.000000" bboxcenter="402.920593,357.317535,-23.262451,1.000000" bboxextents="912.603882,359.533051,628.276062,0.000000" mesh="msh:Sponza/Sponza.nvx" mid="1" primitive="4" />
<ShapeNode name="unnamed:49" path="root/unnamed:49" useLOD="false" position="0.000000,0.000000,0.000000,1.000000" rotation="0.000000,0.000000,0.000000,1.000000" scale="1.000000,1.000000,1.000000,0.000000" bboxcenter="-65.122314,603.122498,-37.466064,1.000000" bboxextents="972.529297,96.489304,272.239441,0.000000" mesh="msh:Sponza/Sponza.nvx" mid="1" primitive="5" />
<ShapeNode name="unnamed:62" path="root/unnamed:62" useLOD="false" position="0.000000,0.000000,0.000000,1.000000" rotation="0.000000,0.000000,0.000000,1.000000" scale="1.000000,1.000000,1.000000,0.000000" bboxcenter="-64.201965,580.549316,-40.294312,1.000000" bboxextents="894.495850,305.589691,249.409302,0.000000" mesh="msh:Sponza/Sponza.nvx" mid="1" primitive="6" />
<ShapeNode name="unnamed:59" path="root/unnamed:59" useLOD="false" position="0.000000,0.000000,0.000000,1.000000" rotation="0.000000,0.000000,0.000000,1.000000" scale="1.000000,1.000000,1.000000,0.000000" bboxcenter="-65.919006,430.018433,-36.120209,1.000000" bboxextents="717.875183,90.575439,288.406006,0.000000" mesh="msh:Sponza/Sponza.nvx" mid="1" primitive="7" />
<ShapeNode name="unnamed:61" path="root/unnamed:61" useLOD="false" position="0.000000,0.000000,0.000000,1.000000" rotation="0.000000,0.000000,0.000000,1.000000" scale="1.000000,1.000000,1.000000,0.000000" bboxcenter="-69.023499,430.018433,-36.120270,1.000000" bboxextents="717.875183,90.575439,288.405945,0.000000" mesh="msh:Sponza/Sponza.nvx" mid="1" primitive="8" />
<ShapeNode name="unnamed:60" path="root/unnamed:60" useLOD="false" position="0.000000,0.000000,0.000000,1.000000" rotation="0.000000,0.000000,0.000000,1.000000" scale="1.000000,1.000000,1.000000,0.000000" bboxcenter="-67.471191,430.018433,-36.120300,1.000000" bboxextents="350.821411,90.575439,288.405914,0.000000" mesh="msh:Sponza/Sponza.nvx" mid="1" primitive="9" />
<ShapeNode name="unnamed:72" path="root/unnamed:72" useLOD="false" position="0.000000,0.000000,0.000000,1.000000" rotation="0.000000,0.000000,0.000000,1.000000" scale="1.000000,1.000000,1.000000,0.000000" bboxcenter="121.276917,141.686050,-40.885956,1.000000" bboxextents="698.897095,141.994949,254.368439,0.000000" mesh="msh:Sponza/Sponza.nvx" mid="1" primitive="10" />
<ShapeNode name="unnamed:68" path="root/unnamed:68" useLOD="false" position="0.000000,0.000000,0.000000,1.000000" rotation="0.000000,0.000000,0.000000,1.000000" scale="1.000000,1.000000,1.000000,0.000000" bboxcenter="-63.031982,141.686050,-40.885956,1.000000" bboxextents="883.205933,141.994949,254.368439,0.000000" mesh="msh:Sponza/Sponza.nvx" mid="1" primitive="11" />
<ShapeNode name="unnamed:67" path="root/unnamed:67" useLOD="false" position="0.000000,0.000000,0.000000,1.000000" rotation="0.000000,0.000000,0.000000,1.000000" scale="1.000000,1.000000,1.000000,0.000000" bboxcenter="-249.102051,141.686050,-37.887207,1.000000" bboxextents="697.135864,141.994949,251.369690,0.000000" mesh="msh:Sponza/Sponza.nvx" mid="1" primitive="12" />
<ShapeNode name="unnamed:73" path="root/unnamed:73" useLOD="false" position="0.000000,0.000000,0.000000,1.000000" rotation="0.000000,0.000000,0.000000,1.000000" scale="1.000000,1.000000,1.000000,0.000000" bboxcenter="-65.786133,174.038101,-38.179398,1.000000" bboxextents="579.146973,40.316803,183.307800,0.000000" mesh="msh:Sponza/Sponza.nvx" mid="1" primitive="13" />
<ShapeNode name="unnamed:74" path="root/unnamed:74" useLOD="false" position="0.000000,0.000000,0.000000,1.000000" rotation="0.000000,0.000000,0.000000,1.000000" scale="1.000000,1.000000,1.000000,0.000000" bboxcenter="-65.786072,157.812103,-38.179352,1.000000" bboxextents="588.397705,59.139198,208.655151,0.000000" mesh="msh:Sponza/Sponza.nvx" mid="1" primitive="14" />
<ShapeNode name="unnamed:95" path="root/unnamed:95" useLOD="false" position="0.000000,0.000000,0.000000,1.000000" rotation="0.000000,0.000000,0.000000,1.000000" scale="1.000000,1.000000,1.000000,0.000000" bboxcenter="-41.251465,66.161705,-22.618896,1.000000" bboxextents="1235.421875,66.855103,500.880676,0.000000" mesh="msh:Sponza/Sponza.nvx" mid="1" primitive="15" />
<ShapeNode name="unnamed:98" path="root/unnamed:98" useLOD="false" position="0.000000,0.000000,0.000000,1.000000" rotation="0.000000,0.000000,0.000000,1.000000" scale="1.000000,1.000000,1.000000,0.000000" bboxcenter="-64.203979,172.333008,-35.919052,1.000000" bboxextents="1363.230347,92.428200,78.772446,0.000000" mesh="msh:Sponza/Sponza.nvx" mid="1" primitive="16" />
<ShapeNode name="unnamed:101" path="root/unnamed:101" useLOD="false" position="0.000000,0.000000,0.000000,1.000000" rotation="0.000000,0.000000,0.000000,1.000000" scale="1.000000,1.000000,1.000000,0.000000" bboxcenter="-60.518921,1354.973389,-38.690552,1.000000" bboxextents="1860.427002,74.459900,1144.116577,0.000000" mesh="msh:Sponza/Sponza.nvx" mid="1" primitive="17" />
<ShapeNode name="unnamed:91" path="root/unnamed:91" useLOD="false" position="0.000000,0.000000,0.000000,1.000000" rotation="0.000000,0.000000,0.000000,1.000000" scale="1.000000,1.000000,1.000000,0.000000" bboxcenter="-65.537292,57.721348,-36.992447,1.000000" bboxextents="927.423096,15.402248,224.844040,0.000000" mesh="msh:Sponza/Sponza.nvx" mid="1" primitive="18" />
<ShapeNode name="unnamed:3" path="root/unnamed:3" useLOD="false" position="0.000000,0.000000,0.000000,1.000000" rotation="0.000000,0.000000,0.000000,1.000000" scale="1.000000,1.000000,1.000000,0.000000" bboxcenter="-64.204102,399.685852,-37.379807,1.000000" bboxextents="1364.070801,358.867249,126.006699,0.000000" mesh="msh:Sponza/Sponza.nvx" mid="1" primitive="19" />
<ShapeNode name="unnamed:4" path="root/unnamed:4" useLOD="false" position="0.000000,0.000000,0.000000,1.000000" rotation="0.000000,0.000000,0.000000,1.000000" scale="1.000000,1.000000,1.000000,0.000000" bboxcenter="-60.145020,610.376648,-49.659668,1.000000" bboxextents="1806.837891,736.819153,1089.370850,0.000000" mesh="msh:Sponza/Sponza.nvx" mid="1" primitive="20" />
<ShapeNode name="unnamed:5" path="root/unnamed:5" useLOD="false" position="0.000000,0.000000,0.000000,1.000000" rotation="0.000000,0.000000,0.000000,1.000000" scale="1.000000,1.000000,1.000000,0.000000" bboxcenter="-65.470093,743.203369,-36.145905,1.000000" bboxextents="987.405640,531.807861,281.960083,0.000000" mesh="msh:Sponza/Sponza.nvx" mid="1" primitive="21" />
<ShapeNode name="unnamed:21" path="root/unnamed:21" useLOD="false" position="0.000000,0.000000,0.000000,1.000000" rotation="0.000000,0.000000,0.000000,1.000000" scale="1.000000,1.000000,1.000000,0.000000" bboxcenter="-63.625366,739.865784,-35.122803,1.000000" bboxextents="1365.827026,524.062195,610.025513,0.000000" mesh="msh:Sponza/Sponza.nvx" mid="1" primitive="22" />
<ShapeNode name="unnamed:7" path="root/unnamed:7" useLOD="false" position="0.000000,0.000000,0.000000,1.000000" rotation="0.000000,0.000000,0.000000,1.000000" scale="1.000000,1.000000,1.000000,0.000000" bboxcenter="-65.808228,109.268196,-35.127136,1.000000" bboxextents="991.411987,111.728897,281.742065,0.000000" mesh="msh:Sponza/Sponza.nvx" mid="1" primitive="23" />
<ShapeNode name="unnamed:46" path="root/unnamed:46" useLOD="false" position="0.000000,0.000000,0.000000,1.000000" rotation="0.000000,0.000000,0.000000,1.000000" scale="1.000000,1.000000,1.000000,0.000000" bboxcenter="-65.001709,206.512054,-35.622925,1.000000" bboxextents="1367.222656,209.018250,609.808105,0.000000" mesh="msh:Sponza/Sponza.nvx" mid="1" primitive="24" />
</ShapeNodes>
</Model>
</Nebula>
Loading

0 comments on commit 45f2418

Please sign in to comment.