Ingen beskrivning
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

int4.gen.cs 166KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // This code was generated by a tool.
  4. //
  5. // Changes to this file may cause incorrect behavior and will be lost if
  6. // the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen.
  7. // </auto-generated>
  8. //------------------------------------------------------------------------------
  9. using System;
  10. using System.Runtime.CompilerServices;
  11. using System.Diagnostics;
  12. using Unity.IL2CPP.CompilerServices;
  13. #pragma warning disable 0660, 0661
  14. namespace Unity.Mathematics
  15. {
  16. /// <summary>A 4 component vector of ints.</summary>
  17. [DebuggerTypeProxy(typeof(int4.DebuggerProxy))]
  18. [System.Serializable]
  19. [Il2CppEagerStaticClassConstruction]
  20. public partial struct int4 : System.IEquatable<int4>, IFormattable
  21. {
  22. /// <summary>x component of the vector.</summary>
  23. public int x;
  24. /// <summary>y component of the vector.</summary>
  25. public int y;
  26. /// <summary>z component of the vector.</summary>
  27. public int z;
  28. /// <summary>w component of the vector.</summary>
  29. public int w;
  30. /// <summary>int4 zero value.</summary>
  31. public static readonly int4 zero;
  32. /// <summary>Constructs a int4 vector from four int values.</summary>
  33. /// <param name="x">The constructed vector's x component will be set to this value.</param>
  34. /// <param name="y">The constructed vector's y component will be set to this value.</param>
  35. /// <param name="z">The constructed vector's z component will be set to this value.</param>
  36. /// <param name="w">The constructed vector's w component will be set to this value.</param>
  37. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  38. public int4(int x, int y, int z, int w)
  39. {
  40. this.x = x;
  41. this.y = y;
  42. this.z = z;
  43. this.w = w;
  44. }
  45. /// <summary>Constructs a int4 vector from two int values and an int2 vector.</summary>
  46. /// <param name="x">The constructed vector's x component will be set to this value.</param>
  47. /// <param name="y">The constructed vector's y component will be set to this value.</param>
  48. /// <param name="zw">The constructed vector's zw components will be set to this value.</param>
  49. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  50. public int4(int x, int y, int2 zw)
  51. {
  52. this.x = x;
  53. this.y = y;
  54. this.z = zw.x;
  55. this.w = zw.y;
  56. }
  57. /// <summary>Constructs a int4 vector from an int value, an int2 vector and an int value.</summary>
  58. /// <param name="x">The constructed vector's x component will be set to this value.</param>
  59. /// <param name="yz">The constructed vector's yz components will be set to this value.</param>
  60. /// <param name="w">The constructed vector's w component will be set to this value.</param>
  61. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  62. public int4(int x, int2 yz, int w)
  63. {
  64. this.x = x;
  65. this.y = yz.x;
  66. this.z = yz.y;
  67. this.w = w;
  68. }
  69. /// <summary>Constructs a int4 vector from an int value and an int3 vector.</summary>
  70. /// <param name="x">The constructed vector's x component will be set to this value.</param>
  71. /// <param name="yzw">The constructed vector's yzw components will be set to this value.</param>
  72. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  73. public int4(int x, int3 yzw)
  74. {
  75. this.x = x;
  76. this.y = yzw.x;
  77. this.z = yzw.y;
  78. this.w = yzw.z;
  79. }
  80. /// <summary>Constructs a int4 vector from an int2 vector and two int values.</summary>
  81. /// <param name="xy">The constructed vector's xy components will be set to this value.</param>
  82. /// <param name="z">The constructed vector's z component will be set to this value.</param>
  83. /// <param name="w">The constructed vector's w component will be set to this value.</param>
  84. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  85. public int4(int2 xy, int z, int w)
  86. {
  87. this.x = xy.x;
  88. this.y = xy.y;
  89. this.z = z;
  90. this.w = w;
  91. }
  92. /// <summary>Constructs a int4 vector from two int2 vectors.</summary>
  93. /// <param name="xy">The constructed vector's xy components will be set to this value.</param>
  94. /// <param name="zw">The constructed vector's zw components will be set to this value.</param>
  95. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  96. public int4(int2 xy, int2 zw)
  97. {
  98. this.x = xy.x;
  99. this.y = xy.y;
  100. this.z = zw.x;
  101. this.w = zw.y;
  102. }
  103. /// <summary>Constructs a int4 vector from an int3 vector and an int value.</summary>
  104. /// <param name="xyz">The constructed vector's xyz components will be set to this value.</param>
  105. /// <param name="w">The constructed vector's w component will be set to this value.</param>
  106. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  107. public int4(int3 xyz, int w)
  108. {
  109. this.x = xyz.x;
  110. this.y = xyz.y;
  111. this.z = xyz.z;
  112. this.w = w;
  113. }
  114. /// <summary>Constructs a int4 vector from an int4 vector.</summary>
  115. /// <param name="xyzw">The constructed vector's xyzw components will be set to this value.</param>
  116. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  117. public int4(int4 xyzw)
  118. {
  119. this.x = xyzw.x;
  120. this.y = xyzw.y;
  121. this.z = xyzw.z;
  122. this.w = xyzw.w;
  123. }
  124. /// <summary>Constructs a int4 vector from a single int value by assigning it to every component.</summary>
  125. /// <param name="v">int to convert to int4</param>
  126. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  127. public int4(int v)
  128. {
  129. this.x = v;
  130. this.y = v;
  131. this.z = v;
  132. this.w = v;
  133. }
  134. /// <summary>Constructs a int4 vector from a single bool value by converting it to int and assigning it to every component.</summary>
  135. /// <param name="v">bool to convert to int4</param>
  136. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  137. public int4(bool v)
  138. {
  139. this.x = v ? 1 : 0;
  140. this.y = v ? 1 : 0;
  141. this.z = v ? 1 : 0;
  142. this.w = v ? 1 : 0;
  143. }
  144. /// <summary>Constructs a int4 vector from a bool4 vector by componentwise conversion.</summary>
  145. /// <param name="v">bool4 to convert to int4</param>
  146. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  147. public int4(bool4 v)
  148. {
  149. this.x = v.x ? 1 : 0;
  150. this.y = v.y ? 1 : 0;
  151. this.z = v.z ? 1 : 0;
  152. this.w = v.w ? 1 : 0;
  153. }
  154. /// <summary>Constructs a int4 vector from a single uint value by converting it to int and assigning it to every component.</summary>
  155. /// <param name="v">uint to convert to int4</param>
  156. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  157. public int4(uint v)
  158. {
  159. this.x = (int)v;
  160. this.y = (int)v;
  161. this.z = (int)v;
  162. this.w = (int)v;
  163. }
  164. /// <summary>Constructs a int4 vector from a uint4 vector by componentwise conversion.</summary>
  165. /// <param name="v">uint4 to convert to int4</param>
  166. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  167. public int4(uint4 v)
  168. {
  169. this.x = (int)v.x;
  170. this.y = (int)v.y;
  171. this.z = (int)v.z;
  172. this.w = (int)v.w;
  173. }
  174. /// <summary>Constructs a int4 vector from a single float value by converting it to int and assigning it to every component.</summary>
  175. /// <param name="v">float to convert to int4</param>
  176. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  177. public int4(float v)
  178. {
  179. this.x = (int)v;
  180. this.y = (int)v;
  181. this.z = (int)v;
  182. this.w = (int)v;
  183. }
  184. /// <summary>Constructs a int4 vector from a float4 vector by componentwise conversion.</summary>
  185. /// <param name="v">float4 to convert to int4</param>
  186. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  187. public int4(float4 v)
  188. {
  189. this.x = (int)v.x;
  190. this.y = (int)v.y;
  191. this.z = (int)v.z;
  192. this.w = (int)v.w;
  193. }
  194. /// <summary>Constructs a int4 vector from a single double value by converting it to int and assigning it to every component.</summary>
  195. /// <param name="v">double to convert to int4</param>
  196. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  197. public int4(double v)
  198. {
  199. this.x = (int)v;
  200. this.y = (int)v;
  201. this.z = (int)v;
  202. this.w = (int)v;
  203. }
  204. /// <summary>Constructs a int4 vector from a double4 vector by componentwise conversion.</summary>
  205. /// <param name="v">double4 to convert to int4</param>
  206. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  207. public int4(double4 v)
  208. {
  209. this.x = (int)v.x;
  210. this.y = (int)v.y;
  211. this.z = (int)v.z;
  212. this.w = (int)v.w;
  213. }
  214. /// <summary>Implicitly converts a single int value to a int4 vector by assigning it to every component.</summary>
  215. /// <param name="v">int to convert to int4</param>
  216. /// <returns>Converted value.</returns>
  217. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  218. public static implicit operator int4(int v) { return new int4(v); }
  219. /// <summary>Explicitly converts a single bool value to a int4 vector by converting it to int and assigning it to every component.</summary>
  220. /// <param name="v">bool to convert to int4</param>
  221. /// <returns>Converted value.</returns>
  222. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  223. public static explicit operator int4(bool v) { return new int4(v); }
  224. /// <summary>Explicitly converts a bool4 vector to a int4 vector by componentwise conversion.</summary>
  225. /// <param name="v">bool4 to convert to int4</param>
  226. /// <returns>Converted value.</returns>
  227. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  228. public static explicit operator int4(bool4 v) { return new int4(v); }
  229. /// <summary>Explicitly converts a single uint value to a int4 vector by converting it to int and assigning it to every component.</summary>
  230. /// <param name="v">uint to convert to int4</param>
  231. /// <returns>Converted value.</returns>
  232. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  233. public static explicit operator int4(uint v) { return new int4(v); }
  234. /// <summary>Explicitly converts a uint4 vector to a int4 vector by componentwise conversion.</summary>
  235. /// <param name="v">uint4 to convert to int4</param>
  236. /// <returns>Converted value.</returns>
  237. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  238. public static explicit operator int4(uint4 v) { return new int4(v); }
  239. /// <summary>Explicitly converts a single float value to a int4 vector by converting it to int and assigning it to every component.</summary>
  240. /// <param name="v">float to convert to int4</param>
  241. /// <returns>Converted value.</returns>
  242. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  243. public static explicit operator int4(float v) { return new int4(v); }
  244. /// <summary>Explicitly converts a float4 vector to a int4 vector by componentwise conversion.</summary>
  245. /// <param name="v">float4 to convert to int4</param>
  246. /// <returns>Converted value.</returns>
  247. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  248. public static explicit operator int4(float4 v) { return new int4(v); }
  249. /// <summary>Explicitly converts a single double value to a int4 vector by converting it to int and assigning it to every component.</summary>
  250. /// <param name="v">double to convert to int4</param>
  251. /// <returns>Converted value.</returns>
  252. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  253. public static explicit operator int4(double v) { return new int4(v); }
  254. /// <summary>Explicitly converts a double4 vector to a int4 vector by componentwise conversion.</summary>
  255. /// <param name="v">double4 to convert to int4</param>
  256. /// <returns>Converted value.</returns>
  257. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  258. public static explicit operator int4(double4 v) { return new int4(v); }
  259. /// <summary>Returns the result of a componentwise multiplication operation on two int4 vectors.</summary>
  260. /// <param name="lhs">Left hand side int4 to use to compute componentwise multiplication.</param>
  261. /// <param name="rhs">Right hand side int4 to use to compute componentwise multiplication.</param>
  262. /// <returns>int4 result of the componentwise multiplication.</returns>
  263. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  264. public static int4 operator * (int4 lhs, int4 rhs) { return new int4 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z, lhs.w * rhs.w); }
  265. /// <summary>Returns the result of a componentwise multiplication operation on an int4 vector and an int value.</summary>
  266. /// <param name="lhs">Left hand side int4 to use to compute componentwise multiplication.</param>
  267. /// <param name="rhs">Right hand side int to use to compute componentwise multiplication.</param>
  268. /// <returns>int4 result of the componentwise multiplication.</returns>
  269. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  270. public static int4 operator * (int4 lhs, int rhs) { return new int4 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs, lhs.w * rhs); }
  271. /// <summary>Returns the result of a componentwise multiplication operation on an int value and an int4 vector.</summary>
  272. /// <param name="lhs">Left hand side int to use to compute componentwise multiplication.</param>
  273. /// <param name="rhs">Right hand side int4 to use to compute componentwise multiplication.</param>
  274. /// <returns>int4 result of the componentwise multiplication.</returns>
  275. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  276. public static int4 operator * (int lhs, int4 rhs) { return new int4 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z, lhs * rhs.w); }
  277. /// <summary>Returns the result of a componentwise addition operation on two int4 vectors.</summary>
  278. /// <param name="lhs">Left hand side int4 to use to compute componentwise addition.</param>
  279. /// <param name="rhs">Right hand side int4 to use to compute componentwise addition.</param>
  280. /// <returns>int4 result of the componentwise addition.</returns>
  281. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  282. public static int4 operator + (int4 lhs, int4 rhs) { return new int4 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z, lhs.w + rhs.w); }
  283. /// <summary>Returns the result of a componentwise addition operation on an int4 vector and an int value.</summary>
  284. /// <param name="lhs">Left hand side int4 to use to compute componentwise addition.</param>
  285. /// <param name="rhs">Right hand side int to use to compute componentwise addition.</param>
  286. /// <returns>int4 result of the componentwise addition.</returns>
  287. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  288. public static int4 operator + (int4 lhs, int rhs) { return new int4 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs, lhs.w + rhs); }
  289. /// <summary>Returns the result of a componentwise addition operation on an int value and an int4 vector.</summary>
  290. /// <param name="lhs">Left hand side int to use to compute componentwise addition.</param>
  291. /// <param name="rhs">Right hand side int4 to use to compute componentwise addition.</param>
  292. /// <returns>int4 result of the componentwise addition.</returns>
  293. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  294. public static int4 operator + (int lhs, int4 rhs) { return new int4 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z, lhs + rhs.w); }
  295. /// <summary>Returns the result of a componentwise subtraction operation on two int4 vectors.</summary>
  296. /// <param name="lhs">Left hand side int4 to use to compute componentwise subtraction.</param>
  297. /// <param name="rhs">Right hand side int4 to use to compute componentwise subtraction.</param>
  298. /// <returns>int4 result of the componentwise subtraction.</returns>
  299. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  300. public static int4 operator - (int4 lhs, int4 rhs) { return new int4 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z, lhs.w - rhs.w); }
  301. /// <summary>Returns the result of a componentwise subtraction operation on an int4 vector and an int value.</summary>
  302. /// <param name="lhs">Left hand side int4 to use to compute componentwise subtraction.</param>
  303. /// <param name="rhs">Right hand side int to use to compute componentwise subtraction.</param>
  304. /// <returns>int4 result of the componentwise subtraction.</returns>
  305. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  306. public static int4 operator - (int4 lhs, int rhs) { return new int4 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs, lhs.w - rhs); }
  307. /// <summary>Returns the result of a componentwise subtraction operation on an int value and an int4 vector.</summary>
  308. /// <param name="lhs">Left hand side int to use to compute componentwise subtraction.</param>
  309. /// <param name="rhs">Right hand side int4 to use to compute componentwise subtraction.</param>
  310. /// <returns>int4 result of the componentwise subtraction.</returns>
  311. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  312. public static int4 operator - (int lhs, int4 rhs) { return new int4 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z, lhs - rhs.w); }
  313. /// <summary>Returns the result of a componentwise division operation on two int4 vectors.</summary>
  314. /// <param name="lhs">Left hand side int4 to use to compute componentwise division.</param>
  315. /// <param name="rhs">Right hand side int4 to use to compute componentwise division.</param>
  316. /// <returns>int4 result of the componentwise division.</returns>
  317. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  318. public static int4 operator / (int4 lhs, int4 rhs) { return new int4 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z, lhs.w / rhs.w); }
  319. /// <summary>Returns the result of a componentwise division operation on an int4 vector and an int value.</summary>
  320. /// <param name="lhs">Left hand side int4 to use to compute componentwise division.</param>
  321. /// <param name="rhs">Right hand side int to use to compute componentwise division.</param>
  322. /// <returns>int4 result of the componentwise division.</returns>
  323. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  324. public static int4 operator / (int4 lhs, int rhs) { return new int4 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs, lhs.w / rhs); }
  325. /// <summary>Returns the result of a componentwise division operation on an int value and an int4 vector.</summary>
  326. /// <param name="lhs">Left hand side int to use to compute componentwise division.</param>
  327. /// <param name="rhs">Right hand side int4 to use to compute componentwise division.</param>
  328. /// <returns>int4 result of the componentwise division.</returns>
  329. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  330. public static int4 operator / (int lhs, int4 rhs) { return new int4 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z, lhs / rhs.w); }
  331. /// <summary>Returns the result of a componentwise modulus operation on two int4 vectors.</summary>
  332. /// <param name="lhs">Left hand side int4 to use to compute componentwise modulus.</param>
  333. /// <param name="rhs">Right hand side int4 to use to compute componentwise modulus.</param>
  334. /// <returns>int4 result of the componentwise modulus.</returns>
  335. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  336. public static int4 operator % (int4 lhs, int4 rhs) { return new int4 (lhs.x % rhs.x, lhs.y % rhs.y, lhs.z % rhs.z, lhs.w % rhs.w); }
  337. /// <summary>Returns the result of a componentwise modulus operation on an int4 vector and an int value.</summary>
  338. /// <param name="lhs">Left hand side int4 to use to compute componentwise modulus.</param>
  339. /// <param name="rhs">Right hand side int to use to compute componentwise modulus.</param>
  340. /// <returns>int4 result of the componentwise modulus.</returns>
  341. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  342. public static int4 operator % (int4 lhs, int rhs) { return new int4 (lhs.x % rhs, lhs.y % rhs, lhs.z % rhs, lhs.w % rhs); }
  343. /// <summary>Returns the result of a componentwise modulus operation on an int value and an int4 vector.</summary>
  344. /// <param name="lhs">Left hand side int to use to compute componentwise modulus.</param>
  345. /// <param name="rhs">Right hand side int4 to use to compute componentwise modulus.</param>
  346. /// <returns>int4 result of the componentwise modulus.</returns>
  347. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  348. public static int4 operator % (int lhs, int4 rhs) { return new int4 (lhs % rhs.x, lhs % rhs.y, lhs % rhs.z, lhs % rhs.w); }
  349. /// <summary>Returns the result of a componentwise increment operation on an int4 vector.</summary>
  350. /// <param name="val">Value to use when computing the componentwise increment.</param>
  351. /// <returns>int4 result of the componentwise increment.</returns>
  352. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  353. public static int4 operator ++ (int4 val) { return new int4 (++val.x, ++val.y, ++val.z, ++val.w); }
  354. /// <summary>Returns the result of a componentwise decrement operation on an int4 vector.</summary>
  355. /// <param name="val">Value to use when computing the componentwise decrement.</param>
  356. /// <returns>int4 result of the componentwise decrement.</returns>
  357. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  358. public static int4 operator -- (int4 val) { return new int4 (--val.x, --val.y, --val.z, --val.w); }
  359. /// <summary>Returns the result of a componentwise less than operation on two int4 vectors.</summary>
  360. /// <param name="lhs">Left hand side int4 to use to compute componentwise less than.</param>
  361. /// <param name="rhs">Right hand side int4 to use to compute componentwise less than.</param>
  362. /// <returns>bool4 result of the componentwise less than.</returns>
  363. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  364. public static bool4 operator < (int4 lhs, int4 rhs) { return new bool4 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z, lhs.w < rhs.w); }
  365. /// <summary>Returns the result of a componentwise less than operation on an int4 vector and an int value.</summary>
  366. /// <param name="lhs">Left hand side int4 to use to compute componentwise less than.</param>
  367. /// <param name="rhs">Right hand side int to use to compute componentwise less than.</param>
  368. /// <returns>bool4 result of the componentwise less than.</returns>
  369. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  370. public static bool4 operator < (int4 lhs, int rhs) { return new bool4 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs, lhs.w < rhs); }
  371. /// <summary>Returns the result of a componentwise less than operation on an int value and an int4 vector.</summary>
  372. /// <param name="lhs">Left hand side int to use to compute componentwise less than.</param>
  373. /// <param name="rhs">Right hand side int4 to use to compute componentwise less than.</param>
  374. /// <returns>bool4 result of the componentwise less than.</returns>
  375. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  376. public static bool4 operator < (int lhs, int4 rhs) { return new bool4 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z, lhs < rhs.w); }
  377. /// <summary>Returns the result of a componentwise less or equal operation on two int4 vectors.</summary>
  378. /// <param name="lhs">Left hand side int4 to use to compute componentwise less or equal.</param>
  379. /// <param name="rhs">Right hand side int4 to use to compute componentwise less or equal.</param>
  380. /// <returns>bool4 result of the componentwise less or equal.</returns>
  381. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  382. public static bool4 operator <= (int4 lhs, int4 rhs) { return new bool4 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z, lhs.w <= rhs.w); }
  383. /// <summary>Returns the result of a componentwise less or equal operation on an int4 vector and an int value.</summary>
  384. /// <param name="lhs">Left hand side int4 to use to compute componentwise less or equal.</param>
  385. /// <param name="rhs">Right hand side int to use to compute componentwise less or equal.</param>
  386. /// <returns>bool4 result of the componentwise less or equal.</returns>
  387. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  388. public static bool4 operator <= (int4 lhs, int rhs) { return new bool4 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs, lhs.w <= rhs); }
  389. /// <summary>Returns the result of a componentwise less or equal operation on an int value and an int4 vector.</summary>
  390. /// <param name="lhs">Left hand side int to use to compute componentwise less or equal.</param>
  391. /// <param name="rhs">Right hand side int4 to use to compute componentwise less or equal.</param>
  392. /// <returns>bool4 result of the componentwise less or equal.</returns>
  393. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  394. public static bool4 operator <= (int lhs, int4 rhs) { return new bool4 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z, lhs <= rhs.w); }
  395. /// <summary>Returns the result of a componentwise greater than operation on two int4 vectors.</summary>
  396. /// <param name="lhs">Left hand side int4 to use to compute componentwise greater than.</param>
  397. /// <param name="rhs">Right hand side int4 to use to compute componentwise greater than.</param>
  398. /// <returns>bool4 result of the componentwise greater than.</returns>
  399. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  400. public static bool4 operator > (int4 lhs, int4 rhs) { return new bool4 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z, lhs.w > rhs.w); }
  401. /// <summary>Returns the result of a componentwise greater than operation on an int4 vector and an int value.</summary>
  402. /// <param name="lhs">Left hand side int4 to use to compute componentwise greater than.</param>
  403. /// <param name="rhs">Right hand side int to use to compute componentwise greater than.</param>
  404. /// <returns>bool4 result of the componentwise greater than.</returns>
  405. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  406. public static bool4 operator > (int4 lhs, int rhs) { return new bool4 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs, lhs.w > rhs); }
  407. /// <summary>Returns the result of a componentwise greater than operation on an int value and an int4 vector.</summary>
  408. /// <param name="lhs">Left hand side int to use to compute componentwise greater than.</param>
  409. /// <param name="rhs">Right hand side int4 to use to compute componentwise greater than.</param>
  410. /// <returns>bool4 result of the componentwise greater than.</returns>
  411. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  412. public static bool4 operator > (int lhs, int4 rhs) { return new bool4 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z, lhs > rhs.w); }
  413. /// <summary>Returns the result of a componentwise greater or equal operation on two int4 vectors.</summary>
  414. /// <param name="lhs">Left hand side int4 to use to compute componentwise greater or equal.</param>
  415. /// <param name="rhs">Right hand side int4 to use to compute componentwise greater or equal.</param>
  416. /// <returns>bool4 result of the componentwise greater or equal.</returns>
  417. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  418. public static bool4 operator >= (int4 lhs, int4 rhs) { return new bool4 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z, lhs.w >= rhs.w); }
  419. /// <summary>Returns the result of a componentwise greater or equal operation on an int4 vector and an int value.</summary>
  420. /// <param name="lhs">Left hand side int4 to use to compute componentwise greater or equal.</param>
  421. /// <param name="rhs">Right hand side int to use to compute componentwise greater or equal.</param>
  422. /// <returns>bool4 result of the componentwise greater or equal.</returns>
  423. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  424. public static bool4 operator >= (int4 lhs, int rhs) { return new bool4 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs, lhs.w >= rhs); }
  425. /// <summary>Returns the result of a componentwise greater or equal operation on an int value and an int4 vector.</summary>
  426. /// <param name="lhs">Left hand side int to use to compute componentwise greater or equal.</param>
  427. /// <param name="rhs">Right hand side int4 to use to compute componentwise greater or equal.</param>
  428. /// <returns>bool4 result of the componentwise greater or equal.</returns>
  429. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  430. public static bool4 operator >= (int lhs, int4 rhs) { return new bool4 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z, lhs >= rhs.w); }
  431. /// <summary>Returns the result of a componentwise unary minus operation on an int4 vector.</summary>
  432. /// <param name="val">Value to use when computing the componentwise unary minus.</param>
  433. /// <returns>int4 result of the componentwise unary minus.</returns>
  434. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  435. public static int4 operator - (int4 val) { return new int4 (-val.x, -val.y, -val.z, -val.w); }
  436. /// <summary>Returns the result of a componentwise unary plus operation on an int4 vector.</summary>
  437. /// <param name="val">Value to use when computing the componentwise unary plus.</param>
  438. /// <returns>int4 result of the componentwise unary plus.</returns>
  439. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  440. public static int4 operator + (int4 val) { return new int4 (+val.x, +val.y, +val.z, +val.w); }
  441. /// <summary>Returns the result of a componentwise left shift operation on an int4 vector by a number of bits specified by a single int.</summary>
  442. /// <param name="x">The vector to left shift.</param>
  443. /// <param name="n">The number of bits to left shift.</param>
  444. /// <returns>The result of the componentwise left shift.</returns>
  445. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  446. public static int4 operator << (int4 x, int n) { return new int4 (x.x << n, x.y << n, x.z << n, x.w << n); }
  447. /// <summary>Returns the result of a componentwise right shift operation on an int4 vector by a number of bits specified by a single int.</summary>
  448. /// <param name="x">The vector to right shift.</param>
  449. /// <param name="n">The number of bits to right shift.</param>
  450. /// <returns>The result of the componentwise right shift.</returns>
  451. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  452. public static int4 operator >> (int4 x, int n) { return new int4 (x.x >> n, x.y >> n, x.z >> n, x.w >> n); }
  453. /// <summary>Returns the result of a componentwise equality operation on two int4 vectors.</summary>
  454. /// <param name="lhs">Left hand side int4 to use to compute componentwise equality.</param>
  455. /// <param name="rhs">Right hand side int4 to use to compute componentwise equality.</param>
  456. /// <returns>bool4 result of the componentwise equality.</returns>
  457. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  458. public static bool4 operator == (int4 lhs, int4 rhs) { return new bool4 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z, lhs.w == rhs.w); }
  459. /// <summary>Returns the result of a componentwise equality operation on an int4 vector and an int value.</summary>
  460. /// <param name="lhs">Left hand side int4 to use to compute componentwise equality.</param>
  461. /// <param name="rhs">Right hand side int to use to compute componentwise equality.</param>
  462. /// <returns>bool4 result of the componentwise equality.</returns>
  463. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  464. public static bool4 operator == (int4 lhs, int rhs) { return new bool4 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs, lhs.w == rhs); }
  465. /// <summary>Returns the result of a componentwise equality operation on an int value and an int4 vector.</summary>
  466. /// <param name="lhs">Left hand side int to use to compute componentwise equality.</param>
  467. /// <param name="rhs">Right hand side int4 to use to compute componentwise equality.</param>
  468. /// <returns>bool4 result of the componentwise equality.</returns>
  469. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  470. public static bool4 operator == (int lhs, int4 rhs) { return new bool4 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z, lhs == rhs.w); }
  471. /// <summary>Returns the result of a componentwise not equal operation on two int4 vectors.</summary>
  472. /// <param name="lhs">Left hand side int4 to use to compute componentwise not equal.</param>
  473. /// <param name="rhs">Right hand side int4 to use to compute componentwise not equal.</param>
  474. /// <returns>bool4 result of the componentwise not equal.</returns>
  475. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  476. public static bool4 operator != (int4 lhs, int4 rhs) { return new bool4 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z, lhs.w != rhs.w); }
  477. /// <summary>Returns the result of a componentwise not equal operation on an int4 vector and an int value.</summary>
  478. /// <param name="lhs">Left hand side int4 to use to compute componentwise not equal.</param>
  479. /// <param name="rhs">Right hand side int to use to compute componentwise not equal.</param>
  480. /// <returns>bool4 result of the componentwise not equal.</returns>
  481. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  482. public static bool4 operator != (int4 lhs, int rhs) { return new bool4 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs, lhs.w != rhs); }
  483. /// <summary>Returns the result of a componentwise not equal operation on an int value and an int4 vector.</summary>
  484. /// <param name="lhs">Left hand side int to use to compute componentwise not equal.</param>
  485. /// <param name="rhs">Right hand side int4 to use to compute componentwise not equal.</param>
  486. /// <returns>bool4 result of the componentwise not equal.</returns>
  487. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  488. public static bool4 operator != (int lhs, int4 rhs) { return new bool4 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z, lhs != rhs.w); }
  489. /// <summary>Returns the result of a componentwise bitwise not operation on an int4 vector.</summary>
  490. /// <param name="val">Value to use when computing the componentwise bitwise not.</param>
  491. /// <returns>int4 result of the componentwise bitwise not.</returns>
  492. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  493. public static int4 operator ~ (int4 val) { return new int4 (~val.x, ~val.y, ~val.z, ~val.w); }
  494. /// <summary>Returns the result of a componentwise bitwise and operation on two int4 vectors.</summary>
  495. /// <param name="lhs">Left hand side int4 to use to compute componentwise bitwise and.</param>
  496. /// <param name="rhs">Right hand side int4 to use to compute componentwise bitwise and.</param>
  497. /// <returns>int4 result of the componentwise bitwise and.</returns>
  498. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  499. public static int4 operator & (int4 lhs, int4 rhs) { return new int4 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z, lhs.w & rhs.w); }
  500. /// <summary>Returns the result of a componentwise bitwise and operation on an int4 vector and an int value.</summary>
  501. /// <param name="lhs">Left hand side int4 to use to compute componentwise bitwise and.</param>
  502. /// <param name="rhs">Right hand side int to use to compute componentwise bitwise and.</param>
  503. /// <returns>int4 result of the componentwise bitwise and.</returns>
  504. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  505. public static int4 operator & (int4 lhs, int rhs) { return new int4 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs, lhs.w & rhs); }
  506. /// <summary>Returns the result of a componentwise bitwise and operation on an int value and an int4 vector.</summary>
  507. /// <param name="lhs">Left hand side int to use to compute componentwise bitwise and.</param>
  508. /// <param name="rhs">Right hand side int4 to use to compute componentwise bitwise and.</param>
  509. /// <returns>int4 result of the componentwise bitwise and.</returns>
  510. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  511. public static int4 operator & (int lhs, int4 rhs) { return new int4 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z, lhs & rhs.w); }
  512. /// <summary>Returns the result of a componentwise bitwise or operation on two int4 vectors.</summary>
  513. /// <param name="lhs">Left hand side int4 to use to compute componentwise bitwise or.</param>
  514. /// <param name="rhs">Right hand side int4 to use to compute componentwise bitwise or.</param>
  515. /// <returns>int4 result of the componentwise bitwise or.</returns>
  516. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  517. public static int4 operator | (int4 lhs, int4 rhs) { return new int4 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z, lhs.w | rhs.w); }
  518. /// <summary>Returns the result of a componentwise bitwise or operation on an int4 vector and an int value.</summary>
  519. /// <param name="lhs">Left hand side int4 to use to compute componentwise bitwise or.</param>
  520. /// <param name="rhs">Right hand side int to use to compute componentwise bitwise or.</param>
  521. /// <returns>int4 result of the componentwise bitwise or.</returns>
  522. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  523. public static int4 operator | (int4 lhs, int rhs) { return new int4 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs, lhs.w | rhs); }
  524. /// <summary>Returns the result of a componentwise bitwise or operation on an int value and an int4 vector.</summary>
  525. /// <param name="lhs">Left hand side int to use to compute componentwise bitwise or.</param>
  526. /// <param name="rhs">Right hand side int4 to use to compute componentwise bitwise or.</param>
  527. /// <returns>int4 result of the componentwise bitwise or.</returns>
  528. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  529. public static int4 operator | (int lhs, int4 rhs) { return new int4 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z, lhs | rhs.w); }
  530. /// <summary>Returns the result of a componentwise bitwise exclusive or operation on two int4 vectors.</summary>
  531. /// <param name="lhs">Left hand side int4 to use to compute componentwise bitwise exclusive or.</param>
  532. /// <param name="rhs">Right hand side int4 to use to compute componentwise bitwise exclusive or.</param>
  533. /// <returns>int4 result of the componentwise bitwise exclusive or.</returns>
  534. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  535. public static int4 operator ^ (int4 lhs, int4 rhs) { return new int4 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z, lhs.w ^ rhs.w); }
  536. /// <summary>Returns the result of a componentwise bitwise exclusive or operation on an int4 vector and an int value.</summary>
  537. /// <param name="lhs">Left hand side int4 to use to compute componentwise bitwise exclusive or.</param>
  538. /// <param name="rhs">Right hand side int to use to compute componentwise bitwise exclusive or.</param>
  539. /// <returns>int4 result of the componentwise bitwise exclusive or.</returns>
  540. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  541. public static int4 operator ^ (int4 lhs, int rhs) { return new int4 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs, lhs.w ^ rhs); }
  542. /// <summary>Returns the result of a componentwise bitwise exclusive or operation on an int value and an int4 vector.</summary>
  543. /// <param name="lhs">Left hand side int to use to compute componentwise bitwise exclusive or.</param>
  544. /// <param name="rhs">Right hand side int4 to use to compute componentwise bitwise exclusive or.</param>
  545. /// <returns>int4 result of the componentwise bitwise exclusive or.</returns>
  546. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  547. public static int4 operator ^ (int lhs, int4 rhs) { return new int4 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z, lhs ^ rhs.w); }
  548. /// <summary>Swizzles the vector.</summary>
  549. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  550. public int4 xxxx
  551. {
  552. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  553. get { return new int4(x, x, x, x); }
  554. }
  555. /// <summary>Swizzles the vector.</summary>
  556. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  557. public int4 xxxy
  558. {
  559. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  560. get { return new int4(x, x, x, y); }
  561. }
  562. /// <summary>Swizzles the vector.</summary>
  563. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  564. public int4 xxxz
  565. {
  566. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  567. get { return new int4(x, x, x, z); }
  568. }
  569. /// <summary>Swizzles the vector.</summary>
  570. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  571. public int4 xxxw
  572. {
  573. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  574. get { return new int4(x, x, x, w); }
  575. }
  576. /// <summary>Swizzles the vector.</summary>
  577. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  578. public int4 xxyx
  579. {
  580. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  581. get { return new int4(x, x, y, x); }
  582. }
  583. /// <summary>Swizzles the vector.</summary>
  584. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  585. public int4 xxyy
  586. {
  587. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  588. get { return new int4(x, x, y, y); }
  589. }
  590. /// <summary>Swizzles the vector.</summary>
  591. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  592. public int4 xxyz
  593. {
  594. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  595. get { return new int4(x, x, y, z); }
  596. }
  597. /// <summary>Swizzles the vector.</summary>
  598. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  599. public int4 xxyw
  600. {
  601. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  602. get { return new int4(x, x, y, w); }
  603. }
  604. /// <summary>Swizzles the vector.</summary>
  605. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  606. public int4 xxzx
  607. {
  608. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  609. get { return new int4(x, x, z, x); }
  610. }
  611. /// <summary>Swizzles the vector.</summary>
  612. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  613. public int4 xxzy
  614. {
  615. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  616. get { return new int4(x, x, z, y); }
  617. }
  618. /// <summary>Swizzles the vector.</summary>
  619. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  620. public int4 xxzz
  621. {
  622. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  623. get { return new int4(x, x, z, z); }
  624. }
  625. /// <summary>Swizzles the vector.</summary>
  626. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  627. public int4 xxzw
  628. {
  629. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  630. get { return new int4(x, x, z, w); }
  631. }
  632. /// <summary>Swizzles the vector.</summary>
  633. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  634. public int4 xxwx
  635. {
  636. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  637. get { return new int4(x, x, w, x); }
  638. }
  639. /// <summary>Swizzles the vector.</summary>
  640. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  641. public int4 xxwy
  642. {
  643. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  644. get { return new int4(x, x, w, y); }
  645. }
  646. /// <summary>Swizzles the vector.</summary>
  647. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  648. public int4 xxwz
  649. {
  650. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  651. get { return new int4(x, x, w, z); }
  652. }
  653. /// <summary>Swizzles the vector.</summary>
  654. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  655. public int4 xxww
  656. {
  657. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  658. get { return new int4(x, x, w, w); }
  659. }
  660. /// <summary>Swizzles the vector.</summary>
  661. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  662. public int4 xyxx
  663. {
  664. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  665. get { return new int4(x, y, x, x); }
  666. }
  667. /// <summary>Swizzles the vector.</summary>
  668. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  669. public int4 xyxy
  670. {
  671. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  672. get { return new int4(x, y, x, y); }
  673. }
  674. /// <summary>Swizzles the vector.</summary>
  675. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  676. public int4 xyxz
  677. {
  678. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  679. get { return new int4(x, y, x, z); }
  680. }
  681. /// <summary>Swizzles the vector.</summary>
  682. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  683. public int4 xyxw
  684. {
  685. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  686. get { return new int4(x, y, x, w); }
  687. }
  688. /// <summary>Swizzles the vector.</summary>
  689. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  690. public int4 xyyx
  691. {
  692. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  693. get { return new int4(x, y, y, x); }
  694. }
  695. /// <summary>Swizzles the vector.</summary>
  696. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  697. public int4 xyyy
  698. {
  699. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  700. get { return new int4(x, y, y, y); }
  701. }
  702. /// <summary>Swizzles the vector.</summary>
  703. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  704. public int4 xyyz
  705. {
  706. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  707. get { return new int4(x, y, y, z); }
  708. }
  709. /// <summary>Swizzles the vector.</summary>
  710. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  711. public int4 xyyw
  712. {
  713. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  714. get { return new int4(x, y, y, w); }
  715. }
  716. /// <summary>Swizzles the vector.</summary>
  717. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  718. public int4 xyzx
  719. {
  720. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  721. get { return new int4(x, y, z, x); }
  722. }
  723. /// <summary>Swizzles the vector.</summary>
  724. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  725. public int4 xyzy
  726. {
  727. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  728. get { return new int4(x, y, z, y); }
  729. }
  730. /// <summary>Swizzles the vector.</summary>
  731. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  732. public int4 xyzz
  733. {
  734. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  735. get { return new int4(x, y, z, z); }
  736. }
  737. /// <summary>Swizzles the vector.</summary>
  738. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  739. public int4 xyzw
  740. {
  741. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  742. get { return new int4(x, y, z, w); }
  743. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  744. set { x = value.x; y = value.y; z = value.z; w = value.w; }
  745. }
  746. /// <summary>Swizzles the vector.</summary>
  747. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  748. public int4 xywx
  749. {
  750. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  751. get { return new int4(x, y, w, x); }
  752. }
  753. /// <summary>Swizzles the vector.</summary>
  754. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  755. public int4 xywy
  756. {
  757. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  758. get { return new int4(x, y, w, y); }
  759. }
  760. /// <summary>Swizzles the vector.</summary>
  761. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  762. public int4 xywz
  763. {
  764. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  765. get { return new int4(x, y, w, z); }
  766. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  767. set { x = value.x; y = value.y; w = value.z; z = value.w; }
  768. }
  769. /// <summary>Swizzles the vector.</summary>
  770. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  771. public int4 xyww
  772. {
  773. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  774. get { return new int4(x, y, w, w); }
  775. }
  776. /// <summary>Swizzles the vector.</summary>
  777. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  778. public int4 xzxx
  779. {
  780. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  781. get { return new int4(x, z, x, x); }
  782. }
  783. /// <summary>Swizzles the vector.</summary>
  784. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  785. public int4 xzxy
  786. {
  787. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  788. get { return new int4(x, z, x, y); }
  789. }
  790. /// <summary>Swizzles the vector.</summary>
  791. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  792. public int4 xzxz
  793. {
  794. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  795. get { return new int4(x, z, x, z); }
  796. }
  797. /// <summary>Swizzles the vector.</summary>
  798. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  799. public int4 xzxw
  800. {
  801. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  802. get { return new int4(x, z, x, w); }
  803. }
  804. /// <summary>Swizzles the vector.</summary>
  805. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  806. public int4 xzyx
  807. {
  808. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  809. get { return new int4(x, z, y, x); }
  810. }
  811. /// <summary>Swizzles the vector.</summary>
  812. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  813. public int4 xzyy
  814. {
  815. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  816. get { return new int4(x, z, y, y); }
  817. }
  818. /// <summary>Swizzles the vector.</summary>
  819. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  820. public int4 xzyz
  821. {
  822. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  823. get { return new int4(x, z, y, z); }
  824. }
  825. /// <summary>Swizzles the vector.</summary>
  826. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  827. public int4 xzyw
  828. {
  829. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  830. get { return new int4(x, z, y, w); }
  831. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  832. set { x = value.x; z = value.y; y = value.z; w = value.w; }
  833. }
  834. /// <summary>Swizzles the vector.</summary>
  835. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  836. public int4 xzzx
  837. {
  838. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  839. get { return new int4(x, z, z, x); }
  840. }
  841. /// <summary>Swizzles the vector.</summary>
  842. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  843. public int4 xzzy
  844. {
  845. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  846. get { return new int4(x, z, z, y); }
  847. }
  848. /// <summary>Swizzles the vector.</summary>
  849. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  850. public int4 xzzz
  851. {
  852. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  853. get { return new int4(x, z, z, z); }
  854. }
  855. /// <summary>Swizzles the vector.</summary>
  856. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  857. public int4 xzzw
  858. {
  859. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  860. get { return new int4(x, z, z, w); }
  861. }
  862. /// <summary>Swizzles the vector.</summary>
  863. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  864. public int4 xzwx
  865. {
  866. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  867. get { return new int4(x, z, w, x); }
  868. }
  869. /// <summary>Swizzles the vector.</summary>
  870. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  871. public int4 xzwy
  872. {
  873. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  874. get { return new int4(x, z, w, y); }
  875. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  876. set { x = value.x; z = value.y; w = value.z; y = value.w; }
  877. }
  878. /// <summary>Swizzles the vector.</summary>
  879. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  880. public int4 xzwz
  881. {
  882. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  883. get { return new int4(x, z, w, z); }
  884. }
  885. /// <summary>Swizzles the vector.</summary>
  886. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  887. public int4 xzww
  888. {
  889. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  890. get { return new int4(x, z, w, w); }
  891. }
  892. /// <summary>Swizzles the vector.</summary>
  893. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  894. public int4 xwxx
  895. {
  896. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  897. get { return new int4(x, w, x, x); }
  898. }
  899. /// <summary>Swizzles the vector.</summary>
  900. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  901. public int4 xwxy
  902. {
  903. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  904. get { return new int4(x, w, x, y); }
  905. }
  906. /// <summary>Swizzles the vector.</summary>
  907. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  908. public int4 xwxz
  909. {
  910. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  911. get { return new int4(x, w, x, z); }
  912. }
  913. /// <summary>Swizzles the vector.</summary>
  914. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  915. public int4 xwxw
  916. {
  917. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  918. get { return new int4(x, w, x, w); }
  919. }
  920. /// <summary>Swizzles the vector.</summary>
  921. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  922. public int4 xwyx
  923. {
  924. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  925. get { return new int4(x, w, y, x); }
  926. }
  927. /// <summary>Swizzles the vector.</summary>
  928. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  929. public int4 xwyy
  930. {
  931. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  932. get { return new int4(x, w, y, y); }
  933. }
  934. /// <summary>Swizzles the vector.</summary>
  935. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  936. public int4 xwyz
  937. {
  938. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  939. get { return new int4(x, w, y, z); }
  940. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  941. set { x = value.x; w = value.y; y = value.z; z = value.w; }
  942. }
  943. /// <summary>Swizzles the vector.</summary>
  944. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  945. public int4 xwyw
  946. {
  947. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  948. get { return new int4(x, w, y, w); }
  949. }
  950. /// <summary>Swizzles the vector.</summary>
  951. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  952. public int4 xwzx
  953. {
  954. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  955. get { return new int4(x, w, z, x); }
  956. }
  957. /// <summary>Swizzles the vector.</summary>
  958. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  959. public int4 xwzy
  960. {
  961. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  962. get { return new int4(x, w, z, y); }
  963. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  964. set { x = value.x; w = value.y; z = value.z; y = value.w; }
  965. }
  966. /// <summary>Swizzles the vector.</summary>
  967. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  968. public int4 xwzz
  969. {
  970. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  971. get { return new int4(x, w, z, z); }
  972. }
  973. /// <summary>Swizzles the vector.</summary>
  974. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  975. public int4 xwzw
  976. {
  977. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  978. get { return new int4(x, w, z, w); }
  979. }
  980. /// <summary>Swizzles the vector.</summary>
  981. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  982. public int4 xwwx
  983. {
  984. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  985. get { return new int4(x, w, w, x); }
  986. }
  987. /// <summary>Swizzles the vector.</summary>
  988. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  989. public int4 xwwy
  990. {
  991. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  992. get { return new int4(x, w, w, y); }
  993. }
  994. /// <summary>Swizzles the vector.</summary>
  995. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  996. public int4 xwwz
  997. {
  998. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  999. get { return new int4(x, w, w, z); }
  1000. }
  1001. /// <summary>Swizzles the vector.</summary>
  1002. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1003. public int4 xwww
  1004. {
  1005. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1006. get { return new int4(x, w, w, w); }
  1007. }
  1008. /// <summary>Swizzles the vector.</summary>
  1009. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1010. public int4 yxxx
  1011. {
  1012. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1013. get { return new int4(y, x, x, x); }
  1014. }
  1015. /// <summary>Swizzles the vector.</summary>
  1016. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1017. public int4 yxxy
  1018. {
  1019. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1020. get { return new int4(y, x, x, y); }
  1021. }
  1022. /// <summary>Swizzles the vector.</summary>
  1023. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1024. public int4 yxxz
  1025. {
  1026. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1027. get { return new int4(y, x, x, z); }
  1028. }
  1029. /// <summary>Swizzles the vector.</summary>
  1030. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1031. public int4 yxxw
  1032. {
  1033. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1034. get { return new int4(y, x, x, w); }
  1035. }
  1036. /// <summary>Swizzles the vector.</summary>
  1037. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1038. public int4 yxyx
  1039. {
  1040. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1041. get { return new int4(y, x, y, x); }
  1042. }
  1043. /// <summary>Swizzles the vector.</summary>
  1044. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1045. public int4 yxyy
  1046. {
  1047. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1048. get { return new int4(y, x, y, y); }
  1049. }
  1050. /// <summary>Swizzles the vector.</summary>
  1051. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1052. public int4 yxyz
  1053. {
  1054. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1055. get { return new int4(y, x, y, z); }
  1056. }
  1057. /// <summary>Swizzles the vector.</summary>
  1058. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1059. public int4 yxyw
  1060. {
  1061. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1062. get { return new int4(y, x, y, w); }
  1063. }
  1064. /// <summary>Swizzles the vector.</summary>
  1065. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1066. public int4 yxzx
  1067. {
  1068. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1069. get { return new int4(y, x, z, x); }
  1070. }
  1071. /// <summary>Swizzles the vector.</summary>
  1072. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1073. public int4 yxzy
  1074. {
  1075. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1076. get { return new int4(y, x, z, y); }
  1077. }
  1078. /// <summary>Swizzles the vector.</summary>
  1079. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1080. public int4 yxzz
  1081. {
  1082. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1083. get { return new int4(y, x, z, z); }
  1084. }
  1085. /// <summary>Swizzles the vector.</summary>
  1086. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1087. public int4 yxzw
  1088. {
  1089. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1090. get { return new int4(y, x, z, w); }
  1091. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1092. set { y = value.x; x = value.y; z = value.z; w = value.w; }
  1093. }
  1094. /// <summary>Swizzles the vector.</summary>
  1095. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1096. public int4 yxwx
  1097. {
  1098. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1099. get { return new int4(y, x, w, x); }
  1100. }
  1101. /// <summary>Swizzles the vector.</summary>
  1102. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1103. public int4 yxwy
  1104. {
  1105. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1106. get { return new int4(y, x, w, y); }
  1107. }
  1108. /// <summary>Swizzles the vector.</summary>
  1109. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1110. public int4 yxwz
  1111. {
  1112. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1113. get { return new int4(y, x, w, z); }
  1114. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1115. set { y = value.x; x = value.y; w = value.z; z = value.w; }
  1116. }
  1117. /// <summary>Swizzles the vector.</summary>
  1118. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1119. public int4 yxww
  1120. {
  1121. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1122. get { return new int4(y, x, w, w); }
  1123. }
  1124. /// <summary>Swizzles the vector.</summary>
  1125. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1126. public int4 yyxx
  1127. {
  1128. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1129. get { return new int4(y, y, x, x); }
  1130. }
  1131. /// <summary>Swizzles the vector.</summary>
  1132. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1133. public int4 yyxy
  1134. {
  1135. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1136. get { return new int4(y, y, x, y); }
  1137. }
  1138. /// <summary>Swizzles the vector.</summary>
  1139. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1140. public int4 yyxz
  1141. {
  1142. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1143. get { return new int4(y, y, x, z); }
  1144. }
  1145. /// <summary>Swizzles the vector.</summary>
  1146. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1147. public int4 yyxw
  1148. {
  1149. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1150. get { return new int4(y, y, x, w); }
  1151. }
  1152. /// <summary>Swizzles the vector.</summary>
  1153. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1154. public int4 yyyx
  1155. {
  1156. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1157. get { return new int4(y, y, y, x); }
  1158. }
  1159. /// <summary>Swizzles the vector.</summary>
  1160. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1161. public int4 yyyy
  1162. {
  1163. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1164. get { return new int4(y, y, y, y); }
  1165. }
  1166. /// <summary>Swizzles the vector.</summary>
  1167. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1168. public int4 yyyz
  1169. {
  1170. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1171. get { return new int4(y, y, y, z); }
  1172. }
  1173. /// <summary>Swizzles the vector.</summary>
  1174. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1175. public int4 yyyw
  1176. {
  1177. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1178. get { return new int4(y, y, y, w); }
  1179. }
  1180. /// <summary>Swizzles the vector.</summary>
  1181. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1182. public int4 yyzx
  1183. {
  1184. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1185. get { return new int4(y, y, z, x); }
  1186. }
  1187. /// <summary>Swizzles the vector.</summary>
  1188. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1189. public int4 yyzy
  1190. {
  1191. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1192. get { return new int4(y, y, z, y); }
  1193. }
  1194. /// <summary>Swizzles the vector.</summary>
  1195. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1196. public int4 yyzz
  1197. {
  1198. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1199. get { return new int4(y, y, z, z); }
  1200. }
  1201. /// <summary>Swizzles the vector.</summary>
  1202. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1203. public int4 yyzw
  1204. {
  1205. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1206. get { return new int4(y, y, z, w); }
  1207. }
  1208. /// <summary>Swizzles the vector.</summary>
  1209. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1210. public int4 yywx
  1211. {
  1212. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1213. get { return new int4(y, y, w, x); }
  1214. }
  1215. /// <summary>Swizzles the vector.</summary>
  1216. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1217. public int4 yywy
  1218. {
  1219. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1220. get { return new int4(y, y, w, y); }
  1221. }
  1222. /// <summary>Swizzles the vector.</summary>
  1223. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1224. public int4 yywz
  1225. {
  1226. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1227. get { return new int4(y, y, w, z); }
  1228. }
  1229. /// <summary>Swizzles the vector.</summary>
  1230. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1231. public int4 yyww
  1232. {
  1233. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1234. get { return new int4(y, y, w, w); }
  1235. }
  1236. /// <summary>Swizzles the vector.</summary>
  1237. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1238. public int4 yzxx
  1239. {
  1240. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1241. get { return new int4(y, z, x, x); }
  1242. }
  1243. /// <summary>Swizzles the vector.</summary>
  1244. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1245. public int4 yzxy
  1246. {
  1247. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1248. get { return new int4(y, z, x, y); }
  1249. }
  1250. /// <summary>Swizzles the vector.</summary>
  1251. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1252. public int4 yzxz
  1253. {
  1254. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1255. get { return new int4(y, z, x, z); }
  1256. }
  1257. /// <summary>Swizzles the vector.</summary>
  1258. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1259. public int4 yzxw
  1260. {
  1261. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1262. get { return new int4(y, z, x, w); }
  1263. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1264. set { y = value.x; z = value.y; x = value.z; w = value.w; }
  1265. }
  1266. /// <summary>Swizzles the vector.</summary>
  1267. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1268. public int4 yzyx
  1269. {
  1270. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1271. get { return new int4(y, z, y, x); }
  1272. }
  1273. /// <summary>Swizzles the vector.</summary>
  1274. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1275. public int4 yzyy
  1276. {
  1277. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1278. get { return new int4(y, z, y, y); }
  1279. }
  1280. /// <summary>Swizzles the vector.</summary>
  1281. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1282. public int4 yzyz
  1283. {
  1284. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1285. get { return new int4(y, z, y, z); }
  1286. }
  1287. /// <summary>Swizzles the vector.</summary>
  1288. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1289. public int4 yzyw
  1290. {
  1291. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1292. get { return new int4(y, z, y, w); }
  1293. }
  1294. /// <summary>Swizzles the vector.</summary>
  1295. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1296. public int4 yzzx
  1297. {
  1298. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1299. get { return new int4(y, z, z, x); }
  1300. }
  1301. /// <summary>Swizzles the vector.</summary>
  1302. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1303. public int4 yzzy
  1304. {
  1305. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1306. get { return new int4(y, z, z, y); }
  1307. }
  1308. /// <summary>Swizzles the vector.</summary>
  1309. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1310. public int4 yzzz
  1311. {
  1312. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1313. get { return new int4(y, z, z, z); }
  1314. }
  1315. /// <summary>Swizzles the vector.</summary>
  1316. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1317. public int4 yzzw
  1318. {
  1319. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1320. get { return new int4(y, z, z, w); }
  1321. }
  1322. /// <summary>Swizzles the vector.</summary>
  1323. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1324. public int4 yzwx
  1325. {
  1326. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1327. get { return new int4(y, z, w, x); }
  1328. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1329. set { y = value.x; z = value.y; w = value.z; x = value.w; }
  1330. }
  1331. /// <summary>Swizzles the vector.</summary>
  1332. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1333. public int4 yzwy
  1334. {
  1335. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1336. get { return new int4(y, z, w, y); }
  1337. }
  1338. /// <summary>Swizzles the vector.</summary>
  1339. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1340. public int4 yzwz
  1341. {
  1342. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1343. get { return new int4(y, z, w, z); }
  1344. }
  1345. /// <summary>Swizzles the vector.</summary>
  1346. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1347. public int4 yzww
  1348. {
  1349. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1350. get { return new int4(y, z, w, w); }
  1351. }
  1352. /// <summary>Swizzles the vector.</summary>
  1353. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1354. public int4 ywxx
  1355. {
  1356. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1357. get { return new int4(y, w, x, x); }
  1358. }
  1359. /// <summary>Swizzles the vector.</summary>
  1360. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1361. public int4 ywxy
  1362. {
  1363. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1364. get { return new int4(y, w, x, y); }
  1365. }
  1366. /// <summary>Swizzles the vector.</summary>
  1367. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1368. public int4 ywxz
  1369. {
  1370. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1371. get { return new int4(y, w, x, z); }
  1372. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1373. set { y = value.x; w = value.y; x = value.z; z = value.w; }
  1374. }
  1375. /// <summary>Swizzles the vector.</summary>
  1376. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1377. public int4 ywxw
  1378. {
  1379. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1380. get { return new int4(y, w, x, w); }
  1381. }
  1382. /// <summary>Swizzles the vector.</summary>
  1383. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1384. public int4 ywyx
  1385. {
  1386. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1387. get { return new int4(y, w, y, x); }
  1388. }
  1389. /// <summary>Swizzles the vector.</summary>
  1390. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1391. public int4 ywyy
  1392. {
  1393. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1394. get { return new int4(y, w, y, y); }
  1395. }
  1396. /// <summary>Swizzles the vector.</summary>
  1397. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1398. public int4 ywyz
  1399. {
  1400. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1401. get { return new int4(y, w, y, z); }
  1402. }
  1403. /// <summary>Swizzles the vector.</summary>
  1404. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1405. public int4 ywyw
  1406. {
  1407. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1408. get { return new int4(y, w, y, w); }
  1409. }
  1410. /// <summary>Swizzles the vector.</summary>
  1411. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1412. public int4 ywzx
  1413. {
  1414. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1415. get { return new int4(y, w, z, x); }
  1416. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1417. set { y = value.x; w = value.y; z = value.z; x = value.w; }
  1418. }
  1419. /// <summary>Swizzles the vector.</summary>
  1420. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1421. public int4 ywzy
  1422. {
  1423. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1424. get { return new int4(y, w, z, y); }
  1425. }
  1426. /// <summary>Swizzles the vector.</summary>
  1427. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1428. public int4 ywzz
  1429. {
  1430. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1431. get { return new int4(y, w, z, z); }
  1432. }
  1433. /// <summary>Swizzles the vector.</summary>
  1434. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1435. public int4 ywzw
  1436. {
  1437. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1438. get { return new int4(y, w, z, w); }
  1439. }
  1440. /// <summary>Swizzles the vector.</summary>
  1441. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1442. public int4 ywwx
  1443. {
  1444. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1445. get { return new int4(y, w, w, x); }
  1446. }
  1447. /// <summary>Swizzles the vector.</summary>
  1448. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1449. public int4 ywwy
  1450. {
  1451. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1452. get { return new int4(y, w, w, y); }
  1453. }
  1454. /// <summary>Swizzles the vector.</summary>
  1455. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1456. public int4 ywwz
  1457. {
  1458. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1459. get { return new int4(y, w, w, z); }
  1460. }
  1461. /// <summary>Swizzles the vector.</summary>
  1462. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1463. public int4 ywww
  1464. {
  1465. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1466. get { return new int4(y, w, w, w); }
  1467. }
  1468. /// <summary>Swizzles the vector.</summary>
  1469. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1470. public int4 zxxx
  1471. {
  1472. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1473. get { return new int4(z, x, x, x); }
  1474. }
  1475. /// <summary>Swizzles the vector.</summary>
  1476. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1477. public int4 zxxy
  1478. {
  1479. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1480. get { return new int4(z, x, x, y); }
  1481. }
  1482. /// <summary>Swizzles the vector.</summary>
  1483. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1484. public int4 zxxz
  1485. {
  1486. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1487. get { return new int4(z, x, x, z); }
  1488. }
  1489. /// <summary>Swizzles the vector.</summary>
  1490. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1491. public int4 zxxw
  1492. {
  1493. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1494. get { return new int4(z, x, x, w); }
  1495. }
  1496. /// <summary>Swizzles the vector.</summary>
  1497. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1498. public int4 zxyx
  1499. {
  1500. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1501. get { return new int4(z, x, y, x); }
  1502. }
  1503. /// <summary>Swizzles the vector.</summary>
  1504. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1505. public int4 zxyy
  1506. {
  1507. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1508. get { return new int4(z, x, y, y); }
  1509. }
  1510. /// <summary>Swizzles the vector.</summary>
  1511. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1512. public int4 zxyz
  1513. {
  1514. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1515. get { return new int4(z, x, y, z); }
  1516. }
  1517. /// <summary>Swizzles the vector.</summary>
  1518. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1519. public int4 zxyw
  1520. {
  1521. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1522. get { return new int4(z, x, y, w); }
  1523. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1524. set { z = value.x; x = value.y; y = value.z; w = value.w; }
  1525. }
  1526. /// <summary>Swizzles the vector.</summary>
  1527. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1528. public int4 zxzx
  1529. {
  1530. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1531. get { return new int4(z, x, z, x); }
  1532. }
  1533. /// <summary>Swizzles the vector.</summary>
  1534. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1535. public int4 zxzy
  1536. {
  1537. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1538. get { return new int4(z, x, z, y); }
  1539. }
  1540. /// <summary>Swizzles the vector.</summary>
  1541. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1542. public int4 zxzz
  1543. {
  1544. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1545. get { return new int4(z, x, z, z); }
  1546. }
  1547. /// <summary>Swizzles the vector.</summary>
  1548. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1549. public int4 zxzw
  1550. {
  1551. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1552. get { return new int4(z, x, z, w); }
  1553. }
  1554. /// <summary>Swizzles the vector.</summary>
  1555. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1556. public int4 zxwx
  1557. {
  1558. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1559. get { return new int4(z, x, w, x); }
  1560. }
  1561. /// <summary>Swizzles the vector.</summary>
  1562. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1563. public int4 zxwy
  1564. {
  1565. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1566. get { return new int4(z, x, w, y); }
  1567. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1568. set { z = value.x; x = value.y; w = value.z; y = value.w; }
  1569. }
  1570. /// <summary>Swizzles the vector.</summary>
  1571. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1572. public int4 zxwz
  1573. {
  1574. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1575. get { return new int4(z, x, w, z); }
  1576. }
  1577. /// <summary>Swizzles the vector.</summary>
  1578. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1579. public int4 zxww
  1580. {
  1581. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1582. get { return new int4(z, x, w, w); }
  1583. }
  1584. /// <summary>Swizzles the vector.</summary>
  1585. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1586. public int4 zyxx
  1587. {
  1588. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1589. get { return new int4(z, y, x, x); }
  1590. }
  1591. /// <summary>Swizzles the vector.</summary>
  1592. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1593. public int4 zyxy
  1594. {
  1595. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1596. get { return new int4(z, y, x, y); }
  1597. }
  1598. /// <summary>Swizzles the vector.</summary>
  1599. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1600. public int4 zyxz
  1601. {
  1602. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1603. get { return new int4(z, y, x, z); }
  1604. }
  1605. /// <summary>Swizzles the vector.</summary>
  1606. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1607. public int4 zyxw
  1608. {
  1609. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1610. get { return new int4(z, y, x, w); }
  1611. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1612. set { z = value.x; y = value.y; x = value.z; w = value.w; }
  1613. }
  1614. /// <summary>Swizzles the vector.</summary>
  1615. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1616. public int4 zyyx
  1617. {
  1618. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1619. get { return new int4(z, y, y, x); }
  1620. }
  1621. /// <summary>Swizzles the vector.</summary>
  1622. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1623. public int4 zyyy
  1624. {
  1625. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1626. get { return new int4(z, y, y, y); }
  1627. }
  1628. /// <summary>Swizzles the vector.</summary>
  1629. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1630. public int4 zyyz
  1631. {
  1632. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1633. get { return new int4(z, y, y, z); }
  1634. }
  1635. /// <summary>Swizzles the vector.</summary>
  1636. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1637. public int4 zyyw
  1638. {
  1639. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1640. get { return new int4(z, y, y, w); }
  1641. }
  1642. /// <summary>Swizzles the vector.</summary>
  1643. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1644. public int4 zyzx
  1645. {
  1646. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1647. get { return new int4(z, y, z, x); }
  1648. }
  1649. /// <summary>Swizzles the vector.</summary>
  1650. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1651. public int4 zyzy
  1652. {
  1653. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1654. get { return new int4(z, y, z, y); }
  1655. }
  1656. /// <summary>Swizzles the vector.</summary>
  1657. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1658. public int4 zyzz
  1659. {
  1660. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1661. get { return new int4(z, y, z, z); }
  1662. }
  1663. /// <summary>Swizzles the vector.</summary>
  1664. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1665. public int4 zyzw
  1666. {
  1667. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1668. get { return new int4(z, y, z, w); }
  1669. }
  1670. /// <summary>Swizzles the vector.</summary>
  1671. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1672. public int4 zywx
  1673. {
  1674. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1675. get { return new int4(z, y, w, x); }
  1676. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1677. set { z = value.x; y = value.y; w = value.z; x = value.w; }
  1678. }
  1679. /// <summary>Swizzles the vector.</summary>
  1680. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1681. public int4 zywy
  1682. {
  1683. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1684. get { return new int4(z, y, w, y); }
  1685. }
  1686. /// <summary>Swizzles the vector.</summary>
  1687. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1688. public int4 zywz
  1689. {
  1690. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1691. get { return new int4(z, y, w, z); }
  1692. }
  1693. /// <summary>Swizzles the vector.</summary>
  1694. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1695. public int4 zyww
  1696. {
  1697. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1698. get { return new int4(z, y, w, w); }
  1699. }
  1700. /// <summary>Swizzles the vector.</summary>
  1701. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1702. public int4 zzxx
  1703. {
  1704. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1705. get { return new int4(z, z, x, x); }
  1706. }
  1707. /// <summary>Swizzles the vector.</summary>
  1708. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1709. public int4 zzxy
  1710. {
  1711. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1712. get { return new int4(z, z, x, y); }
  1713. }
  1714. /// <summary>Swizzles the vector.</summary>
  1715. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1716. public int4 zzxz
  1717. {
  1718. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1719. get { return new int4(z, z, x, z); }
  1720. }
  1721. /// <summary>Swizzles the vector.</summary>
  1722. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1723. public int4 zzxw
  1724. {
  1725. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1726. get { return new int4(z, z, x, w); }
  1727. }
  1728. /// <summary>Swizzles the vector.</summary>
  1729. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1730. public int4 zzyx
  1731. {
  1732. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1733. get { return new int4(z, z, y, x); }
  1734. }
  1735. /// <summary>Swizzles the vector.</summary>
  1736. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1737. public int4 zzyy
  1738. {
  1739. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1740. get { return new int4(z, z, y, y); }
  1741. }
  1742. /// <summary>Swizzles the vector.</summary>
  1743. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1744. public int4 zzyz
  1745. {
  1746. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1747. get { return new int4(z, z, y, z); }
  1748. }
  1749. /// <summary>Swizzles the vector.</summary>
  1750. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1751. public int4 zzyw
  1752. {
  1753. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1754. get { return new int4(z, z, y, w); }
  1755. }
  1756. /// <summary>Swizzles the vector.</summary>
  1757. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1758. public int4 zzzx
  1759. {
  1760. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1761. get { return new int4(z, z, z, x); }
  1762. }
  1763. /// <summary>Swizzles the vector.</summary>
  1764. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1765. public int4 zzzy
  1766. {
  1767. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1768. get { return new int4(z, z, z, y); }
  1769. }
  1770. /// <summary>Swizzles the vector.</summary>
  1771. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1772. public int4 zzzz
  1773. {
  1774. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1775. get { return new int4(z, z, z, z); }
  1776. }
  1777. /// <summary>Swizzles the vector.</summary>
  1778. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1779. public int4 zzzw
  1780. {
  1781. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1782. get { return new int4(z, z, z, w); }
  1783. }
  1784. /// <summary>Swizzles the vector.</summary>
  1785. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1786. public int4 zzwx
  1787. {
  1788. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1789. get { return new int4(z, z, w, x); }
  1790. }
  1791. /// <summary>Swizzles the vector.</summary>
  1792. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1793. public int4 zzwy
  1794. {
  1795. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1796. get { return new int4(z, z, w, y); }
  1797. }
  1798. /// <summary>Swizzles the vector.</summary>
  1799. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1800. public int4 zzwz
  1801. {
  1802. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1803. get { return new int4(z, z, w, z); }
  1804. }
  1805. /// <summary>Swizzles the vector.</summary>
  1806. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1807. public int4 zzww
  1808. {
  1809. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1810. get { return new int4(z, z, w, w); }
  1811. }
  1812. /// <summary>Swizzles the vector.</summary>
  1813. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1814. public int4 zwxx
  1815. {
  1816. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1817. get { return new int4(z, w, x, x); }
  1818. }
  1819. /// <summary>Swizzles the vector.</summary>
  1820. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1821. public int4 zwxy
  1822. {
  1823. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1824. get { return new int4(z, w, x, y); }
  1825. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1826. set { z = value.x; w = value.y; x = value.z; y = value.w; }
  1827. }
  1828. /// <summary>Swizzles the vector.</summary>
  1829. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1830. public int4 zwxz
  1831. {
  1832. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1833. get { return new int4(z, w, x, z); }
  1834. }
  1835. /// <summary>Swizzles the vector.</summary>
  1836. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1837. public int4 zwxw
  1838. {
  1839. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1840. get { return new int4(z, w, x, w); }
  1841. }
  1842. /// <summary>Swizzles the vector.</summary>
  1843. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1844. public int4 zwyx
  1845. {
  1846. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1847. get { return new int4(z, w, y, x); }
  1848. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1849. set { z = value.x; w = value.y; y = value.z; x = value.w; }
  1850. }
  1851. /// <summary>Swizzles the vector.</summary>
  1852. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1853. public int4 zwyy
  1854. {
  1855. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1856. get { return new int4(z, w, y, y); }
  1857. }
  1858. /// <summary>Swizzles the vector.</summary>
  1859. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1860. public int4 zwyz
  1861. {
  1862. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1863. get { return new int4(z, w, y, z); }
  1864. }
  1865. /// <summary>Swizzles the vector.</summary>
  1866. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1867. public int4 zwyw
  1868. {
  1869. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1870. get { return new int4(z, w, y, w); }
  1871. }
  1872. /// <summary>Swizzles the vector.</summary>
  1873. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1874. public int4 zwzx
  1875. {
  1876. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1877. get { return new int4(z, w, z, x); }
  1878. }
  1879. /// <summary>Swizzles the vector.</summary>
  1880. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1881. public int4 zwzy
  1882. {
  1883. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1884. get { return new int4(z, w, z, y); }
  1885. }
  1886. /// <summary>Swizzles the vector.</summary>
  1887. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1888. public int4 zwzz
  1889. {
  1890. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1891. get { return new int4(z, w, z, z); }
  1892. }
  1893. /// <summary>Swizzles the vector.</summary>
  1894. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1895. public int4 zwzw
  1896. {
  1897. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1898. get { return new int4(z, w, z, w); }
  1899. }
  1900. /// <summary>Swizzles the vector.</summary>
  1901. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1902. public int4 zwwx
  1903. {
  1904. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1905. get { return new int4(z, w, w, x); }
  1906. }
  1907. /// <summary>Swizzles the vector.</summary>
  1908. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1909. public int4 zwwy
  1910. {
  1911. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1912. get { return new int4(z, w, w, y); }
  1913. }
  1914. /// <summary>Swizzles the vector.</summary>
  1915. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1916. public int4 zwwz
  1917. {
  1918. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1919. get { return new int4(z, w, w, z); }
  1920. }
  1921. /// <summary>Swizzles the vector.</summary>
  1922. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1923. public int4 zwww
  1924. {
  1925. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1926. get { return new int4(z, w, w, w); }
  1927. }
  1928. /// <summary>Swizzles the vector.</summary>
  1929. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1930. public int4 wxxx
  1931. {
  1932. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1933. get { return new int4(w, x, x, x); }
  1934. }
  1935. /// <summary>Swizzles the vector.</summary>
  1936. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1937. public int4 wxxy
  1938. {
  1939. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1940. get { return new int4(w, x, x, y); }
  1941. }
  1942. /// <summary>Swizzles the vector.</summary>
  1943. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1944. public int4 wxxz
  1945. {
  1946. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1947. get { return new int4(w, x, x, z); }
  1948. }
  1949. /// <summary>Swizzles the vector.</summary>
  1950. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1951. public int4 wxxw
  1952. {
  1953. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1954. get { return new int4(w, x, x, w); }
  1955. }
  1956. /// <summary>Swizzles the vector.</summary>
  1957. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1958. public int4 wxyx
  1959. {
  1960. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1961. get { return new int4(w, x, y, x); }
  1962. }
  1963. /// <summary>Swizzles the vector.</summary>
  1964. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1965. public int4 wxyy
  1966. {
  1967. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1968. get { return new int4(w, x, y, y); }
  1969. }
  1970. /// <summary>Swizzles the vector.</summary>
  1971. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1972. public int4 wxyz
  1973. {
  1974. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1975. get { return new int4(w, x, y, z); }
  1976. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1977. set { w = value.x; x = value.y; y = value.z; z = value.w; }
  1978. }
  1979. /// <summary>Swizzles the vector.</summary>
  1980. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1981. public int4 wxyw
  1982. {
  1983. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1984. get { return new int4(w, x, y, w); }
  1985. }
  1986. /// <summary>Swizzles the vector.</summary>
  1987. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1988. public int4 wxzx
  1989. {
  1990. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1991. get { return new int4(w, x, z, x); }
  1992. }
  1993. /// <summary>Swizzles the vector.</summary>
  1994. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1995. public int4 wxzy
  1996. {
  1997. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1998. get { return new int4(w, x, z, y); }
  1999. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2000. set { w = value.x; x = value.y; z = value.z; y = value.w; }
  2001. }
  2002. /// <summary>Swizzles the vector.</summary>
  2003. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2004. public int4 wxzz
  2005. {
  2006. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2007. get { return new int4(w, x, z, z); }
  2008. }
  2009. /// <summary>Swizzles the vector.</summary>
  2010. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2011. public int4 wxzw
  2012. {
  2013. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2014. get { return new int4(w, x, z, w); }
  2015. }
  2016. /// <summary>Swizzles the vector.</summary>
  2017. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2018. public int4 wxwx
  2019. {
  2020. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2021. get { return new int4(w, x, w, x); }
  2022. }
  2023. /// <summary>Swizzles the vector.</summary>
  2024. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2025. public int4 wxwy
  2026. {
  2027. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2028. get { return new int4(w, x, w, y); }
  2029. }
  2030. /// <summary>Swizzles the vector.</summary>
  2031. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2032. public int4 wxwz
  2033. {
  2034. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2035. get { return new int4(w, x, w, z); }
  2036. }
  2037. /// <summary>Swizzles the vector.</summary>
  2038. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2039. public int4 wxww
  2040. {
  2041. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2042. get { return new int4(w, x, w, w); }
  2043. }
  2044. /// <summary>Swizzles the vector.</summary>
  2045. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2046. public int4 wyxx
  2047. {
  2048. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2049. get { return new int4(w, y, x, x); }
  2050. }
  2051. /// <summary>Swizzles the vector.</summary>
  2052. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2053. public int4 wyxy
  2054. {
  2055. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2056. get { return new int4(w, y, x, y); }
  2057. }
  2058. /// <summary>Swizzles the vector.</summary>
  2059. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2060. public int4 wyxz
  2061. {
  2062. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2063. get { return new int4(w, y, x, z); }
  2064. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2065. set { w = value.x; y = value.y; x = value.z; z = value.w; }
  2066. }
  2067. /// <summary>Swizzles the vector.</summary>
  2068. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2069. public int4 wyxw
  2070. {
  2071. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2072. get { return new int4(w, y, x, w); }
  2073. }
  2074. /// <summary>Swizzles the vector.</summary>
  2075. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2076. public int4 wyyx
  2077. {
  2078. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2079. get { return new int4(w, y, y, x); }
  2080. }
  2081. /// <summary>Swizzles the vector.</summary>
  2082. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2083. public int4 wyyy
  2084. {
  2085. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2086. get { return new int4(w, y, y, y); }
  2087. }
  2088. /// <summary>Swizzles the vector.</summary>
  2089. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2090. public int4 wyyz
  2091. {
  2092. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2093. get { return new int4(w, y, y, z); }
  2094. }
  2095. /// <summary>Swizzles the vector.</summary>
  2096. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2097. public int4 wyyw
  2098. {
  2099. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2100. get { return new int4(w, y, y, w); }
  2101. }
  2102. /// <summary>Swizzles the vector.</summary>
  2103. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2104. public int4 wyzx
  2105. {
  2106. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2107. get { return new int4(w, y, z, x); }
  2108. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2109. set { w = value.x; y = value.y; z = value.z; x = value.w; }
  2110. }
  2111. /// <summary>Swizzles the vector.</summary>
  2112. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2113. public int4 wyzy
  2114. {
  2115. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2116. get { return new int4(w, y, z, y); }
  2117. }
  2118. /// <summary>Swizzles the vector.</summary>
  2119. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2120. public int4 wyzz
  2121. {
  2122. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2123. get { return new int4(w, y, z, z); }
  2124. }
  2125. /// <summary>Swizzles the vector.</summary>
  2126. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2127. public int4 wyzw
  2128. {
  2129. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2130. get { return new int4(w, y, z, w); }
  2131. }
  2132. /// <summary>Swizzles the vector.</summary>
  2133. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2134. public int4 wywx
  2135. {
  2136. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2137. get { return new int4(w, y, w, x); }
  2138. }
  2139. /// <summary>Swizzles the vector.</summary>
  2140. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2141. public int4 wywy
  2142. {
  2143. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2144. get { return new int4(w, y, w, y); }
  2145. }
  2146. /// <summary>Swizzles the vector.</summary>
  2147. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2148. public int4 wywz
  2149. {
  2150. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2151. get { return new int4(w, y, w, z); }
  2152. }
  2153. /// <summary>Swizzles the vector.</summary>
  2154. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2155. public int4 wyww
  2156. {
  2157. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2158. get { return new int4(w, y, w, w); }
  2159. }
  2160. /// <summary>Swizzles the vector.</summary>
  2161. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2162. public int4 wzxx
  2163. {
  2164. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2165. get { return new int4(w, z, x, x); }
  2166. }
  2167. /// <summary>Swizzles the vector.</summary>
  2168. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2169. public int4 wzxy
  2170. {
  2171. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2172. get { return new int4(w, z, x, y); }
  2173. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2174. set { w = value.x; z = value.y; x = value.z; y = value.w; }
  2175. }
  2176. /// <summary>Swizzles the vector.</summary>
  2177. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2178. public int4 wzxz
  2179. {
  2180. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2181. get { return new int4(w, z, x, z); }
  2182. }
  2183. /// <summary>Swizzles the vector.</summary>
  2184. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2185. public int4 wzxw
  2186. {
  2187. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2188. get { return new int4(w, z, x, w); }
  2189. }
  2190. /// <summary>Swizzles the vector.</summary>
  2191. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2192. public int4 wzyx
  2193. {
  2194. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2195. get { return new int4(w, z, y, x); }
  2196. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2197. set { w = value.x; z = value.y; y = value.z; x = value.w; }
  2198. }
  2199. /// <summary>Swizzles the vector.</summary>
  2200. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2201. public int4 wzyy
  2202. {
  2203. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2204. get { return new int4(w, z, y, y); }
  2205. }
  2206. /// <summary>Swizzles the vector.</summary>
  2207. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2208. public int4 wzyz
  2209. {
  2210. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2211. get { return new int4(w, z, y, z); }
  2212. }
  2213. /// <summary>Swizzles the vector.</summary>
  2214. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2215. public int4 wzyw
  2216. {
  2217. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2218. get { return new int4(w, z, y, w); }
  2219. }
  2220. /// <summary>Swizzles the vector.</summary>
  2221. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2222. public int4 wzzx
  2223. {
  2224. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2225. get { return new int4(w, z, z, x); }
  2226. }
  2227. /// <summary>Swizzles the vector.</summary>
  2228. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2229. public int4 wzzy
  2230. {
  2231. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2232. get { return new int4(w, z, z, y); }
  2233. }
  2234. /// <summary>Swizzles the vector.</summary>
  2235. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2236. public int4 wzzz
  2237. {
  2238. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2239. get { return new int4(w, z, z, z); }
  2240. }
  2241. /// <summary>Swizzles the vector.</summary>
  2242. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2243. public int4 wzzw
  2244. {
  2245. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2246. get { return new int4(w, z, z, w); }
  2247. }
  2248. /// <summary>Swizzles the vector.</summary>
  2249. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2250. public int4 wzwx
  2251. {
  2252. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2253. get { return new int4(w, z, w, x); }
  2254. }
  2255. /// <summary>Swizzles the vector.</summary>
  2256. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2257. public int4 wzwy
  2258. {
  2259. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2260. get { return new int4(w, z, w, y); }
  2261. }
  2262. /// <summary>Swizzles the vector.</summary>
  2263. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2264. public int4 wzwz
  2265. {
  2266. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2267. get { return new int4(w, z, w, z); }
  2268. }
  2269. /// <summary>Swizzles the vector.</summary>
  2270. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2271. public int4 wzww
  2272. {
  2273. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2274. get { return new int4(w, z, w, w); }
  2275. }
  2276. /// <summary>Swizzles the vector.</summary>
  2277. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2278. public int4 wwxx
  2279. {
  2280. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2281. get { return new int4(w, w, x, x); }
  2282. }
  2283. /// <summary>Swizzles the vector.</summary>
  2284. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2285. public int4 wwxy
  2286. {
  2287. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2288. get { return new int4(w, w, x, y); }
  2289. }
  2290. /// <summary>Swizzles the vector.</summary>
  2291. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2292. public int4 wwxz
  2293. {
  2294. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2295. get { return new int4(w, w, x, z); }
  2296. }
  2297. /// <summary>Swizzles the vector.</summary>
  2298. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2299. public int4 wwxw
  2300. {
  2301. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2302. get { return new int4(w, w, x, w); }
  2303. }
  2304. /// <summary>Swizzles the vector.</summary>
  2305. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2306. public int4 wwyx
  2307. {
  2308. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2309. get { return new int4(w, w, y, x); }
  2310. }
  2311. /// <summary>Swizzles the vector.</summary>
  2312. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2313. public int4 wwyy
  2314. {
  2315. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2316. get { return new int4(w, w, y, y); }
  2317. }
  2318. /// <summary>Swizzles the vector.</summary>
  2319. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2320. public int4 wwyz
  2321. {
  2322. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2323. get { return new int4(w, w, y, z); }
  2324. }
  2325. /// <summary>Swizzles the vector.</summary>
  2326. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2327. public int4 wwyw
  2328. {
  2329. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2330. get { return new int4(w, w, y, w); }
  2331. }
  2332. /// <summary>Swizzles the vector.</summary>
  2333. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2334. public int4 wwzx
  2335. {
  2336. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2337. get { return new int4(w, w, z, x); }
  2338. }
  2339. /// <summary>Swizzles the vector.</summary>
  2340. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2341. public int4 wwzy
  2342. {
  2343. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2344. get { return new int4(w, w, z, y); }
  2345. }
  2346. /// <summary>Swizzles the vector.</summary>
  2347. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2348. public int4 wwzz
  2349. {
  2350. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2351. get { return new int4(w, w, z, z); }
  2352. }
  2353. /// <summary>Swizzles the vector.</summary>
  2354. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2355. public int4 wwzw
  2356. {
  2357. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2358. get { return new int4(w, w, z, w); }
  2359. }
  2360. /// <summary>Swizzles the vector.</summary>
  2361. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2362. public int4 wwwx
  2363. {
  2364. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2365. get { return new int4(w, w, w, x); }
  2366. }
  2367. /// <summary>Swizzles the vector.</summary>
  2368. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2369. public int4 wwwy
  2370. {
  2371. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2372. get { return new int4(w, w, w, y); }
  2373. }
  2374. /// <summary>Swizzles the vector.</summary>
  2375. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2376. public int4 wwwz
  2377. {
  2378. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2379. get { return new int4(w, w, w, z); }
  2380. }
  2381. /// <summary>Swizzles the vector.</summary>
  2382. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2383. public int4 wwww
  2384. {
  2385. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2386. get { return new int4(w, w, w, w); }
  2387. }
  2388. /// <summary>Swizzles the vector.</summary>
  2389. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2390. public int3 xxx
  2391. {
  2392. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2393. get { return new int3(x, x, x); }
  2394. }
  2395. /// <summary>Swizzles the vector.</summary>
  2396. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2397. public int3 xxy
  2398. {
  2399. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2400. get { return new int3(x, x, y); }
  2401. }
  2402. /// <summary>Swizzles the vector.</summary>
  2403. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2404. public int3 xxz
  2405. {
  2406. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2407. get { return new int3(x, x, z); }
  2408. }
  2409. /// <summary>Swizzles the vector.</summary>
  2410. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2411. public int3 xxw
  2412. {
  2413. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2414. get { return new int3(x, x, w); }
  2415. }
  2416. /// <summary>Swizzles the vector.</summary>
  2417. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2418. public int3 xyx
  2419. {
  2420. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2421. get { return new int3(x, y, x); }
  2422. }
  2423. /// <summary>Swizzles the vector.</summary>
  2424. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2425. public int3 xyy
  2426. {
  2427. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2428. get { return new int3(x, y, y); }
  2429. }
  2430. /// <summary>Swizzles the vector.</summary>
  2431. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2432. public int3 xyz
  2433. {
  2434. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2435. get { return new int3(x, y, z); }
  2436. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2437. set { x = value.x; y = value.y; z = value.z; }
  2438. }
  2439. /// <summary>Swizzles the vector.</summary>
  2440. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2441. public int3 xyw
  2442. {
  2443. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2444. get { return new int3(x, y, w); }
  2445. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2446. set { x = value.x; y = value.y; w = value.z; }
  2447. }
  2448. /// <summary>Swizzles the vector.</summary>
  2449. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2450. public int3 xzx
  2451. {
  2452. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2453. get { return new int3(x, z, x); }
  2454. }
  2455. /// <summary>Swizzles the vector.</summary>
  2456. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2457. public int3 xzy
  2458. {
  2459. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2460. get { return new int3(x, z, y); }
  2461. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2462. set { x = value.x; z = value.y; y = value.z; }
  2463. }
  2464. /// <summary>Swizzles the vector.</summary>
  2465. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2466. public int3 xzz
  2467. {
  2468. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2469. get { return new int3(x, z, z); }
  2470. }
  2471. /// <summary>Swizzles the vector.</summary>
  2472. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2473. public int3 xzw
  2474. {
  2475. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2476. get { return new int3(x, z, w); }
  2477. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2478. set { x = value.x; z = value.y; w = value.z; }
  2479. }
  2480. /// <summary>Swizzles the vector.</summary>
  2481. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2482. public int3 xwx
  2483. {
  2484. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2485. get { return new int3(x, w, x); }
  2486. }
  2487. /// <summary>Swizzles the vector.</summary>
  2488. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2489. public int3 xwy
  2490. {
  2491. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2492. get { return new int3(x, w, y); }
  2493. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2494. set { x = value.x; w = value.y; y = value.z; }
  2495. }
  2496. /// <summary>Swizzles the vector.</summary>
  2497. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2498. public int3 xwz
  2499. {
  2500. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2501. get { return new int3(x, w, z); }
  2502. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2503. set { x = value.x; w = value.y; z = value.z; }
  2504. }
  2505. /// <summary>Swizzles the vector.</summary>
  2506. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2507. public int3 xww
  2508. {
  2509. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2510. get { return new int3(x, w, w); }
  2511. }
  2512. /// <summary>Swizzles the vector.</summary>
  2513. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2514. public int3 yxx
  2515. {
  2516. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2517. get { return new int3(y, x, x); }
  2518. }
  2519. /// <summary>Swizzles the vector.</summary>
  2520. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2521. public int3 yxy
  2522. {
  2523. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2524. get { return new int3(y, x, y); }
  2525. }
  2526. /// <summary>Swizzles the vector.</summary>
  2527. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2528. public int3 yxz
  2529. {
  2530. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2531. get { return new int3(y, x, z); }
  2532. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2533. set { y = value.x; x = value.y; z = value.z; }
  2534. }
  2535. /// <summary>Swizzles the vector.</summary>
  2536. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2537. public int3 yxw
  2538. {
  2539. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2540. get { return new int3(y, x, w); }
  2541. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2542. set { y = value.x; x = value.y; w = value.z; }
  2543. }
  2544. /// <summary>Swizzles the vector.</summary>
  2545. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2546. public int3 yyx
  2547. {
  2548. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2549. get { return new int3(y, y, x); }
  2550. }
  2551. /// <summary>Swizzles the vector.</summary>
  2552. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2553. public int3 yyy
  2554. {
  2555. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2556. get { return new int3(y, y, y); }
  2557. }
  2558. /// <summary>Swizzles the vector.</summary>
  2559. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2560. public int3 yyz
  2561. {
  2562. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2563. get { return new int3(y, y, z); }
  2564. }
  2565. /// <summary>Swizzles the vector.</summary>
  2566. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2567. public int3 yyw
  2568. {
  2569. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2570. get { return new int3(y, y, w); }
  2571. }
  2572. /// <summary>Swizzles the vector.</summary>
  2573. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2574. public int3 yzx
  2575. {
  2576. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2577. get { return new int3(y, z, x); }
  2578. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2579. set { y = value.x; z = value.y; x = value.z; }
  2580. }
  2581. /// <summary>Swizzles the vector.</summary>
  2582. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2583. public int3 yzy
  2584. {
  2585. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2586. get { return new int3(y, z, y); }
  2587. }
  2588. /// <summary>Swizzles the vector.</summary>
  2589. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2590. public int3 yzz
  2591. {
  2592. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2593. get { return new int3(y, z, z); }
  2594. }
  2595. /// <summary>Swizzles the vector.</summary>
  2596. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2597. public int3 yzw
  2598. {
  2599. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2600. get { return new int3(y, z, w); }
  2601. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2602. set { y = value.x; z = value.y; w = value.z; }
  2603. }
  2604. /// <summary>Swizzles the vector.</summary>
  2605. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2606. public int3 ywx
  2607. {
  2608. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2609. get { return new int3(y, w, x); }
  2610. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2611. set { y = value.x; w = value.y; x = value.z; }
  2612. }
  2613. /// <summary>Swizzles the vector.</summary>
  2614. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2615. public int3 ywy
  2616. {
  2617. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2618. get { return new int3(y, w, y); }
  2619. }
  2620. /// <summary>Swizzles the vector.</summary>
  2621. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2622. public int3 ywz
  2623. {
  2624. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2625. get { return new int3(y, w, z); }
  2626. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2627. set { y = value.x; w = value.y; z = value.z; }
  2628. }
  2629. /// <summary>Swizzles the vector.</summary>
  2630. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2631. public int3 yww
  2632. {
  2633. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2634. get { return new int3(y, w, w); }
  2635. }
  2636. /// <summary>Swizzles the vector.</summary>
  2637. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2638. public int3 zxx
  2639. {
  2640. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2641. get { return new int3(z, x, x); }
  2642. }
  2643. /// <summary>Swizzles the vector.</summary>
  2644. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2645. public int3 zxy
  2646. {
  2647. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2648. get { return new int3(z, x, y); }
  2649. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2650. set { z = value.x; x = value.y; y = value.z; }
  2651. }
  2652. /// <summary>Swizzles the vector.</summary>
  2653. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2654. public int3 zxz
  2655. {
  2656. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2657. get { return new int3(z, x, z); }
  2658. }
  2659. /// <summary>Swizzles the vector.</summary>
  2660. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2661. public int3 zxw
  2662. {
  2663. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2664. get { return new int3(z, x, w); }
  2665. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2666. set { z = value.x; x = value.y; w = value.z; }
  2667. }
  2668. /// <summary>Swizzles the vector.</summary>
  2669. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2670. public int3 zyx
  2671. {
  2672. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2673. get { return new int3(z, y, x); }
  2674. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2675. set { z = value.x; y = value.y; x = value.z; }
  2676. }
  2677. /// <summary>Swizzles the vector.</summary>
  2678. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2679. public int3 zyy
  2680. {
  2681. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2682. get { return new int3(z, y, y); }
  2683. }
  2684. /// <summary>Swizzles the vector.</summary>
  2685. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2686. public int3 zyz
  2687. {
  2688. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2689. get { return new int3(z, y, z); }
  2690. }
  2691. /// <summary>Swizzles the vector.</summary>
  2692. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2693. public int3 zyw
  2694. {
  2695. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2696. get { return new int3(z, y, w); }
  2697. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2698. set { z = value.x; y = value.y; w = value.z; }
  2699. }
  2700. /// <summary>Swizzles the vector.</summary>
  2701. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2702. public int3 zzx
  2703. {
  2704. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2705. get { return new int3(z, z, x); }
  2706. }
  2707. /// <summary>Swizzles the vector.</summary>
  2708. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2709. public int3 zzy
  2710. {
  2711. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2712. get { return new int3(z, z, y); }
  2713. }
  2714. /// <summary>Swizzles the vector.</summary>
  2715. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2716. public int3 zzz
  2717. {
  2718. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2719. get { return new int3(z, z, z); }
  2720. }
  2721. /// <summary>Swizzles the vector.</summary>
  2722. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2723. public int3 zzw
  2724. {
  2725. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2726. get { return new int3(z, z, w); }
  2727. }
  2728. /// <summary>Swizzles the vector.</summary>
  2729. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2730. public int3 zwx
  2731. {
  2732. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2733. get { return new int3(z, w, x); }
  2734. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2735. set { z = value.x; w = value.y; x = value.z; }
  2736. }
  2737. /// <summary>Swizzles the vector.</summary>
  2738. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2739. public int3 zwy
  2740. {
  2741. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2742. get { return new int3(z, w, y); }
  2743. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2744. set { z = value.x; w = value.y; y = value.z; }
  2745. }
  2746. /// <summary>Swizzles the vector.</summary>
  2747. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2748. public int3 zwz
  2749. {
  2750. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2751. get { return new int3(z, w, z); }
  2752. }
  2753. /// <summary>Swizzles the vector.</summary>
  2754. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2755. public int3 zww
  2756. {
  2757. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2758. get { return new int3(z, w, w); }
  2759. }
  2760. /// <summary>Swizzles the vector.</summary>
  2761. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2762. public int3 wxx
  2763. {
  2764. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2765. get { return new int3(w, x, x); }
  2766. }
  2767. /// <summary>Swizzles the vector.</summary>
  2768. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2769. public int3 wxy
  2770. {
  2771. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2772. get { return new int3(w, x, y); }
  2773. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2774. set { w = value.x; x = value.y; y = value.z; }
  2775. }
  2776. /// <summary>Swizzles the vector.</summary>
  2777. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2778. public int3 wxz
  2779. {
  2780. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2781. get { return new int3(w, x, z); }
  2782. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2783. set { w = value.x; x = value.y; z = value.z; }
  2784. }
  2785. /// <summary>Swizzles the vector.</summary>
  2786. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2787. public int3 wxw
  2788. {
  2789. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2790. get { return new int3(w, x, w); }
  2791. }
  2792. /// <summary>Swizzles the vector.</summary>
  2793. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2794. public int3 wyx
  2795. {
  2796. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2797. get { return new int3(w, y, x); }
  2798. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2799. set { w = value.x; y = value.y; x = value.z; }
  2800. }
  2801. /// <summary>Swizzles the vector.</summary>
  2802. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2803. public int3 wyy
  2804. {
  2805. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2806. get { return new int3(w, y, y); }
  2807. }
  2808. /// <summary>Swizzles the vector.</summary>
  2809. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2810. public int3 wyz
  2811. {
  2812. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2813. get { return new int3(w, y, z); }
  2814. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2815. set { w = value.x; y = value.y; z = value.z; }
  2816. }
  2817. /// <summary>Swizzles the vector.</summary>
  2818. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2819. public int3 wyw
  2820. {
  2821. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2822. get { return new int3(w, y, w); }
  2823. }
  2824. /// <summary>Swizzles the vector.</summary>
  2825. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2826. public int3 wzx
  2827. {
  2828. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2829. get { return new int3(w, z, x); }
  2830. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2831. set { w = value.x; z = value.y; x = value.z; }
  2832. }
  2833. /// <summary>Swizzles the vector.</summary>
  2834. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2835. public int3 wzy
  2836. {
  2837. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2838. get { return new int3(w, z, y); }
  2839. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2840. set { w = value.x; z = value.y; y = value.z; }
  2841. }
  2842. /// <summary>Swizzles the vector.</summary>
  2843. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2844. public int3 wzz
  2845. {
  2846. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2847. get { return new int3(w, z, z); }
  2848. }
  2849. /// <summary>Swizzles the vector.</summary>
  2850. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2851. public int3 wzw
  2852. {
  2853. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2854. get { return new int3(w, z, w); }
  2855. }
  2856. /// <summary>Swizzles the vector.</summary>
  2857. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2858. public int3 wwx
  2859. {
  2860. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2861. get { return new int3(w, w, x); }
  2862. }
  2863. /// <summary>Swizzles the vector.</summary>
  2864. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2865. public int3 wwy
  2866. {
  2867. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2868. get { return new int3(w, w, y); }
  2869. }
  2870. /// <summary>Swizzles the vector.</summary>
  2871. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2872. public int3 wwz
  2873. {
  2874. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2875. get { return new int3(w, w, z); }
  2876. }
  2877. /// <summary>Swizzles the vector.</summary>
  2878. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2879. public int3 www
  2880. {
  2881. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2882. get { return new int3(w, w, w); }
  2883. }
  2884. /// <summary>Swizzles the vector.</summary>
  2885. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2886. public int2 xx
  2887. {
  2888. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2889. get { return new int2(x, x); }
  2890. }
  2891. /// <summary>Swizzles the vector.</summary>
  2892. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2893. public int2 xy
  2894. {
  2895. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2896. get { return new int2(x, y); }
  2897. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2898. set { x = value.x; y = value.y; }
  2899. }
  2900. /// <summary>Swizzles the vector.</summary>
  2901. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2902. public int2 xz
  2903. {
  2904. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2905. get { return new int2(x, z); }
  2906. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2907. set { x = value.x; z = value.y; }
  2908. }
  2909. /// <summary>Swizzles the vector.</summary>
  2910. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2911. public int2 xw
  2912. {
  2913. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2914. get { return new int2(x, w); }
  2915. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2916. set { x = value.x; w = value.y; }
  2917. }
  2918. /// <summary>Swizzles the vector.</summary>
  2919. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2920. public int2 yx
  2921. {
  2922. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2923. get { return new int2(y, x); }
  2924. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2925. set { y = value.x; x = value.y; }
  2926. }
  2927. /// <summary>Swizzles the vector.</summary>
  2928. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2929. public int2 yy
  2930. {
  2931. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2932. get { return new int2(y, y); }
  2933. }
  2934. /// <summary>Swizzles the vector.</summary>
  2935. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2936. public int2 yz
  2937. {
  2938. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2939. get { return new int2(y, z); }
  2940. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2941. set { y = value.x; z = value.y; }
  2942. }
  2943. /// <summary>Swizzles the vector.</summary>
  2944. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2945. public int2 yw
  2946. {
  2947. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2948. get { return new int2(y, w); }
  2949. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2950. set { y = value.x; w = value.y; }
  2951. }
  2952. /// <summary>Swizzles the vector.</summary>
  2953. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2954. public int2 zx
  2955. {
  2956. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2957. get { return new int2(z, x); }
  2958. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2959. set { z = value.x; x = value.y; }
  2960. }
  2961. /// <summary>Swizzles the vector.</summary>
  2962. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2963. public int2 zy
  2964. {
  2965. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2966. get { return new int2(z, y); }
  2967. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2968. set { z = value.x; y = value.y; }
  2969. }
  2970. /// <summary>Swizzles the vector.</summary>
  2971. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2972. public int2 zz
  2973. {
  2974. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2975. get { return new int2(z, z); }
  2976. }
  2977. /// <summary>Swizzles the vector.</summary>
  2978. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2979. public int2 zw
  2980. {
  2981. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2982. get { return new int2(z, w); }
  2983. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2984. set { z = value.x; w = value.y; }
  2985. }
  2986. /// <summary>Swizzles the vector.</summary>
  2987. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2988. public int2 wx
  2989. {
  2990. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2991. get { return new int2(w, x); }
  2992. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  2993. set { w = value.x; x = value.y; }
  2994. }
  2995. /// <summary>Swizzles the vector.</summary>
  2996. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  2997. public int2 wy
  2998. {
  2999. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  3000. get { return new int2(w, y); }
  3001. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  3002. set { w = value.x; y = value.y; }
  3003. }
  3004. /// <summary>Swizzles the vector.</summary>
  3005. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  3006. public int2 wz
  3007. {
  3008. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  3009. get { return new int2(w, z); }
  3010. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  3011. set { w = value.x; z = value.y; }
  3012. }
  3013. /// <summary>Swizzles the vector.</summary>
  3014. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  3015. public int2 ww
  3016. {
  3017. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  3018. get { return new int2(w, w); }
  3019. }
  3020. /// <summary>Returns the int element at a specified index.</summary>
  3021. unsafe public int this[int index]
  3022. {
  3023. get
  3024. {
  3025. #if ENABLE_UNITY_COLLECTIONS_CHECKS
  3026. if ((uint)index >= 4)
  3027. throw new System.ArgumentException("index must be between[0...3]");
  3028. #endif
  3029. fixed (int4* array = &this) { return ((int*)array)[index]; }
  3030. }
  3031. set
  3032. {
  3033. #if ENABLE_UNITY_COLLECTIONS_CHECKS
  3034. if ((uint)index >= 4)
  3035. throw new System.ArgumentException("index must be between[0...3]");
  3036. #endif
  3037. fixed (int* array = &x) { array[index] = value; }
  3038. }
  3039. }
  3040. /// <summary>Returns true if the int4 is equal to a given int4, false otherwise.</summary>
  3041. /// <param name="rhs">Right hand side argument to compare equality with.</param>
  3042. /// <returns>The result of the equality comparison.</returns>
  3043. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  3044. public bool Equals(int4 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; }
  3045. /// <summary>Returns true if the int4 is equal to a given int4, false otherwise.</summary>
  3046. /// <param name="o">Right hand side argument to compare equality with.</param>
  3047. /// <returns>The result of the equality comparison.</returns>
  3048. public override bool Equals(object o) { return o is int4 converted && Equals(converted); }
  3049. /// <summary>Returns a hash code for the int4.</summary>
  3050. /// <returns>The computed hash code.</returns>
  3051. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  3052. public override int GetHashCode() { return (int)math.hash(this); }
  3053. /// <summary>Returns a string representation of the int4.</summary>
  3054. /// <returns>String representation of the value.</returns>
  3055. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  3056. public override string ToString()
  3057. {
  3058. return string.Format("int4({0}, {1}, {2}, {3})", x, y, z, w);
  3059. }
  3060. /// <summary>Returns a string representation of the int4 using a specified format and culture-specific format information.</summary>
  3061. /// <param name="format">Format string to use during string formatting.</param>
  3062. /// <param name="formatProvider">Format provider to use during string formatting.</param>
  3063. /// <returns>String representation of the value.</returns>
  3064. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  3065. public string ToString(string format, IFormatProvider formatProvider)
  3066. {
  3067. return string.Format("int4({0}, {1}, {2}, {3})", x.ToString(format, formatProvider), y.ToString(format, formatProvider), z.ToString(format, formatProvider), w.ToString(format, formatProvider));
  3068. }
  3069. internal sealed class DebuggerProxy
  3070. {
  3071. public int x;
  3072. public int y;
  3073. public int z;
  3074. public int w;
  3075. public DebuggerProxy(int4 v)
  3076. {
  3077. x = v.x;
  3078. y = v.y;
  3079. z = v.z;
  3080. w = v.w;
  3081. }
  3082. }
  3083. }
  3084. public static partial class math
  3085. {
  3086. /// <summary>Returns a int4 vector constructed from four int values.</summary>
  3087. /// <param name="x">The constructed vector's x component will be set to this value.</param>
  3088. /// <param name="y">The constructed vector's y component will be set to this value.</param>
  3089. /// <param name="z">The constructed vector's z component will be set to this value.</param>
  3090. /// <param name="w">The constructed vector's w component will be set to this value.</param>
  3091. /// <returns>int4 constructed from arguments.</returns>
  3092. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  3093. public static int4 int4(int x, int y, int z, int w) { return new int4(x, y, z, w); }
  3094. /// <summary>Returns a int4 vector constructed from two int values and an int2 vector.</summary>
  3095. /// <param name="x">The constructed vector's x component will be set to this value.</param>
  3096. /// <param name="y">The constructed vector's y component will be set to this value.</param>
  3097. /// <param name="zw">The constructed vector's zw components will be set to this value.</param>
  3098. /// <returns>int4 constructed from arguments.</returns>
  3099. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  3100. public static int4 int4(int x, int y, int2 zw) { return new int4(x, y, zw); }
  3101. /// <summary>Returns a int4 vector constructed from an int value, an int2 vector and an int value.</summary>
  3102. /// <param name="x">The constructed vector's x component will be set to this value.</param>
  3103. /// <param name="yz">The constructed vector's yz components will be set to this value.</param>
  3104. /// <param name="w">The constructed vector's w component will be set to this value.</param>
  3105. /// <returns>int4 constructed from arguments.</returns>
  3106. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  3107. public static int4 int4(int x, int2 yz, int w) { return new int4(x, yz, w); }
  3108. /// <summary>Returns a int4 vector constructed from an int value and an int3 vector.</summary>
  3109. /// <param name="x">The constructed vector's x component will be set to this value.</param>
  3110. /// <param name="yzw">The constructed vector's yzw components will be set to this value.</param>
  3111. /// <returns>int4 constructed from arguments.</returns>
  3112. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  3113. public static int4 int4(int x, int3 yzw) { return new int4(x, yzw); }
  3114. /// <summary>Returns a int4 vector constructed from an int2 vector and two int values.</summary>
  3115. /// <param name="xy">The constructed vector's xy components will be set to this value.</param>
  3116. /// <param name="z">The constructed vector's z component will be set to this value.</param>
  3117. /// <param name="w">The constructed vector's w component will be set to this value.</param>
  3118. /// <returns>int4 constructed from arguments.</returns>
  3119. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  3120. public static int4 int4(int2 xy, int z, int w) { return new int4(xy, z, w); }
  3121. /// <summary>Returns a int4 vector constructed from two int2 vectors.</summary>
  3122. /// <param name="xy">The constructed vector's xy components will be set to this value.</param>
  3123. /// <param name="zw">The constructed vector's zw components will be set to this value.</param>
  3124. /// <returns>int4 constructed from arguments.</returns>
  3125. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  3126. public static int4 int4(int2 xy, int2 zw) { return new int4(xy, zw); }
  3127. /// <summary>Returns a int4 vector constructed from an int3 vector and an int value.</summary>
  3128. /// <param name="xyz">The constructed vector's xyz components will be set to this value.</param>
  3129. /// <param name="w">The constructed vector's w component will be set to this value.</param>
  3130. /// <returns>int4 constructed from arguments.</returns>
  3131. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  3132. public static int4 int4(int3 xyz, int w) { return new int4(xyz, w); }
  3133. /// <summary>Returns a int4 vector constructed from an int4 vector.</summary>
  3134. /// <param name="xyzw">The constructed vector's xyzw components will be set to this value.</param>
  3135. /// <returns>int4 constructed from arguments.</returns>
  3136. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  3137. public static int4 int4(int4 xyzw) { return new int4(xyzw); }
  3138. /// <summary>Returns a int4 vector constructed from a single int value by assigning it to every component.</summary>
  3139. /// <param name="v">int to convert to int4</param>
  3140. /// <returns>Converted value.</returns>
  3141. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  3142. public static int4 int4(int v) { return new int4(v); }
  3143. /// <summary>Returns a int4 vector constructed from a single bool value by converting it to int and assigning it to every component.</summary>
  3144. /// <param name="v">bool to convert to int4</param>
  3145. /// <returns>Converted value.</returns>
  3146. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  3147. public static int4 int4(bool v) { return new int4(v); }
  3148. /// <summary>Return a int4 vector constructed from a bool4 vector by componentwise conversion.</summary>
  3149. /// <param name="v">bool4 to convert to int4</param>
  3150. /// <returns>Converted value.</returns>
  3151. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  3152. public static int4 int4(bool4 v) { return new int4(v); }
  3153. /// <summary>Returns a int4 vector constructed from a single uint value by converting it to int and assigning it to every component.</summary>
  3154. /// <param name="v">uint to convert to int4</param>
  3155. /// <returns>Converted value.</returns>
  3156. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  3157. public static int4 int4(uint v) { return new int4(v); }
  3158. /// <summary>Return a int4 vector constructed from a uint4 vector by componentwise conversion.</summary>
  3159. /// <param name="v">uint4 to convert to int4</param>
  3160. /// <returns>Converted value.</returns>
  3161. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  3162. public static int4 int4(uint4 v) { return new int4(v); }
  3163. /// <summary>Returns a int4 vector constructed from a single float value by converting it to int and assigning it to every component.</summary>
  3164. /// <param name="v">float to convert to int4</param>
  3165. /// <returns>Converted value.</returns>
  3166. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  3167. public static int4 int4(float v) { return new int4(v); }
  3168. /// <summary>Return a int4 vector constructed from a float4 vector by componentwise conversion.</summary>
  3169. /// <param name="v">float4 to convert to int4</param>
  3170. /// <returns>Converted value.</returns>
  3171. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  3172. public static int4 int4(float4 v) { return new int4(v); }
  3173. /// <summary>Returns a int4 vector constructed from a single double value by converting it to int and assigning it to every component.</summary>
  3174. /// <param name="v">double to convert to int4</param>
  3175. /// <returns>Converted value.</returns>
  3176. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  3177. public static int4 int4(double v) { return new int4(v); }
  3178. /// <summary>Return a int4 vector constructed from a double4 vector by componentwise conversion.</summary>
  3179. /// <param name="v">double4 to convert to int4</param>
  3180. /// <returns>Converted value.</returns>
  3181. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  3182. public static int4 int4(double4 v) { return new int4(v); }
  3183. /// <summary>Returns a uint hash code of a int4 vector.</summary>
  3184. /// <param name="v">Vector value to hash.</param>
  3185. /// <returns>uint hash of the argument.</returns>
  3186. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  3187. public static uint hash(int4 v)
  3188. {
  3189. return csum(asuint(v) * uint4(0x6E050B01u, 0x750FDBF5u, 0x7F3DD499u, 0x52EAAEBBu)) + 0x4599C793u;
  3190. }
  3191. /// <summary>
  3192. /// Returns a uint4 vector hash code of a int4 vector.
  3193. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash
  3194. /// that are only reduced to a narrow uint hash at the very end instead of at every step.
  3195. /// </summary>
  3196. /// <param name="v">Vector value to hash.</param>
  3197. /// <returns>uint4 hash of the argument.</returns>
  3198. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  3199. public static uint4 hashwide(int4 v)
  3200. {
  3201. return (asuint(v) * uint4(0x83B5E729u, 0xC267163Fu, 0x67BC9149u, 0xAD7C5EC1u)) + 0x822A7D6Du;
  3202. }
  3203. /// <summary>Returns the result of specified shuffling of the components from two int4 vectors into an int value.</summary>
  3204. /// <param name="left">int4 to use as the left argument of the shuffle operation.</param>
  3205. /// <param name="right">int4 to use as the right argument of the shuffle operation.</param>
  3206. /// <param name="x">The ShuffleComponent to use when setting the resulting int.</param>
  3207. /// <returns>int result of the shuffle operation.</returns>
  3208. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  3209. public static int shuffle(int4 left, int4 right, ShuffleComponent x)
  3210. {
  3211. return select_shuffle_component(left, right, x);
  3212. }
  3213. /// <summary>Returns the result of specified shuffling of the components from two int4 vectors into an int2 vector.</summary>
  3214. /// <param name="left">int4 to use as the left argument of the shuffle operation.</param>
  3215. /// <param name="right">int4 to use as the right argument of the shuffle operation.</param>
  3216. /// <param name="x">The ShuffleComponent to use when setting the resulting int2 x component.</param>
  3217. /// <param name="y">The ShuffleComponent to use when setting the resulting int2 y component.</param>
  3218. /// <returns>int2 result of the shuffle operation.</returns>
  3219. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  3220. public static int2 shuffle(int4 left, int4 right, ShuffleComponent x, ShuffleComponent y)
  3221. {
  3222. return int2(
  3223. select_shuffle_component(left, right, x),
  3224. select_shuffle_component(left, right, y));
  3225. }
  3226. /// <summary>Returns the result of specified shuffling of the components from two int4 vectors into an int3 vector.</summary>
  3227. /// <param name="left">int4 to use as the left argument of the shuffle operation.</param>
  3228. /// <param name="right">int4 to use as the right argument of the shuffle operation.</param>
  3229. /// <param name="x">The ShuffleComponent to use when setting the resulting int3 x component.</param>
  3230. /// <param name="y">The ShuffleComponent to use when setting the resulting int3 y component.</param>
  3231. /// <param name="z">The ShuffleComponent to use when setting the resulting int3 z component.</param>
  3232. /// <returns>int3 result of the shuffle operation.</returns>
  3233. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  3234. public static int3 shuffle(int4 left, int4 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z)
  3235. {
  3236. return int3(
  3237. select_shuffle_component(left, right, x),
  3238. select_shuffle_component(left, right, y),
  3239. select_shuffle_component(left, right, z));
  3240. }
  3241. /// <summary>Returns the result of specified shuffling of the components from two int4 vectors into an int4 vector.</summary>
  3242. /// <param name="left">int4 to use as the left argument of the shuffle operation.</param>
  3243. /// <param name="right">int4 to use as the right argument of the shuffle operation.</param>
  3244. /// <param name="x">The ShuffleComponent to use when setting the resulting int4 x component.</param>
  3245. /// <param name="y">The ShuffleComponent to use when setting the resulting int4 y component.</param>
  3246. /// <param name="z">The ShuffleComponent to use when setting the resulting int4 z component.</param>
  3247. /// <param name="w">The ShuffleComponent to use when setting the resulting int4 w component.</param>
  3248. /// <returns>int4 result of the shuffle operation.</returns>
  3249. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  3250. public static int4 shuffle(int4 left, int4 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w)
  3251. {
  3252. return int4(
  3253. select_shuffle_component(left, right, x),
  3254. select_shuffle_component(left, right, y),
  3255. select_shuffle_component(left, right, z),
  3256. select_shuffle_component(left, right, w));
  3257. }
  3258. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  3259. internal static int select_shuffle_component(int4 a, int4 b, ShuffleComponent component)
  3260. {
  3261. switch(component)
  3262. {
  3263. case ShuffleComponent.LeftX:
  3264. return a.x;
  3265. case ShuffleComponent.LeftY:
  3266. return a.y;
  3267. case ShuffleComponent.LeftZ:
  3268. return a.z;
  3269. case ShuffleComponent.LeftW:
  3270. return a.w;
  3271. case ShuffleComponent.RightX:
  3272. return b.x;
  3273. case ShuffleComponent.RightY:
  3274. return b.y;
  3275. case ShuffleComponent.RightZ:
  3276. return b.z;
  3277. case ShuffleComponent.RightW:
  3278. return b.w;
  3279. default:
  3280. throw new System.ArgumentException("Invalid shuffle component: " + component);
  3281. }
  3282. }
  3283. }
  3284. }