doc.cpp 186 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409
  1. //
  2. // Copyright (C) 2014-2015 LunarG, Inc.
  3. // Modifications Copyright (C) 2020 Advanced Micro Devices, Inc. All rights reserved.
  4. //
  5. // All rights reserved.
  6. //
  7. // Redistribution and use in source and binary forms, with or without
  8. // modification, are permitted provided that the following conditions
  9. // are met:
  10. //
  11. // Redistributions of source code must retain the above copyright
  12. // notice, this list of conditions and the following disclaimer.
  13. //
  14. // Redistributions in binary form must reproduce the above
  15. // copyright notice, this list of conditions and the following
  16. // disclaimer in the documentation and/or other materials provided
  17. // with the distribution.
  18. //
  19. // Neither the name of 3Dlabs Inc. Ltd. nor the names of its
  20. // contributors may be used to endorse or promote products derived
  21. // from this software without specific prior written permission.
  22. //
  23. // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  24. // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  25. // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  26. // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  27. // COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  28. // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  29. // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  30. // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  31. // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  32. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
  33. // ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  34. // POSSIBILITY OF SUCH DAMAGE.
  35. //
  36. // 1) Programmatically fill in instruction/operand information.
  37. // This can be used for disassembly, printing documentation, etc.
  38. //
  39. // 2) Print documentation from this parameterization.
  40. //
  41. #include "doc.h"
  42. #include <cstdio>
  43. #include <cstring>
  44. #include <algorithm>
  45. #include <mutex>
  46. namespace spv {
  47. extern "C" {
  48. // Include C-based headers that don't have a namespace
  49. #include "GLSL.ext.KHR.h"
  50. #include "GLSL.ext.EXT.h"
  51. #include "GLSL.ext.AMD.h"
  52. #include "GLSL.ext.NV.h"
  53. #include "GLSL.ext.ARM.h"
  54. #include "GLSL.ext.QCOM.h"
  55. }
  56. }
  57. namespace spv {
  58. //
  59. // Whole set of functions that translate enumerants to their text strings for
  60. // the specification (or their sanitized versions for auto-generating the
  61. // spirv headers.
  62. //
  63. // Also, for masks the ceilings are declared next to these, to help keep them in sync.
  64. // Ceilings should be
  65. // - one more than the maximum value an enumerant takes on, for non-mask enumerants
  66. // (for non-sparse enums, this is the number of enumerants)
  67. // - the number of bits consumed by the set of masks
  68. // (for non-sparse mask enums, this is the number of enumerants)
  69. //
  70. const char* SourceString(int source)
  71. {
  72. switch (source) {
  73. case 0: return "Unknown";
  74. case 1: return "ESSL";
  75. case 2: return "GLSL";
  76. case 3: return "OpenCL_C";
  77. case 4: return "OpenCL_CPP";
  78. case 5: return "HLSL";
  79. default: return "Bad";
  80. }
  81. }
  82. const char* ExecutionModelString(int model)
  83. {
  84. switch (model) {
  85. case 0: return "Vertex";
  86. case 1: return "TessellationControl";
  87. case 2: return "TessellationEvaluation";
  88. case 3: return "Geometry";
  89. case 4: return "Fragment";
  90. case 5: return "GLCompute";
  91. case 6: return "Kernel";
  92. case ExecutionModelTaskNV: return "TaskNV";
  93. case ExecutionModelMeshNV: return "MeshNV";
  94. case ExecutionModelTaskEXT: return "TaskEXT";
  95. case ExecutionModelMeshEXT: return "MeshEXT";
  96. default: return "Bad";
  97. case ExecutionModelRayGenerationKHR: return "RayGenerationKHR";
  98. case ExecutionModelIntersectionKHR: return "IntersectionKHR";
  99. case ExecutionModelAnyHitKHR: return "AnyHitKHR";
  100. case ExecutionModelClosestHitKHR: return "ClosestHitKHR";
  101. case ExecutionModelMissKHR: return "MissKHR";
  102. case ExecutionModelCallableKHR: return "CallableKHR";
  103. }
  104. }
  105. const char* AddressingString(int addr)
  106. {
  107. switch (addr) {
  108. case 0: return "Logical";
  109. case 1: return "Physical32";
  110. case 2: return "Physical64";
  111. case AddressingModelPhysicalStorageBuffer64EXT: return "PhysicalStorageBuffer64EXT";
  112. default: return "Bad";
  113. }
  114. }
  115. const char* MemoryString(int mem)
  116. {
  117. switch (mem) {
  118. case MemoryModelSimple: return "Simple";
  119. case MemoryModelGLSL450: return "GLSL450";
  120. case MemoryModelOpenCL: return "OpenCL";
  121. case MemoryModelVulkanKHR: return "VulkanKHR";
  122. default: return "Bad";
  123. }
  124. }
  125. const int ExecutionModeCeiling = 40;
  126. const char* ExecutionModeString(int mode)
  127. {
  128. switch (mode) {
  129. case 0: return "Invocations";
  130. case 1: return "SpacingEqual";
  131. case 2: return "SpacingFractionalEven";
  132. case 3: return "SpacingFractionalOdd";
  133. case 4: return "VertexOrderCw";
  134. case 5: return "VertexOrderCcw";
  135. case 6: return "PixelCenterInteger";
  136. case 7: return "OriginUpperLeft";
  137. case 8: return "OriginLowerLeft";
  138. case 9: return "EarlyFragmentTests";
  139. case 10: return "PointMode";
  140. case 11: return "Xfb";
  141. case 12: return "DepthReplacing";
  142. case 13: return "Bad";
  143. case 14: return "DepthGreater";
  144. case 15: return "DepthLess";
  145. case 16: return "DepthUnchanged";
  146. case 17: return "LocalSize";
  147. case 18: return "LocalSizeHint";
  148. case 19: return "InputPoints";
  149. case 20: return "InputLines";
  150. case 21: return "InputLinesAdjacency";
  151. case 22: return "Triangles";
  152. case 23: return "InputTrianglesAdjacency";
  153. case 24: return "Quads";
  154. case 25: return "Isolines";
  155. case 26: return "OutputVertices";
  156. case 27: return "OutputPoints";
  157. case 28: return "OutputLineStrip";
  158. case 29: return "OutputTriangleStrip";
  159. case 30: return "VecTypeHint";
  160. case 31: return "ContractionOff";
  161. case 32: return "Bad";
  162. case ExecutionModeInitializer: return "Initializer";
  163. case ExecutionModeFinalizer: return "Finalizer";
  164. case ExecutionModeSubgroupSize: return "SubgroupSize";
  165. case ExecutionModeSubgroupsPerWorkgroup: return "SubgroupsPerWorkgroup";
  166. case ExecutionModeSubgroupsPerWorkgroupId: return "SubgroupsPerWorkgroupId";
  167. case ExecutionModeLocalSizeId: return "LocalSizeId";
  168. case ExecutionModeLocalSizeHintId: return "LocalSizeHintId";
  169. case ExecutionModePostDepthCoverage: return "PostDepthCoverage";
  170. case ExecutionModeDenormPreserve: return "DenormPreserve";
  171. case ExecutionModeDenormFlushToZero: return "DenormFlushToZero";
  172. case ExecutionModeSignedZeroInfNanPreserve: return "SignedZeroInfNanPreserve";
  173. case ExecutionModeRoundingModeRTE: return "RoundingModeRTE";
  174. case ExecutionModeRoundingModeRTZ: return "RoundingModeRTZ";
  175. case ExecutionModeEarlyAndLateFragmentTestsAMD: return "EarlyAndLateFragmentTestsAMD";
  176. case ExecutionModeStencilRefUnchangedFrontAMD: return "StencilRefUnchangedFrontAMD";
  177. case ExecutionModeStencilRefLessFrontAMD: return "StencilRefLessFrontAMD";
  178. case ExecutionModeStencilRefGreaterBackAMD: return "StencilRefGreaterBackAMD";
  179. case ExecutionModeStencilRefReplacingEXT: return "StencilRefReplacingEXT";
  180. case ExecutionModeSubgroupUniformControlFlowKHR: return "SubgroupUniformControlFlow";
  181. case ExecutionModeOutputLinesNV: return "OutputLinesNV";
  182. case ExecutionModeOutputPrimitivesNV: return "OutputPrimitivesNV";
  183. case ExecutionModeOutputTrianglesNV: return "OutputTrianglesNV";
  184. case ExecutionModeDerivativeGroupQuadsNV: return "DerivativeGroupQuadsNV";
  185. case ExecutionModeDerivativeGroupLinearNV: return "DerivativeGroupLinearNV";
  186. case ExecutionModePixelInterlockOrderedEXT: return "PixelInterlockOrderedEXT";
  187. case ExecutionModePixelInterlockUnorderedEXT: return "PixelInterlockUnorderedEXT";
  188. case ExecutionModeSampleInterlockOrderedEXT: return "SampleInterlockOrderedEXT";
  189. case ExecutionModeSampleInterlockUnorderedEXT: return "SampleInterlockUnorderedEXT";
  190. case ExecutionModeShadingRateInterlockOrderedEXT: return "ShadingRateInterlockOrderedEXT";
  191. case ExecutionModeShadingRateInterlockUnorderedEXT: return "ShadingRateInterlockUnorderedEXT";
  192. case ExecutionModeMaxWorkgroupSizeINTEL: return "MaxWorkgroupSizeINTEL";
  193. case ExecutionModeMaxWorkDimINTEL: return "MaxWorkDimINTEL";
  194. case ExecutionModeNoGlobalOffsetINTEL: return "NoGlobalOffsetINTEL";
  195. case ExecutionModeNumSIMDWorkitemsINTEL: return "NumSIMDWorkitemsINTEL";
  196. case ExecutionModeNonCoherentColorAttachmentReadEXT: return "NonCoherentColorAttachmentReadEXT";
  197. case ExecutionModeNonCoherentDepthAttachmentReadEXT: return "NonCoherentDepthAttachmentReadEXT";
  198. case ExecutionModeNonCoherentStencilAttachmentReadEXT: return "NonCoherentStencilAttachmentReadEXT";
  199. case ExecutionModeCeiling:
  200. default: return "Bad";
  201. }
  202. }
  203. const char* StorageClassString(int StorageClass)
  204. {
  205. switch (StorageClass) {
  206. case 0: return "UniformConstant";
  207. case 1: return "Input";
  208. case 2: return "Uniform";
  209. case 3: return "Output";
  210. case 4: return "Workgroup";
  211. case 5: return "CrossWorkgroup";
  212. case 6: return "Private";
  213. case 7: return "Function";
  214. case 8: return "Generic";
  215. case 9: return "PushConstant";
  216. case 10: return "AtomicCounter";
  217. case 11: return "Image";
  218. case 12: return "StorageBuffer";
  219. case StorageClassRayPayloadKHR: return "RayPayloadKHR";
  220. case StorageClassHitAttributeKHR: return "HitAttributeKHR";
  221. case StorageClassIncomingRayPayloadKHR: return "IncomingRayPayloadKHR";
  222. case StorageClassShaderRecordBufferKHR: return "ShaderRecordBufferKHR";
  223. case StorageClassCallableDataKHR: return "CallableDataKHR";
  224. case StorageClassIncomingCallableDataKHR: return "IncomingCallableDataKHR";
  225. case StorageClassPhysicalStorageBufferEXT: return "PhysicalStorageBufferEXT";
  226. case StorageClassTaskPayloadWorkgroupEXT: return "TaskPayloadWorkgroupEXT";
  227. case StorageClassHitObjectAttributeNV: return "HitObjectAttributeNV";
  228. case StorageClassTileImageEXT: return "TileImageEXT";
  229. default: return "Bad";
  230. }
  231. }
  232. const int DecorationCeiling = 45;
  233. const char* DecorationString(int decoration)
  234. {
  235. switch (decoration) {
  236. case 0: return "RelaxedPrecision";
  237. case 1: return "SpecId";
  238. case 2: return "Block";
  239. case 3: return "BufferBlock";
  240. case 4: return "RowMajor";
  241. case 5: return "ColMajor";
  242. case 6: return "ArrayStride";
  243. case 7: return "MatrixStride";
  244. case 8: return "GLSLShared";
  245. case 9: return "GLSLPacked";
  246. case 10: return "CPacked";
  247. case 11: return "BuiltIn";
  248. case 12: return "Bad";
  249. case 13: return "NoPerspective";
  250. case 14: return "Flat";
  251. case 15: return "Patch";
  252. case 16: return "Centroid";
  253. case 17: return "Sample";
  254. case 18: return "Invariant";
  255. case 19: return "Restrict";
  256. case 20: return "Aliased";
  257. case 21: return "Volatile";
  258. case 22: return "Constant";
  259. case 23: return "Coherent";
  260. case 24: return "NonWritable";
  261. case 25: return "NonReadable";
  262. case 26: return "Uniform";
  263. case 27: return "Bad";
  264. case 28: return "SaturatedConversion";
  265. case 29: return "Stream";
  266. case 30: return "Location";
  267. case 31: return "Component";
  268. case 32: return "Index";
  269. case 33: return "Binding";
  270. case 34: return "DescriptorSet";
  271. case 35: return "Offset";
  272. case 36: return "XfbBuffer";
  273. case 37: return "XfbStride";
  274. case 38: return "FuncParamAttr";
  275. case 39: return "FP Rounding Mode";
  276. case 40: return "FP Fast Math Mode";
  277. case 41: return "Linkage Attributes";
  278. case 42: return "NoContraction";
  279. case 43: return "InputAttachmentIndex";
  280. case 44: return "Alignment";
  281. case DecorationCeiling:
  282. default: return "Bad";
  283. case DecorationWeightTextureQCOM: return "DecorationWeightTextureQCOM";
  284. case DecorationBlockMatchTextureQCOM: return "DecorationBlockMatchTextureQCOM";
  285. case DecorationExplicitInterpAMD: return "ExplicitInterpAMD";
  286. case DecorationOverrideCoverageNV: return "OverrideCoverageNV";
  287. case DecorationPassthroughNV: return "PassthroughNV";
  288. case DecorationViewportRelativeNV: return "ViewportRelativeNV";
  289. case DecorationSecondaryViewportRelativeNV: return "SecondaryViewportRelativeNV";
  290. case DecorationPerPrimitiveNV: return "PerPrimitiveNV";
  291. case DecorationPerViewNV: return "PerViewNV";
  292. case DecorationPerTaskNV: return "PerTaskNV";
  293. case DecorationPerVertexKHR: return "PerVertexKHR";
  294. case DecorationNonUniformEXT: return "DecorationNonUniformEXT";
  295. case DecorationHlslCounterBufferGOOGLE: return "DecorationHlslCounterBufferGOOGLE";
  296. case DecorationHlslSemanticGOOGLE: return "DecorationHlslSemanticGOOGLE";
  297. case DecorationRestrictPointerEXT: return "DecorationRestrictPointerEXT";
  298. case DecorationAliasedPointerEXT: return "DecorationAliasedPointerEXT";
  299. case DecorationHitObjectShaderRecordBufferNV: return "DecorationHitObjectShaderRecordBufferNV";
  300. }
  301. }
  302. const char* BuiltInString(int builtIn)
  303. {
  304. switch (builtIn) {
  305. case 0: return "Position";
  306. case 1: return "PointSize";
  307. case 2: return "Bad";
  308. case 3: return "ClipDistance";
  309. case 4: return "CullDistance";
  310. case 5: return "VertexId";
  311. case 6: return "InstanceId";
  312. case 7: return "PrimitiveId";
  313. case 8: return "InvocationId";
  314. case 9: return "Layer";
  315. case 10: return "ViewportIndex";
  316. case 11: return "TessLevelOuter";
  317. case 12: return "TessLevelInner";
  318. case 13: return "TessCoord";
  319. case 14: return "PatchVertices";
  320. case 15: return "FragCoord";
  321. case 16: return "PointCoord";
  322. case 17: return "FrontFacing";
  323. case 18: return "SampleId";
  324. case 19: return "SamplePosition";
  325. case 20: return "SampleMask";
  326. case 21: return "Bad";
  327. case 22: return "FragDepth";
  328. case 23: return "HelperInvocation";
  329. case 24: return "NumWorkgroups";
  330. case 25: return "WorkgroupSize";
  331. case 26: return "WorkgroupId";
  332. case 27: return "LocalInvocationId";
  333. case 28: return "GlobalInvocationId";
  334. case 29: return "LocalInvocationIndex";
  335. case 30: return "WorkDim";
  336. case 31: return "GlobalSize";
  337. case 32: return "EnqueuedWorkgroupSize";
  338. case 33: return "GlobalOffset";
  339. case 34: return "GlobalLinearId";
  340. case 35: return "Bad";
  341. case 36: return "SubgroupSize";
  342. case 37: return "SubgroupMaxSize";
  343. case 38: return "NumSubgroups";
  344. case 39: return "NumEnqueuedSubgroups";
  345. case 40: return "SubgroupId";
  346. case 41: return "SubgroupLocalInvocationId";
  347. case 42: return "VertexIndex"; // TBD: put next to VertexId?
  348. case 43: return "InstanceIndex"; // TBD: put next to InstanceId?
  349. case 4416: return "SubgroupEqMaskKHR";
  350. case 4417: return "SubgroupGeMaskKHR";
  351. case 4418: return "SubgroupGtMaskKHR";
  352. case 4419: return "SubgroupLeMaskKHR";
  353. case 4420: return "SubgroupLtMaskKHR";
  354. case 4438: return "DeviceIndex";
  355. case 4440: return "ViewIndex";
  356. case 4424: return "BaseVertex";
  357. case 4425: return "BaseInstance";
  358. case 4426: return "DrawIndex";
  359. case 4432: return "PrimitiveShadingRateKHR";
  360. case 4444: return "ShadingRateKHR";
  361. case 5014: return "FragStencilRefEXT";
  362. case 4992: return "BaryCoordNoPerspAMD";
  363. case 4993: return "BaryCoordNoPerspCentroidAMD";
  364. case 4994: return "BaryCoordNoPerspSampleAMD";
  365. case 4995: return "BaryCoordSmoothAMD";
  366. case 4996: return "BaryCoordSmoothCentroidAMD";
  367. case 4997: return "BaryCoordSmoothSampleAMD";
  368. case 4998: return "BaryCoordPullModelAMD";
  369. case BuiltInLaunchIdKHR: return "LaunchIdKHR";
  370. case BuiltInLaunchSizeKHR: return "LaunchSizeKHR";
  371. case BuiltInWorldRayOriginKHR: return "WorldRayOriginKHR";
  372. case BuiltInWorldRayDirectionKHR: return "WorldRayDirectionKHR";
  373. case BuiltInObjectRayOriginKHR: return "ObjectRayOriginKHR";
  374. case BuiltInObjectRayDirectionKHR: return "ObjectRayDirectionKHR";
  375. case BuiltInRayTminKHR: return "RayTminKHR";
  376. case BuiltInRayTmaxKHR: return "RayTmaxKHR";
  377. case BuiltInCullMaskKHR: return "CullMaskKHR";
  378. case BuiltInHitTriangleVertexPositionsKHR: return "HitTriangleVertexPositionsKHR";
  379. case BuiltInHitMicroTriangleVertexPositionsNV: return "HitMicroTriangleVertexPositionsNV";
  380. case BuiltInHitMicroTriangleVertexBarycentricsNV: return "HitMicroTriangleVertexBarycentricsNV";
  381. case BuiltInHitKindFrontFacingMicroTriangleNV: return "HitKindFrontFacingMicroTriangleNV";
  382. case BuiltInHitKindBackFacingMicroTriangleNV: return "HitKindBackFacingMicroTriangleNV";
  383. case BuiltInInstanceCustomIndexKHR: return "InstanceCustomIndexKHR";
  384. case BuiltInRayGeometryIndexKHR: return "RayGeometryIndexKHR";
  385. case BuiltInObjectToWorldKHR: return "ObjectToWorldKHR";
  386. case BuiltInWorldToObjectKHR: return "WorldToObjectKHR";
  387. case BuiltInHitTNV: return "HitTNV";
  388. case BuiltInHitKindKHR: return "HitKindKHR";
  389. case BuiltInIncomingRayFlagsKHR: return "IncomingRayFlagsKHR";
  390. case BuiltInViewportMaskNV: return "ViewportMaskNV";
  391. case BuiltInSecondaryPositionNV: return "SecondaryPositionNV";
  392. case BuiltInSecondaryViewportMaskNV: return "SecondaryViewportMaskNV";
  393. case BuiltInPositionPerViewNV: return "PositionPerViewNV";
  394. case BuiltInViewportMaskPerViewNV: return "ViewportMaskPerViewNV";
  395. // case BuiltInFragmentSizeNV: return "FragmentSizeNV"; // superseded by BuiltInFragSizeEXT
  396. // case BuiltInInvocationsPerPixelNV: return "InvocationsPerPixelNV"; // superseded by BuiltInFragInvocationCountEXT
  397. case BuiltInBaryCoordKHR: return "BaryCoordKHR";
  398. case BuiltInBaryCoordNoPerspKHR: return "BaryCoordNoPerspKHR";
  399. case BuiltInFragSizeEXT: return "FragSizeEXT";
  400. case BuiltInFragInvocationCountEXT: return "FragInvocationCountEXT";
  401. case 5264: return "FullyCoveredEXT";
  402. case BuiltInTaskCountNV: return "TaskCountNV";
  403. case BuiltInPrimitiveCountNV: return "PrimitiveCountNV";
  404. case BuiltInPrimitiveIndicesNV: return "PrimitiveIndicesNV";
  405. case BuiltInClipDistancePerViewNV: return "ClipDistancePerViewNV";
  406. case BuiltInCullDistancePerViewNV: return "CullDistancePerViewNV";
  407. case BuiltInLayerPerViewNV: return "LayerPerViewNV";
  408. case BuiltInMeshViewCountNV: return "MeshViewCountNV";
  409. case BuiltInMeshViewIndicesNV: return "MeshViewIndicesNV";
  410. case BuiltInWarpsPerSMNV: return "WarpsPerSMNV";
  411. case BuiltInSMCountNV: return "SMCountNV";
  412. case BuiltInWarpIDNV: return "WarpIDNV";
  413. case BuiltInSMIDNV: return "SMIDNV";
  414. case BuiltInCurrentRayTimeNV: return "CurrentRayTimeNV";
  415. case BuiltInPrimitivePointIndicesEXT: return "PrimitivePointIndicesEXT";
  416. case BuiltInPrimitiveLineIndicesEXT: return "PrimitiveLineIndicesEXT";
  417. case BuiltInPrimitiveTriangleIndicesEXT: return "PrimitiveTriangleIndicesEXT";
  418. case BuiltInCullPrimitiveEXT: return "CullPrimitiveEXT";
  419. case BuiltInCoreCountARM: return "CoreCountARM";
  420. case BuiltInCoreIDARM: return "CoreIDARM";
  421. case BuiltInCoreMaxIDARM: return "CoreMaxIDARM";
  422. case BuiltInWarpIDARM: return "WarpIDARM";
  423. case BuiltInWarpMaxIDARM: return "BuiltInWarpMaxIDARM";
  424. default: return "Bad";
  425. }
  426. }
  427. const char* DimensionString(int dim)
  428. {
  429. switch (dim) {
  430. case 0: return "1D";
  431. case 1: return "2D";
  432. case 2: return "3D";
  433. case 3: return "Cube";
  434. case 4: return "Rect";
  435. case 5: return "Buffer";
  436. case 6: return "SubpassData";
  437. case DimTileImageDataEXT: return "TileImageDataEXT";
  438. default: return "Bad";
  439. }
  440. }
  441. const char* SamplerAddressingModeString(int mode)
  442. {
  443. switch (mode) {
  444. case 0: return "None";
  445. case 1: return "ClampToEdge";
  446. case 2: return "Clamp";
  447. case 3: return "Repeat";
  448. case 4: return "RepeatMirrored";
  449. default: return "Bad";
  450. }
  451. }
  452. const char* SamplerFilterModeString(int mode)
  453. {
  454. switch (mode) {
  455. case 0: return "Nearest";
  456. case 1: return "Linear";
  457. default: return "Bad";
  458. }
  459. }
  460. const char* ImageFormatString(int format)
  461. {
  462. switch (format) {
  463. case 0: return "Unknown";
  464. // ES/Desktop float
  465. case 1: return "Rgba32f";
  466. case 2: return "Rgba16f";
  467. case 3: return "R32f";
  468. case 4: return "Rgba8";
  469. case 5: return "Rgba8Snorm";
  470. // Desktop float
  471. case 6: return "Rg32f";
  472. case 7: return "Rg16f";
  473. case 8: return "R11fG11fB10f";
  474. case 9: return "R16f";
  475. case 10: return "Rgba16";
  476. case 11: return "Rgb10A2";
  477. case 12: return "Rg16";
  478. case 13: return "Rg8";
  479. case 14: return "R16";
  480. case 15: return "R8";
  481. case 16: return "Rgba16Snorm";
  482. case 17: return "Rg16Snorm";
  483. case 18: return "Rg8Snorm";
  484. case 19: return "R16Snorm";
  485. case 20: return "R8Snorm";
  486. // ES/Desktop int
  487. case 21: return "Rgba32i";
  488. case 22: return "Rgba16i";
  489. case 23: return "Rgba8i";
  490. case 24: return "R32i";
  491. // Desktop int
  492. case 25: return "Rg32i";
  493. case 26: return "Rg16i";
  494. case 27: return "Rg8i";
  495. case 28: return "R16i";
  496. case 29: return "R8i";
  497. // ES/Desktop uint
  498. case 30: return "Rgba32ui";
  499. case 31: return "Rgba16ui";
  500. case 32: return "Rgba8ui";
  501. case 33: return "R32ui";
  502. // Desktop uint
  503. case 34: return "Rgb10a2ui";
  504. case 35: return "Rg32ui";
  505. case 36: return "Rg16ui";
  506. case 37: return "Rg8ui";
  507. case 38: return "R16ui";
  508. case 39: return "R8ui";
  509. case 40: return "R64ui";
  510. case 41: return "R64i";
  511. default:
  512. return "Bad";
  513. }
  514. }
  515. const char* ImageChannelOrderString(int format)
  516. {
  517. switch (format) {
  518. case 0: return "R";
  519. case 1: return "A";
  520. case 2: return "RG";
  521. case 3: return "RA";
  522. case 4: return "RGB";
  523. case 5: return "RGBA";
  524. case 6: return "BGRA";
  525. case 7: return "ARGB";
  526. case 8: return "Intensity";
  527. case 9: return "Luminance";
  528. case 10: return "Rx";
  529. case 11: return "RGx";
  530. case 12: return "RGBx";
  531. case 13: return "Depth";
  532. case 14: return "DepthStencil";
  533. case 15: return "sRGB";
  534. case 16: return "sRGBx";
  535. case 17: return "sRGBA";
  536. case 18: return "sBGRA";
  537. default:
  538. return "Bad";
  539. }
  540. }
  541. const char* ImageChannelDataTypeString(int type)
  542. {
  543. switch (type)
  544. {
  545. case 0: return "SnormInt8";
  546. case 1: return "SnormInt16";
  547. case 2: return "UnormInt8";
  548. case 3: return "UnormInt16";
  549. case 4: return "UnormShort565";
  550. case 5: return "UnormShort555";
  551. case 6: return "UnormInt101010";
  552. case 7: return "SignedInt8";
  553. case 8: return "SignedInt16";
  554. case 9: return "SignedInt32";
  555. case 10: return "UnsignedInt8";
  556. case 11: return "UnsignedInt16";
  557. case 12: return "UnsignedInt32";
  558. case 13: return "HalfFloat";
  559. case 14: return "Float";
  560. case 15: return "UnormInt24";
  561. case 16: return "UnormInt101010_2";
  562. default:
  563. return "Bad";
  564. }
  565. }
  566. const int ImageOperandsCeiling = 14;
  567. const char* ImageOperandsString(int format)
  568. {
  569. switch (format) {
  570. case ImageOperandsBiasShift: return "Bias";
  571. case ImageOperandsLodShift: return "Lod";
  572. case ImageOperandsGradShift: return "Grad";
  573. case ImageOperandsConstOffsetShift: return "ConstOffset";
  574. case ImageOperandsOffsetShift: return "Offset";
  575. case ImageOperandsConstOffsetsShift: return "ConstOffsets";
  576. case ImageOperandsSampleShift: return "Sample";
  577. case ImageOperandsMinLodShift: return "MinLod";
  578. case ImageOperandsMakeTexelAvailableKHRShift: return "MakeTexelAvailableKHR";
  579. case ImageOperandsMakeTexelVisibleKHRShift: return "MakeTexelVisibleKHR";
  580. case ImageOperandsNonPrivateTexelKHRShift: return "NonPrivateTexelKHR";
  581. case ImageOperandsVolatileTexelKHRShift: return "VolatileTexelKHR";
  582. case ImageOperandsSignExtendShift: return "SignExtend";
  583. case ImageOperandsZeroExtendShift: return "ZeroExtend";
  584. case ImageOperandsCeiling:
  585. default:
  586. return "Bad";
  587. }
  588. }
  589. const char* FPFastMathString(int mode)
  590. {
  591. switch (mode) {
  592. case 0: return "NotNaN";
  593. case 1: return "NotInf";
  594. case 2: return "NSZ";
  595. case 3: return "AllowRecip";
  596. case 4: return "Fast";
  597. default: return "Bad";
  598. }
  599. }
  600. const char* FPRoundingModeString(int mode)
  601. {
  602. switch (mode) {
  603. case 0: return "RTE";
  604. case 1: return "RTZ";
  605. case 2: return "RTP";
  606. case 3: return "RTN";
  607. default: return "Bad";
  608. }
  609. }
  610. const char* LinkageTypeString(int type)
  611. {
  612. switch (type) {
  613. case 0: return "Export";
  614. case 1: return "Import";
  615. default: return "Bad";
  616. }
  617. }
  618. const char* FuncParamAttrString(int attr)
  619. {
  620. switch (attr) {
  621. case 0: return "Zext";
  622. case 1: return "Sext";
  623. case 2: return "ByVal";
  624. case 3: return "Sret";
  625. case 4: return "NoAlias";
  626. case 5: return "NoCapture";
  627. case 6: return "NoWrite";
  628. case 7: return "NoReadWrite";
  629. default: return "Bad";
  630. }
  631. }
  632. const char* AccessQualifierString(int attr)
  633. {
  634. switch (attr) {
  635. case 0: return "ReadOnly";
  636. case 1: return "WriteOnly";
  637. case 2: return "ReadWrite";
  638. default: return "Bad";
  639. }
  640. }
  641. const int SelectControlCeiling = 2;
  642. const char* SelectControlString(int cont)
  643. {
  644. switch (cont) {
  645. case 0: return "Flatten";
  646. case 1: return "DontFlatten";
  647. case SelectControlCeiling:
  648. default: return "Bad";
  649. }
  650. }
  651. const int LoopControlCeiling = LoopControlPartialCountShift + 1;
  652. const char* LoopControlString(int cont)
  653. {
  654. switch (cont) {
  655. case LoopControlUnrollShift: return "Unroll";
  656. case LoopControlDontUnrollShift: return "DontUnroll";
  657. case LoopControlDependencyInfiniteShift: return "DependencyInfinite";
  658. case LoopControlDependencyLengthShift: return "DependencyLength";
  659. case LoopControlMinIterationsShift: return "MinIterations";
  660. case LoopControlMaxIterationsShift: return "MaxIterations";
  661. case LoopControlIterationMultipleShift: return "IterationMultiple";
  662. case LoopControlPeelCountShift: return "PeelCount";
  663. case LoopControlPartialCountShift: return "PartialCount";
  664. case LoopControlCeiling:
  665. default: return "Bad";
  666. }
  667. }
  668. const int FunctionControlCeiling = 4;
  669. const char* FunctionControlString(int cont)
  670. {
  671. switch (cont) {
  672. case 0: return "Inline";
  673. case 1: return "DontInline";
  674. case 2: return "Pure";
  675. case 3: return "Const";
  676. case FunctionControlCeiling:
  677. default: return "Bad";
  678. }
  679. }
  680. const char* MemorySemanticsString(int mem)
  681. {
  682. // Note: No bits set (None) means "Relaxed"
  683. switch (mem) {
  684. case 0: return "Bad"; // Note: this is a placeholder for 'Consume'
  685. case 1: return "Acquire";
  686. case 2: return "Release";
  687. case 3: return "AcquireRelease";
  688. case 4: return "SequentiallyConsistent";
  689. case 5: return "Bad"; // Note: reserved for future expansion
  690. case 6: return "UniformMemory";
  691. case 7: return "SubgroupMemory";
  692. case 8: return "WorkgroupMemory";
  693. case 9: return "CrossWorkgroupMemory";
  694. case 10: return "AtomicCounterMemory";
  695. case 11: return "ImageMemory";
  696. default: return "Bad";
  697. }
  698. }
  699. const int MemoryAccessCeiling = 6;
  700. const char* MemoryAccessString(int mem)
  701. {
  702. switch (mem) {
  703. case MemoryAccessVolatileShift: return "Volatile";
  704. case MemoryAccessAlignedShift: return "Aligned";
  705. case MemoryAccessNontemporalShift: return "Nontemporal";
  706. case MemoryAccessMakePointerAvailableKHRShift: return "MakePointerAvailableKHR";
  707. case MemoryAccessMakePointerVisibleKHRShift: return "MakePointerVisibleKHR";
  708. case MemoryAccessNonPrivatePointerKHRShift: return "NonPrivatePointerKHR";
  709. default: return "Bad";
  710. }
  711. }
  712. const int CooperativeMatrixOperandsCeiling = 6;
  713. const char* CooperativeMatrixOperandsString(int op)
  714. {
  715. switch (op) {
  716. case CooperativeMatrixOperandsMatrixASignedComponentsKHRShift: return "ASignedComponentsKHR";
  717. case CooperativeMatrixOperandsMatrixBSignedComponentsKHRShift: return "BSignedComponentsKHR";
  718. case CooperativeMatrixOperandsMatrixCSignedComponentsKHRShift: return "CSignedComponentsKHR";
  719. case CooperativeMatrixOperandsMatrixResultSignedComponentsKHRShift: return "ResultSignedComponentsKHR";
  720. case CooperativeMatrixOperandsSaturatingAccumulationKHRShift: return "SaturatingAccumulationKHR";
  721. default: return "Bad";
  722. }
  723. }
  724. const char* ScopeString(int mem)
  725. {
  726. switch (mem) {
  727. case 0: return "CrossDevice";
  728. case 1: return "Device";
  729. case 2: return "Workgroup";
  730. case 3: return "Subgroup";
  731. case 4: return "Invocation";
  732. default: return "Bad";
  733. }
  734. }
  735. const char* GroupOperationString(int gop)
  736. {
  737. switch (gop)
  738. {
  739. case GroupOperationReduce: return "Reduce";
  740. case GroupOperationInclusiveScan: return "InclusiveScan";
  741. case GroupOperationExclusiveScan: return "ExclusiveScan";
  742. case GroupOperationClusteredReduce: return "ClusteredReduce";
  743. case GroupOperationPartitionedReduceNV: return "PartitionedReduceNV";
  744. case GroupOperationPartitionedInclusiveScanNV: return "PartitionedInclusiveScanNV";
  745. case GroupOperationPartitionedExclusiveScanNV: return "PartitionedExclusiveScanNV";
  746. default: return "Bad";
  747. }
  748. }
  749. const char* KernelEnqueueFlagsString(int flag)
  750. {
  751. switch (flag)
  752. {
  753. case 0: return "NoWait";
  754. case 1: return "WaitKernel";
  755. case 2: return "WaitWorkGroup";
  756. default: return "Bad";
  757. }
  758. }
  759. const char* KernelProfilingInfoString(int info)
  760. {
  761. switch (info)
  762. {
  763. case 0: return "CmdExecTime";
  764. default: return "Bad";
  765. }
  766. }
  767. const char* CapabilityString(int info)
  768. {
  769. switch (info)
  770. {
  771. case 0: return "Matrix";
  772. case 1: return "Shader";
  773. case 2: return "Geometry";
  774. case 3: return "Tessellation";
  775. case 4: return "Addresses";
  776. case 5: return "Linkage";
  777. case 6: return "Kernel";
  778. case 7: return "Vector16";
  779. case 8: return "Float16Buffer";
  780. case 9: return "Float16";
  781. case 10: return "Float64";
  782. case 11: return "Int64";
  783. case 12: return "Int64Atomics";
  784. case 13: return "ImageBasic";
  785. case 14: return "ImageReadWrite";
  786. case 15: return "ImageMipmap";
  787. case 16: return "Bad";
  788. case 17: return "Pipes";
  789. case 18: return "Groups";
  790. case 19: return "DeviceEnqueue";
  791. case 20: return "LiteralSampler";
  792. case 21: return "AtomicStorage";
  793. case 22: return "Int16";
  794. case 23: return "TessellationPointSize";
  795. case 24: return "GeometryPointSize";
  796. case 25: return "ImageGatherExtended";
  797. case 26: return "Bad";
  798. case 27: return "StorageImageMultisample";
  799. case 28: return "UniformBufferArrayDynamicIndexing";
  800. case 29: return "SampledImageArrayDynamicIndexing";
  801. case 30: return "StorageBufferArrayDynamicIndexing";
  802. case 31: return "StorageImageArrayDynamicIndexing";
  803. case 32: return "ClipDistance";
  804. case 33: return "CullDistance";
  805. case 34: return "ImageCubeArray";
  806. case 35: return "SampleRateShading";
  807. case 36: return "ImageRect";
  808. case 37: return "SampledRect";
  809. case 38: return "GenericPointer";
  810. case 39: return "Int8";
  811. case 40: return "InputAttachment";
  812. case 41: return "SparseResidency";
  813. case 42: return "MinLod";
  814. case 43: return "Sampled1D";
  815. case 44: return "Image1D";
  816. case 45: return "SampledCubeArray";
  817. case 46: return "SampledBuffer";
  818. case 47: return "ImageBuffer";
  819. case 48: return "ImageMSArray";
  820. case 49: return "StorageImageExtendedFormats";
  821. case 50: return "ImageQuery";
  822. case 51: return "DerivativeControl";
  823. case 52: return "InterpolationFunction";
  824. case 53: return "TransformFeedback";
  825. case 54: return "GeometryStreams";
  826. case 55: return "StorageImageReadWithoutFormat";
  827. case 56: return "StorageImageWriteWithoutFormat";
  828. case 57: return "MultiViewport";
  829. case 61: return "GroupNonUniform";
  830. case 62: return "GroupNonUniformVote";
  831. case 63: return "GroupNonUniformArithmetic";
  832. case 64: return "GroupNonUniformBallot";
  833. case 65: return "GroupNonUniformShuffle";
  834. case 66: return "GroupNonUniformShuffleRelative";
  835. case 67: return "GroupNonUniformClustered";
  836. case 68: return "GroupNonUniformQuad";
  837. case CapabilitySubgroupBallotKHR: return "SubgroupBallotKHR";
  838. case CapabilityDrawParameters: return "DrawParameters";
  839. case CapabilitySubgroupVoteKHR: return "SubgroupVoteKHR";
  840. case CapabilityStorageUniformBufferBlock16: return "StorageUniformBufferBlock16";
  841. case CapabilityStorageUniform16: return "StorageUniform16";
  842. case CapabilityStoragePushConstant16: return "StoragePushConstant16";
  843. case CapabilityStorageInputOutput16: return "StorageInputOutput16";
  844. case CapabilityStorageBuffer8BitAccess: return "StorageBuffer8BitAccess";
  845. case CapabilityUniformAndStorageBuffer8BitAccess: return "UniformAndStorageBuffer8BitAccess";
  846. case CapabilityStoragePushConstant8: return "StoragePushConstant8";
  847. case CapabilityDeviceGroup: return "DeviceGroup";
  848. case CapabilityMultiView: return "MultiView";
  849. case CapabilityDenormPreserve: return "DenormPreserve";
  850. case CapabilityDenormFlushToZero: return "DenormFlushToZero";
  851. case CapabilitySignedZeroInfNanPreserve: return "SignedZeroInfNanPreserve";
  852. case CapabilityRoundingModeRTE: return "RoundingModeRTE";
  853. case CapabilityRoundingModeRTZ: return "RoundingModeRTZ";
  854. case CapabilityStencilExportEXT: return "StencilExportEXT";
  855. case CapabilityFloat16ImageAMD: return "Float16ImageAMD";
  856. case CapabilityImageGatherBiasLodAMD: return "ImageGatherBiasLodAMD";
  857. case CapabilityFragmentMaskAMD: return "FragmentMaskAMD";
  858. case CapabilityImageReadWriteLodAMD: return "ImageReadWriteLodAMD";
  859. case CapabilityAtomicStorageOps: return "AtomicStorageOps";
  860. case CapabilitySampleMaskPostDepthCoverage: return "SampleMaskPostDepthCoverage";
  861. case CapabilityGeometryShaderPassthroughNV: return "GeometryShaderPassthroughNV";
  862. case CapabilityShaderViewportIndexLayerNV: return "ShaderViewportIndexLayerNV";
  863. case CapabilityShaderViewportMaskNV: return "ShaderViewportMaskNV";
  864. case CapabilityShaderStereoViewNV: return "ShaderStereoViewNV";
  865. case CapabilityPerViewAttributesNV: return "PerViewAttributesNV";
  866. case CapabilityGroupNonUniformPartitionedNV: return "GroupNonUniformPartitionedNV";
  867. case CapabilityRayTracingNV: return "RayTracingNV";
  868. case CapabilityRayTracingMotionBlurNV: return "RayTracingMotionBlurNV";
  869. case CapabilityRayTracingKHR: return "RayTracingKHR";
  870. case CapabilityRayCullMaskKHR: return "RayCullMaskKHR";
  871. case CapabilityRayQueryKHR: return "RayQueryKHR";
  872. case CapabilityRayTracingProvisionalKHR: return "RayTracingProvisionalKHR";
  873. case CapabilityRayTraversalPrimitiveCullingKHR: return "RayTraversalPrimitiveCullingKHR";
  874. case CapabilityRayTracingPositionFetchKHR: return "RayTracingPositionFetchKHR";
  875. case CapabilityDisplacementMicromapNV: return "DisplacementMicromapNV";
  876. case CapabilityRayTracingDisplacementMicromapNV: return "CapabilityRayTracingDisplacementMicromapNV";
  877. case CapabilityRayQueryPositionFetchKHR: return "RayQueryPositionFetchKHR";
  878. case CapabilityComputeDerivativeGroupQuadsNV: return "ComputeDerivativeGroupQuadsNV";
  879. case CapabilityComputeDerivativeGroupLinearNV: return "ComputeDerivativeGroupLinearNV";
  880. case CapabilityFragmentBarycentricKHR: return "FragmentBarycentricKHR";
  881. case CapabilityMeshShadingNV: return "MeshShadingNV";
  882. case CapabilityImageFootprintNV: return "ImageFootprintNV";
  883. case CapabilityMeshShadingEXT: return "MeshShadingEXT";
  884. // case CapabilityShadingRateNV: return "ShadingRateNV"; // superseded by FragmentDensityEXT
  885. case CapabilitySampleMaskOverrideCoverageNV: return "SampleMaskOverrideCoverageNV";
  886. case CapabilityFragmentDensityEXT: return "FragmentDensityEXT";
  887. case CapabilityFragmentFullyCoveredEXT: return "FragmentFullyCoveredEXT";
  888. case CapabilityShaderNonUniformEXT: return "ShaderNonUniformEXT";
  889. case CapabilityRuntimeDescriptorArrayEXT: return "RuntimeDescriptorArrayEXT";
  890. case CapabilityInputAttachmentArrayDynamicIndexingEXT: return "InputAttachmentArrayDynamicIndexingEXT";
  891. case CapabilityUniformTexelBufferArrayDynamicIndexingEXT: return "UniformTexelBufferArrayDynamicIndexingEXT";
  892. case CapabilityStorageTexelBufferArrayDynamicIndexingEXT: return "StorageTexelBufferArrayDynamicIndexingEXT";
  893. case CapabilityUniformBufferArrayNonUniformIndexingEXT: return "UniformBufferArrayNonUniformIndexingEXT";
  894. case CapabilitySampledImageArrayNonUniformIndexingEXT: return "SampledImageArrayNonUniformIndexingEXT";
  895. case CapabilityStorageBufferArrayNonUniformIndexingEXT: return "StorageBufferArrayNonUniformIndexingEXT";
  896. case CapabilityStorageImageArrayNonUniformIndexingEXT: return "StorageImageArrayNonUniformIndexingEXT";
  897. case CapabilityInputAttachmentArrayNonUniformIndexingEXT: return "InputAttachmentArrayNonUniformIndexingEXT";
  898. case CapabilityUniformTexelBufferArrayNonUniformIndexingEXT: return "UniformTexelBufferArrayNonUniformIndexingEXT";
  899. case CapabilityStorageTexelBufferArrayNonUniformIndexingEXT: return "StorageTexelBufferArrayNonUniformIndexingEXT";
  900. case CapabilityVulkanMemoryModelKHR: return "VulkanMemoryModelKHR";
  901. case CapabilityVulkanMemoryModelDeviceScopeKHR: return "VulkanMemoryModelDeviceScopeKHR";
  902. case CapabilityPhysicalStorageBufferAddressesEXT: return "PhysicalStorageBufferAddressesEXT";
  903. case CapabilityVariablePointers: return "VariablePointers";
  904. case CapabilityCooperativeMatrixNV: return "CooperativeMatrixNV";
  905. case CapabilityCooperativeMatrixKHR: return "CooperativeMatrixKHR";
  906. case CapabilityShaderSMBuiltinsNV: return "ShaderSMBuiltinsNV";
  907. case CapabilityFragmentShaderSampleInterlockEXT: return "CapabilityFragmentShaderSampleInterlockEXT";
  908. case CapabilityFragmentShaderPixelInterlockEXT: return "CapabilityFragmentShaderPixelInterlockEXT";
  909. case CapabilityFragmentShaderShadingRateInterlockEXT: return "CapabilityFragmentShaderShadingRateInterlockEXT";
  910. case CapabilityTileImageColorReadAccessEXT: return "TileImageColorReadAccessEXT";
  911. case CapabilityTileImageDepthReadAccessEXT: return "TileImageDepthReadAccessEXT";
  912. case CapabilityTileImageStencilReadAccessEXT: return "TileImageStencilReadAccessEXT";
  913. case CapabilityFragmentShadingRateKHR: return "FragmentShadingRateKHR";
  914. case CapabilityDemoteToHelperInvocationEXT: return "DemoteToHelperInvocationEXT";
  915. case CapabilityShaderClockKHR: return "ShaderClockKHR";
  916. case CapabilityInt64ImageEXT: return "Int64ImageEXT";
  917. case CapabilityIntegerFunctions2INTEL: return "CapabilityIntegerFunctions2INTEL";
  918. case CapabilityAtomicFloat16AddEXT: return "AtomicFloat16AddEXT";
  919. case CapabilityAtomicFloat32AddEXT: return "AtomicFloat32AddEXT";
  920. case CapabilityAtomicFloat64AddEXT: return "AtomicFloat64AddEXT";
  921. case CapabilityAtomicFloat16MinMaxEXT: return "AtomicFloat16MinMaxEXT";
  922. case CapabilityAtomicFloat32MinMaxEXT: return "AtomicFloat32MinMaxEXT";
  923. case CapabilityAtomicFloat64MinMaxEXT: return "AtomicFloat64MinMaxEXT";
  924. case CapabilityWorkgroupMemoryExplicitLayoutKHR: return "CapabilityWorkgroupMemoryExplicitLayoutKHR";
  925. case CapabilityWorkgroupMemoryExplicitLayout8BitAccessKHR: return "CapabilityWorkgroupMemoryExplicitLayout8BitAccessKHR";
  926. case CapabilityWorkgroupMemoryExplicitLayout16BitAccessKHR: return "CapabilityWorkgroupMemoryExplicitLayout16BitAccessKHR";
  927. case CapabilityCoreBuiltinsARM: return "CoreBuiltinsARM";
  928. case CapabilityShaderInvocationReorderNV: return "ShaderInvocationReorderNV";
  929. case CapabilityTextureSampleWeightedQCOM: return "TextureSampleWeightedQCOM";
  930. case CapabilityTextureBoxFilterQCOM: return "TextureBoxFilterQCOM";
  931. case CapabilityTextureBlockMatchQCOM: return "TextureBlockMatchQCOM";
  932. default: return "Bad";
  933. }
  934. }
  935. const char* OpcodeString(int op)
  936. {
  937. switch (op) {
  938. case 0: return "OpNop";
  939. case 1: return "OpUndef";
  940. case 2: return "OpSourceContinued";
  941. case 3: return "OpSource";
  942. case 4: return "OpSourceExtension";
  943. case 5: return "OpName";
  944. case 6: return "OpMemberName";
  945. case 7: return "OpString";
  946. case 8: return "OpLine";
  947. case 9: return "Bad";
  948. case 10: return "OpExtension";
  949. case 11: return "OpExtInstImport";
  950. case 12: return "OpExtInst";
  951. case 13: return "Bad";
  952. case 14: return "OpMemoryModel";
  953. case 15: return "OpEntryPoint";
  954. case 16: return "OpExecutionMode";
  955. case 17: return "OpCapability";
  956. case 18: return "Bad";
  957. case 19: return "OpTypeVoid";
  958. case 20: return "OpTypeBool";
  959. case 21: return "OpTypeInt";
  960. case 22: return "OpTypeFloat";
  961. case 23: return "OpTypeVector";
  962. case 24: return "OpTypeMatrix";
  963. case 25: return "OpTypeImage";
  964. case 26: return "OpTypeSampler";
  965. case 27: return "OpTypeSampledImage";
  966. case 28: return "OpTypeArray";
  967. case 29: return "OpTypeRuntimeArray";
  968. case 30: return "OpTypeStruct";
  969. case 31: return "OpTypeOpaque";
  970. case 32: return "OpTypePointer";
  971. case 33: return "OpTypeFunction";
  972. case 34: return "OpTypeEvent";
  973. case 35: return "OpTypeDeviceEvent";
  974. case 36: return "OpTypeReserveId";
  975. case 37: return "OpTypeQueue";
  976. case 38: return "OpTypePipe";
  977. case 39: return "OpTypeForwardPointer";
  978. case 40: return "Bad";
  979. case 41: return "OpConstantTrue";
  980. case 42: return "OpConstantFalse";
  981. case 43: return "OpConstant";
  982. case 44: return "OpConstantComposite";
  983. case 45: return "OpConstantSampler";
  984. case 46: return "OpConstantNull";
  985. case 47: return "Bad";
  986. case 48: return "OpSpecConstantTrue";
  987. case 49: return "OpSpecConstantFalse";
  988. case 50: return "OpSpecConstant";
  989. case 51: return "OpSpecConstantComposite";
  990. case 52: return "OpSpecConstantOp";
  991. case 53: return "Bad";
  992. case 54: return "OpFunction";
  993. case 55: return "OpFunctionParameter";
  994. case 56: return "OpFunctionEnd";
  995. case 57: return "OpFunctionCall";
  996. case 58: return "Bad";
  997. case 59: return "OpVariable";
  998. case 60: return "OpImageTexelPointer";
  999. case 61: return "OpLoad";
  1000. case 62: return "OpStore";
  1001. case 63: return "OpCopyMemory";
  1002. case 64: return "OpCopyMemorySized";
  1003. case 65: return "OpAccessChain";
  1004. case 66: return "OpInBoundsAccessChain";
  1005. case 67: return "OpPtrAccessChain";
  1006. case 68: return "OpArrayLength";
  1007. case 69: return "OpGenericPtrMemSemantics";
  1008. case 70: return "OpInBoundsPtrAccessChain";
  1009. case 71: return "OpDecorate";
  1010. case 72: return "OpMemberDecorate";
  1011. case 73: return "OpDecorationGroup";
  1012. case 74: return "OpGroupDecorate";
  1013. case 75: return "OpGroupMemberDecorate";
  1014. case 76: return "Bad";
  1015. case 77: return "OpVectorExtractDynamic";
  1016. case 78: return "OpVectorInsertDynamic";
  1017. case 79: return "OpVectorShuffle";
  1018. case 80: return "OpCompositeConstruct";
  1019. case 81: return "OpCompositeExtract";
  1020. case 82: return "OpCompositeInsert";
  1021. case 83: return "OpCopyObject";
  1022. case 84: return "OpTranspose";
  1023. case OpCopyLogical: return "OpCopyLogical";
  1024. case 85: return "Bad";
  1025. case 86: return "OpSampledImage";
  1026. case 87: return "OpImageSampleImplicitLod";
  1027. case 88: return "OpImageSampleExplicitLod";
  1028. case 89: return "OpImageSampleDrefImplicitLod";
  1029. case 90: return "OpImageSampleDrefExplicitLod";
  1030. case 91: return "OpImageSampleProjImplicitLod";
  1031. case 92: return "OpImageSampleProjExplicitLod";
  1032. case 93: return "OpImageSampleProjDrefImplicitLod";
  1033. case 94: return "OpImageSampleProjDrefExplicitLod";
  1034. case 95: return "OpImageFetch";
  1035. case 96: return "OpImageGather";
  1036. case 97: return "OpImageDrefGather";
  1037. case 98: return "OpImageRead";
  1038. case 99: return "OpImageWrite";
  1039. case 100: return "OpImage";
  1040. case 101: return "OpImageQueryFormat";
  1041. case 102: return "OpImageQueryOrder";
  1042. case 103: return "OpImageQuerySizeLod";
  1043. case 104: return "OpImageQuerySize";
  1044. case 105: return "OpImageQueryLod";
  1045. case 106: return "OpImageQueryLevels";
  1046. case 107: return "OpImageQuerySamples";
  1047. case 108: return "Bad";
  1048. case 109: return "OpConvertFToU";
  1049. case 110: return "OpConvertFToS";
  1050. case 111: return "OpConvertSToF";
  1051. case 112: return "OpConvertUToF";
  1052. case 113: return "OpUConvert";
  1053. case 114: return "OpSConvert";
  1054. case 115: return "OpFConvert";
  1055. case 116: return "OpQuantizeToF16";
  1056. case 117: return "OpConvertPtrToU";
  1057. case 118: return "OpSatConvertSToU";
  1058. case 119: return "OpSatConvertUToS";
  1059. case 120: return "OpConvertUToPtr";
  1060. case 121: return "OpPtrCastToGeneric";
  1061. case 122: return "OpGenericCastToPtr";
  1062. case 123: return "OpGenericCastToPtrExplicit";
  1063. case 124: return "OpBitcast";
  1064. case 125: return "Bad";
  1065. case 126: return "OpSNegate";
  1066. case 127: return "OpFNegate";
  1067. case 128: return "OpIAdd";
  1068. case 129: return "OpFAdd";
  1069. case 130: return "OpISub";
  1070. case 131: return "OpFSub";
  1071. case 132: return "OpIMul";
  1072. case 133: return "OpFMul";
  1073. case 134: return "OpUDiv";
  1074. case 135: return "OpSDiv";
  1075. case 136: return "OpFDiv";
  1076. case 137: return "OpUMod";
  1077. case 138: return "OpSRem";
  1078. case 139: return "OpSMod";
  1079. case 140: return "OpFRem";
  1080. case 141: return "OpFMod";
  1081. case 142: return "OpVectorTimesScalar";
  1082. case 143: return "OpMatrixTimesScalar";
  1083. case 144: return "OpVectorTimesMatrix";
  1084. case 145: return "OpMatrixTimesVector";
  1085. case 146: return "OpMatrixTimesMatrix";
  1086. case 147: return "OpOuterProduct";
  1087. case 148: return "OpDot";
  1088. case 149: return "OpIAddCarry";
  1089. case 150: return "OpISubBorrow";
  1090. case 151: return "OpUMulExtended";
  1091. case 152: return "OpSMulExtended";
  1092. case 153: return "Bad";
  1093. case 154: return "OpAny";
  1094. case 155: return "OpAll";
  1095. case 156: return "OpIsNan";
  1096. case 157: return "OpIsInf";
  1097. case 158: return "OpIsFinite";
  1098. case 159: return "OpIsNormal";
  1099. case 160: return "OpSignBitSet";
  1100. case 161: return "OpLessOrGreater";
  1101. case 162: return "OpOrdered";
  1102. case 163: return "OpUnordered";
  1103. case 164: return "OpLogicalEqual";
  1104. case 165: return "OpLogicalNotEqual";
  1105. case 166: return "OpLogicalOr";
  1106. case 167: return "OpLogicalAnd";
  1107. case 168: return "OpLogicalNot";
  1108. case 169: return "OpSelect";
  1109. case 170: return "OpIEqual";
  1110. case 171: return "OpINotEqual";
  1111. case 172: return "OpUGreaterThan";
  1112. case 173: return "OpSGreaterThan";
  1113. case 174: return "OpUGreaterThanEqual";
  1114. case 175: return "OpSGreaterThanEqual";
  1115. case 176: return "OpULessThan";
  1116. case 177: return "OpSLessThan";
  1117. case 178: return "OpULessThanEqual";
  1118. case 179: return "OpSLessThanEqual";
  1119. case 180: return "OpFOrdEqual";
  1120. case 181: return "OpFUnordEqual";
  1121. case 182: return "OpFOrdNotEqual";
  1122. case 183: return "OpFUnordNotEqual";
  1123. case 184: return "OpFOrdLessThan";
  1124. case 185: return "OpFUnordLessThan";
  1125. case 186: return "OpFOrdGreaterThan";
  1126. case 187: return "OpFUnordGreaterThan";
  1127. case 188: return "OpFOrdLessThanEqual";
  1128. case 189: return "OpFUnordLessThanEqual";
  1129. case 190: return "OpFOrdGreaterThanEqual";
  1130. case 191: return "OpFUnordGreaterThanEqual";
  1131. case 192: return "Bad";
  1132. case 193: return "Bad";
  1133. case 194: return "OpShiftRightLogical";
  1134. case 195: return "OpShiftRightArithmetic";
  1135. case 196: return "OpShiftLeftLogical";
  1136. case 197: return "OpBitwiseOr";
  1137. case 198: return "OpBitwiseXor";
  1138. case 199: return "OpBitwiseAnd";
  1139. case 200: return "OpNot";
  1140. case 201: return "OpBitFieldInsert";
  1141. case 202: return "OpBitFieldSExtract";
  1142. case 203: return "OpBitFieldUExtract";
  1143. case 204: return "OpBitReverse";
  1144. case 205: return "OpBitCount";
  1145. case 206: return "Bad";
  1146. case 207: return "OpDPdx";
  1147. case 208: return "OpDPdy";
  1148. case 209: return "OpFwidth";
  1149. case 210: return "OpDPdxFine";
  1150. case 211: return "OpDPdyFine";
  1151. case 212: return "OpFwidthFine";
  1152. case 213: return "OpDPdxCoarse";
  1153. case 214: return "OpDPdyCoarse";
  1154. case 215: return "OpFwidthCoarse";
  1155. case 216: return "Bad";
  1156. case 217: return "Bad";
  1157. case 218: return "OpEmitVertex";
  1158. case 219: return "OpEndPrimitive";
  1159. case 220: return "OpEmitStreamVertex";
  1160. case 221: return "OpEndStreamPrimitive";
  1161. case 222: return "Bad";
  1162. case 223: return "Bad";
  1163. case 224: return "OpControlBarrier";
  1164. case 225: return "OpMemoryBarrier";
  1165. case 226: return "Bad";
  1166. case 227: return "OpAtomicLoad";
  1167. case 228: return "OpAtomicStore";
  1168. case 229: return "OpAtomicExchange";
  1169. case 230: return "OpAtomicCompareExchange";
  1170. case 231: return "OpAtomicCompareExchangeWeak";
  1171. case 232: return "OpAtomicIIncrement";
  1172. case 233: return "OpAtomicIDecrement";
  1173. case 234: return "OpAtomicIAdd";
  1174. case 235: return "OpAtomicISub";
  1175. case 236: return "OpAtomicSMin";
  1176. case 237: return "OpAtomicUMin";
  1177. case 238: return "OpAtomicSMax";
  1178. case 239: return "OpAtomicUMax";
  1179. case 240: return "OpAtomicAnd";
  1180. case 241: return "OpAtomicOr";
  1181. case 242: return "OpAtomicXor";
  1182. case 243: return "Bad";
  1183. case 244: return "Bad";
  1184. case 245: return "OpPhi";
  1185. case 246: return "OpLoopMerge";
  1186. case 247: return "OpSelectionMerge";
  1187. case 248: return "OpLabel";
  1188. case 249: return "OpBranch";
  1189. case 250: return "OpBranchConditional";
  1190. case 251: return "OpSwitch";
  1191. case 252: return "OpKill";
  1192. case 253: return "OpReturn";
  1193. case 254: return "OpReturnValue";
  1194. case 255: return "OpUnreachable";
  1195. case 256: return "OpLifetimeStart";
  1196. case 257: return "OpLifetimeStop";
  1197. case 258: return "Bad";
  1198. case 259: return "OpGroupAsyncCopy";
  1199. case 260: return "OpGroupWaitEvents";
  1200. case 261: return "OpGroupAll";
  1201. case 262: return "OpGroupAny";
  1202. case 263: return "OpGroupBroadcast";
  1203. case 264: return "OpGroupIAdd";
  1204. case 265: return "OpGroupFAdd";
  1205. case 266: return "OpGroupFMin";
  1206. case 267: return "OpGroupUMin";
  1207. case 268: return "OpGroupSMin";
  1208. case 269: return "OpGroupFMax";
  1209. case 270: return "OpGroupUMax";
  1210. case 271: return "OpGroupSMax";
  1211. case 272: return "Bad";
  1212. case 273: return "Bad";
  1213. case 274: return "OpReadPipe";
  1214. case 275: return "OpWritePipe";
  1215. case 276: return "OpReservedReadPipe";
  1216. case 277: return "OpReservedWritePipe";
  1217. case 278: return "OpReserveReadPipePackets";
  1218. case 279: return "OpReserveWritePipePackets";
  1219. case 280: return "OpCommitReadPipe";
  1220. case 281: return "OpCommitWritePipe";
  1221. case 282: return "OpIsValidReserveId";
  1222. case 283: return "OpGetNumPipePackets";
  1223. case 284: return "OpGetMaxPipePackets";
  1224. case 285: return "OpGroupReserveReadPipePackets";
  1225. case 286: return "OpGroupReserveWritePipePackets";
  1226. case 287: return "OpGroupCommitReadPipe";
  1227. case 288: return "OpGroupCommitWritePipe";
  1228. case 289: return "Bad";
  1229. case 290: return "Bad";
  1230. case 291: return "OpEnqueueMarker";
  1231. case 292: return "OpEnqueueKernel";
  1232. case 293: return "OpGetKernelNDrangeSubGroupCount";
  1233. case 294: return "OpGetKernelNDrangeMaxSubGroupSize";
  1234. case 295: return "OpGetKernelWorkGroupSize";
  1235. case 296: return "OpGetKernelPreferredWorkGroupSizeMultiple";
  1236. case 297: return "OpRetainEvent";
  1237. case 298: return "OpReleaseEvent";
  1238. case 299: return "OpCreateUserEvent";
  1239. case 300: return "OpIsValidEvent";
  1240. case 301: return "OpSetUserEventStatus";
  1241. case 302: return "OpCaptureEventProfilingInfo";
  1242. case 303: return "OpGetDefaultQueue";
  1243. case 304: return "OpBuildNDRange";
  1244. case 305: return "OpImageSparseSampleImplicitLod";
  1245. case 306: return "OpImageSparseSampleExplicitLod";
  1246. case 307: return "OpImageSparseSampleDrefImplicitLod";
  1247. case 308: return "OpImageSparseSampleDrefExplicitLod";
  1248. case 309: return "OpImageSparseSampleProjImplicitLod";
  1249. case 310: return "OpImageSparseSampleProjExplicitLod";
  1250. case 311: return "OpImageSparseSampleProjDrefImplicitLod";
  1251. case 312: return "OpImageSparseSampleProjDrefExplicitLod";
  1252. case 313: return "OpImageSparseFetch";
  1253. case 314: return "OpImageSparseGather";
  1254. case 315: return "OpImageSparseDrefGather";
  1255. case 316: return "OpImageSparseTexelsResident";
  1256. case 317: return "OpNoLine";
  1257. case 318: return "OpAtomicFlagTestAndSet";
  1258. case 319: return "OpAtomicFlagClear";
  1259. case 320: return "OpImageSparseRead";
  1260. case OpModuleProcessed: return "OpModuleProcessed";
  1261. case OpExecutionModeId: return "OpExecutionModeId";
  1262. case OpDecorateId: return "OpDecorateId";
  1263. case 333: return "OpGroupNonUniformElect";
  1264. case 334: return "OpGroupNonUniformAll";
  1265. case 335: return "OpGroupNonUniformAny";
  1266. case 336: return "OpGroupNonUniformAllEqual";
  1267. case 337: return "OpGroupNonUniformBroadcast";
  1268. case 338: return "OpGroupNonUniformBroadcastFirst";
  1269. case 339: return "OpGroupNonUniformBallot";
  1270. case 340: return "OpGroupNonUniformInverseBallot";
  1271. case 341: return "OpGroupNonUniformBallotBitExtract";
  1272. case 342: return "OpGroupNonUniformBallotBitCount";
  1273. case 343: return "OpGroupNonUniformBallotFindLSB";
  1274. case 344: return "OpGroupNonUniformBallotFindMSB";
  1275. case 345: return "OpGroupNonUniformShuffle";
  1276. case 346: return "OpGroupNonUniformShuffleXor";
  1277. case 347: return "OpGroupNonUniformShuffleUp";
  1278. case 348: return "OpGroupNonUniformShuffleDown";
  1279. case 349: return "OpGroupNonUniformIAdd";
  1280. case 350: return "OpGroupNonUniformFAdd";
  1281. case 351: return "OpGroupNonUniformIMul";
  1282. case 352: return "OpGroupNonUniformFMul";
  1283. case 353: return "OpGroupNonUniformSMin";
  1284. case 354: return "OpGroupNonUniformUMin";
  1285. case 355: return "OpGroupNonUniformFMin";
  1286. case 356: return "OpGroupNonUniformSMax";
  1287. case 357: return "OpGroupNonUniformUMax";
  1288. case 358: return "OpGroupNonUniformFMax";
  1289. case 359: return "OpGroupNonUniformBitwiseAnd";
  1290. case 360: return "OpGroupNonUniformBitwiseOr";
  1291. case 361: return "OpGroupNonUniformBitwiseXor";
  1292. case 362: return "OpGroupNonUniformLogicalAnd";
  1293. case 363: return "OpGroupNonUniformLogicalOr";
  1294. case 364: return "OpGroupNonUniformLogicalXor";
  1295. case 365: return "OpGroupNonUniformQuadBroadcast";
  1296. case 366: return "OpGroupNonUniformQuadSwap";
  1297. case OpTerminateInvocation: return "OpTerminateInvocation";
  1298. case 4421: return "OpSubgroupBallotKHR";
  1299. case 4422: return "OpSubgroupFirstInvocationKHR";
  1300. case 4428: return "OpSubgroupAllKHR";
  1301. case 4429: return "OpSubgroupAnyKHR";
  1302. case 4430: return "OpSubgroupAllEqualKHR";
  1303. case 4432: return "OpSubgroupReadInvocationKHR";
  1304. case OpAtomicFAddEXT: return "OpAtomicFAddEXT";
  1305. case OpAtomicFMinEXT: return "OpAtomicFMinEXT";
  1306. case OpAtomicFMaxEXT: return "OpAtomicFMaxEXT";
  1307. case 5000: return "OpGroupIAddNonUniformAMD";
  1308. case 5001: return "OpGroupFAddNonUniformAMD";
  1309. case 5002: return "OpGroupFMinNonUniformAMD";
  1310. case 5003: return "OpGroupUMinNonUniformAMD";
  1311. case 5004: return "OpGroupSMinNonUniformAMD";
  1312. case 5005: return "OpGroupFMaxNonUniformAMD";
  1313. case 5006: return "OpGroupUMaxNonUniformAMD";
  1314. case 5007: return "OpGroupSMaxNonUniformAMD";
  1315. case 5011: return "OpFragmentMaskFetchAMD";
  1316. case 5012: return "OpFragmentFetchAMD";
  1317. case OpReadClockKHR: return "OpReadClockKHR";
  1318. case OpDecorateStringGOOGLE: return "OpDecorateStringGOOGLE";
  1319. case OpMemberDecorateStringGOOGLE: return "OpMemberDecorateStringGOOGLE";
  1320. case OpReportIntersectionKHR: return "OpReportIntersectionKHR";
  1321. case OpIgnoreIntersectionNV: return "OpIgnoreIntersectionNV";
  1322. case OpIgnoreIntersectionKHR: return "OpIgnoreIntersectionKHR";
  1323. case OpTerminateRayNV: return "OpTerminateRayNV";
  1324. case OpTerminateRayKHR: return "OpTerminateRayKHR";
  1325. case OpTraceNV: return "OpTraceNV";
  1326. case OpTraceRayMotionNV: return "OpTraceRayMotionNV";
  1327. case OpTraceRayKHR: return "OpTraceRayKHR";
  1328. case OpTypeAccelerationStructureKHR: return "OpTypeAccelerationStructureKHR";
  1329. case OpExecuteCallableNV: return "OpExecuteCallableNV";
  1330. case OpExecuteCallableKHR: return "OpExecuteCallableKHR";
  1331. case OpConvertUToAccelerationStructureKHR: return "OpConvertUToAccelerationStructureKHR";
  1332. case OpGroupNonUniformPartitionNV: return "OpGroupNonUniformPartitionNV";
  1333. case OpImageSampleFootprintNV: return "OpImageSampleFootprintNV";
  1334. case OpWritePackedPrimitiveIndices4x8NV: return "OpWritePackedPrimitiveIndices4x8NV";
  1335. case OpEmitMeshTasksEXT: return "OpEmitMeshTasksEXT";
  1336. case OpSetMeshOutputsEXT: return "OpSetMeshOutputsEXT";
  1337. case OpTypeRayQueryKHR: return "OpTypeRayQueryKHR";
  1338. case OpRayQueryInitializeKHR: return "OpRayQueryInitializeKHR";
  1339. case OpRayQueryTerminateKHR: return "OpRayQueryTerminateKHR";
  1340. case OpRayQueryGenerateIntersectionKHR: return "OpRayQueryGenerateIntersectionKHR";
  1341. case OpRayQueryConfirmIntersectionKHR: return "OpRayQueryConfirmIntersectionKHR";
  1342. case OpRayQueryProceedKHR: return "OpRayQueryProceedKHR";
  1343. case OpRayQueryGetIntersectionTypeKHR: return "OpRayQueryGetIntersectionTypeKHR";
  1344. case OpRayQueryGetRayTMinKHR: return "OpRayQueryGetRayTMinKHR";
  1345. case OpRayQueryGetRayFlagsKHR: return "OpRayQueryGetRayFlagsKHR";
  1346. case OpRayQueryGetIntersectionTKHR: return "OpRayQueryGetIntersectionTKHR";
  1347. case OpRayQueryGetIntersectionInstanceCustomIndexKHR: return "OpRayQueryGetIntersectionInstanceCustomIndexKHR";
  1348. case OpRayQueryGetIntersectionInstanceIdKHR: return "OpRayQueryGetIntersectionInstanceIdKHR";
  1349. case OpRayQueryGetIntersectionInstanceShaderBindingTableRecordOffsetKHR: return "OpRayQueryGetIntersectionInstanceShaderBindingTableRecordOffsetKHR";
  1350. case OpRayQueryGetIntersectionGeometryIndexKHR: return "OpRayQueryGetIntersectionGeometryIndexKHR";
  1351. case OpRayQueryGetIntersectionPrimitiveIndexKHR: return "OpRayQueryGetIntersectionPrimitiveIndexKHR";
  1352. case OpRayQueryGetIntersectionBarycentricsKHR: return "OpRayQueryGetIntersectionBarycentricsKHR";
  1353. case OpRayQueryGetIntersectionFrontFaceKHR: return "OpRayQueryGetIntersectionFrontFaceKHR";
  1354. case OpRayQueryGetIntersectionCandidateAABBOpaqueKHR: return "OpRayQueryGetIntersectionCandidateAABBOpaqueKHR";
  1355. case OpRayQueryGetIntersectionObjectRayDirectionKHR: return "OpRayQueryGetIntersectionObjectRayDirectionKHR";
  1356. case OpRayQueryGetIntersectionObjectRayOriginKHR: return "OpRayQueryGetIntersectionObjectRayOriginKHR";
  1357. case OpRayQueryGetWorldRayDirectionKHR: return "OpRayQueryGetWorldRayDirectionKHR";
  1358. case OpRayQueryGetWorldRayOriginKHR: return "OpRayQueryGetWorldRayOriginKHR";
  1359. case OpRayQueryGetIntersectionObjectToWorldKHR: return "OpRayQueryGetIntersectionObjectToWorldKHR";
  1360. case OpRayQueryGetIntersectionWorldToObjectKHR: return "OpRayQueryGetIntersectionWorldToObjectKHR";
  1361. case OpRayQueryGetIntersectionTriangleVertexPositionsKHR: return "OpRayQueryGetIntersectionTriangleVertexPositionsKHR";
  1362. case OpTypeCooperativeMatrixNV: return "OpTypeCooperativeMatrixNV";
  1363. case OpCooperativeMatrixLoadNV: return "OpCooperativeMatrixLoadNV";
  1364. case OpCooperativeMatrixStoreNV: return "OpCooperativeMatrixStoreNV";
  1365. case OpCooperativeMatrixMulAddNV: return "OpCooperativeMatrixMulAddNV";
  1366. case OpCooperativeMatrixLengthNV: return "OpCooperativeMatrixLengthNV";
  1367. case OpTypeCooperativeMatrixKHR: return "OpTypeCooperativeMatrixKHR";
  1368. case OpCooperativeMatrixLoadKHR: return "OpCooperativeMatrixLoadKHR";
  1369. case OpCooperativeMatrixStoreKHR: return "OpCooperativeMatrixStoreKHR";
  1370. case OpCooperativeMatrixMulAddKHR: return "OpCooperativeMatrixMulAddKHR";
  1371. case OpCooperativeMatrixLengthKHR: return "OpCooperativeMatrixLengthKHR";
  1372. case OpDemoteToHelperInvocationEXT: return "OpDemoteToHelperInvocationEXT";
  1373. case OpIsHelperInvocationEXT: return "OpIsHelperInvocationEXT";
  1374. case OpBeginInvocationInterlockEXT: return "OpBeginInvocationInterlockEXT";
  1375. case OpEndInvocationInterlockEXT: return "OpEndInvocationInterlockEXT";
  1376. case OpTypeHitObjectNV: return "OpTypeHitObjectNV";
  1377. case OpHitObjectTraceRayNV: return "OpHitObjectTraceRayNV";
  1378. case OpHitObjectTraceRayMotionNV: return "OpHitObjectTraceRayMotionNV";
  1379. case OpHitObjectRecordHitNV: return "OpHitObjectRecordHitNV";
  1380. case OpHitObjectRecordHitMotionNV: return "OpHitObjectRecordHitMotionNV";
  1381. case OpHitObjectRecordHitWithIndexNV: return "OpHitObjectRecordHitWithIndexNV";
  1382. case OpHitObjectRecordHitWithIndexMotionNV: return "OpHitObjectRecordHitWithIndexMotionNV";
  1383. case OpHitObjectRecordMissNV: return "OpHitObjectRecordMissNV";
  1384. case OpHitObjectRecordMissMotionNV: return "OpHitObjectRecordMissMotionNV";
  1385. case OpHitObjectRecordEmptyNV: return "OpHitObjectRecordEmptyNV";
  1386. case OpHitObjectExecuteShaderNV: return "OpHitObjectExecuteShaderNV";
  1387. case OpReorderThreadWithHintNV: return "OpReorderThreadWithHintNV";
  1388. case OpReorderThreadWithHitObjectNV: return "OpReorderThreadWithHitObjectNV";
  1389. case OpHitObjectGetCurrentTimeNV: return "OpHitObjectGetCurrentTimeNV";
  1390. case OpHitObjectGetAttributesNV: return "OpHitObjectGetAttributesNV";
  1391. case OpHitObjectGetHitKindNV: return "OpHitObjectGetFrontFaceNV";
  1392. case OpHitObjectGetPrimitiveIndexNV: return "OpHitObjectGetPrimitiveIndexNV";
  1393. case OpHitObjectGetGeometryIndexNV: return "OpHitObjectGetGeometryIndexNV";
  1394. case OpHitObjectGetInstanceIdNV: return "OpHitObjectGetInstanceIdNV";
  1395. case OpHitObjectGetInstanceCustomIndexNV: return "OpHitObjectGetInstanceCustomIndexNV";
  1396. case OpHitObjectGetObjectRayDirectionNV: return "OpHitObjectGetObjectRayDirectionNV";
  1397. case OpHitObjectGetObjectRayOriginNV: return "OpHitObjectGetObjectRayOriginNV";
  1398. case OpHitObjectGetWorldRayDirectionNV: return "OpHitObjectGetWorldRayDirectionNV";
  1399. case OpHitObjectGetWorldRayOriginNV: return "OpHitObjectGetWorldRayOriginNV";
  1400. case OpHitObjectGetWorldToObjectNV: return "OpHitObjectGetWorldToObjectNV";
  1401. case OpHitObjectGetObjectToWorldNV: return "OpHitObjectGetObjectToWorldNV";
  1402. case OpHitObjectGetRayTMaxNV: return "OpHitObjectGetRayTMaxNV";
  1403. case OpHitObjectGetRayTMinNV: return "OpHitObjectGetRayTMinNV";
  1404. case OpHitObjectIsEmptyNV: return "OpHitObjectIsEmptyNV";
  1405. case OpHitObjectIsHitNV: return "OpHitObjectIsHitNV";
  1406. case OpHitObjectIsMissNV: return "OpHitObjectIsMissNV";
  1407. case OpHitObjectGetShaderBindingTableRecordIndexNV: return "OpHitObjectGetShaderBindingTableRecordIndexNV";
  1408. case OpHitObjectGetShaderRecordBufferHandleNV: return "OpHitObjectGetShaderRecordBufferHandleNV";
  1409. case OpFetchMicroTriangleVertexBarycentricNV: return "OpFetchMicroTriangleVertexBarycentricNV";
  1410. case OpFetchMicroTriangleVertexPositionNV: return "OpFetchMicroTriangleVertexPositionNV";
  1411. case OpColorAttachmentReadEXT: return "OpColorAttachmentReadEXT";
  1412. case OpDepthAttachmentReadEXT: return "OpDepthAttachmentReadEXT";
  1413. case OpStencilAttachmentReadEXT: return "OpStencilAttachmentReadEXT";
  1414. case OpImageSampleWeightedQCOM: return "OpImageSampleWeightedQCOM";
  1415. case OpImageBoxFilterQCOM: return "OpImageBoxFilterQCOM";
  1416. case OpImageBlockMatchSADQCOM: return "OpImageBlockMatchSADQCOM";
  1417. case OpImageBlockMatchSSDQCOM: return "OpImageBlockMatchSSDQCOM";
  1418. default:
  1419. return "Bad";
  1420. }
  1421. }
  1422. // The set of objects that hold all the instruction/operand
  1423. // parameterization information.
  1424. InstructionParameters InstructionDesc[OpCodeMask + 1];
  1425. OperandParameters ExecutionModeOperands[ExecutionModeCeiling];
  1426. OperandParameters DecorationOperands[DecorationCeiling];
  1427. EnumDefinition OperandClassParams[OperandCount];
  1428. EnumParameters ExecutionModeParams[ExecutionModeCeiling];
  1429. EnumParameters ImageOperandsParams[ImageOperandsCeiling];
  1430. EnumParameters DecorationParams[DecorationCeiling];
  1431. EnumParameters LoopControlParams[FunctionControlCeiling];
  1432. EnumParameters SelectionControlParams[SelectControlCeiling];
  1433. EnumParameters FunctionControlParams[FunctionControlCeiling];
  1434. EnumParameters MemoryAccessParams[MemoryAccessCeiling];
  1435. EnumParameters CooperativeMatrixOperandsParams[CooperativeMatrixOperandsCeiling];
  1436. // Set up all the parameterizing descriptions of the opcodes, operands, etc.
  1437. void Parameterize()
  1438. {
  1439. // only do this once.
  1440. static std::once_flag initialized;
  1441. std::call_once(initialized, [](){
  1442. // Exceptions to having a result <id> and a resulting type <id>.
  1443. // (Everything is initialized to have both).
  1444. InstructionDesc[OpNop].setResultAndType(false, false);
  1445. InstructionDesc[OpSource].setResultAndType(false, false);
  1446. InstructionDesc[OpSourceContinued].setResultAndType(false, false);
  1447. InstructionDesc[OpSourceExtension].setResultAndType(false, false);
  1448. InstructionDesc[OpExtension].setResultAndType(false, false);
  1449. InstructionDesc[OpExtInstImport].setResultAndType(true, false);
  1450. InstructionDesc[OpCapability].setResultAndType(false, false);
  1451. InstructionDesc[OpMemoryModel].setResultAndType(false, false);
  1452. InstructionDesc[OpEntryPoint].setResultAndType(false, false);
  1453. InstructionDesc[OpExecutionMode].setResultAndType(false, false);
  1454. InstructionDesc[OpExecutionModeId].setResultAndType(false, false);
  1455. InstructionDesc[OpTypeVoid].setResultAndType(true, false);
  1456. InstructionDesc[OpTypeBool].setResultAndType(true, false);
  1457. InstructionDesc[OpTypeInt].setResultAndType(true, false);
  1458. InstructionDesc[OpTypeFloat].setResultAndType(true, false);
  1459. InstructionDesc[OpTypeVector].setResultAndType(true, false);
  1460. InstructionDesc[OpTypeMatrix].setResultAndType(true, false);
  1461. InstructionDesc[OpTypeImage].setResultAndType(true, false);
  1462. InstructionDesc[OpTypeSampler].setResultAndType(true, false);
  1463. InstructionDesc[OpTypeSampledImage].setResultAndType(true, false);
  1464. InstructionDesc[OpTypeArray].setResultAndType(true, false);
  1465. InstructionDesc[OpTypeRuntimeArray].setResultAndType(true, false);
  1466. InstructionDesc[OpTypeStruct].setResultAndType(true, false);
  1467. InstructionDesc[OpTypeOpaque].setResultAndType(true, false);
  1468. InstructionDesc[OpTypePointer].setResultAndType(true, false);
  1469. InstructionDesc[OpTypeForwardPointer].setResultAndType(false, false);
  1470. InstructionDesc[OpTypeFunction].setResultAndType(true, false);
  1471. InstructionDesc[OpTypeEvent].setResultAndType(true, false);
  1472. InstructionDesc[OpTypeDeviceEvent].setResultAndType(true, false);
  1473. InstructionDesc[OpTypeReserveId].setResultAndType(true, false);
  1474. InstructionDesc[OpTypeQueue].setResultAndType(true, false);
  1475. InstructionDesc[OpTypePipe].setResultAndType(true, false);
  1476. InstructionDesc[OpFunctionEnd].setResultAndType(false, false);
  1477. InstructionDesc[OpStore].setResultAndType(false, false);
  1478. InstructionDesc[OpImageWrite].setResultAndType(false, false);
  1479. InstructionDesc[OpDecorationGroup].setResultAndType(true, false);
  1480. InstructionDesc[OpDecorate].setResultAndType(false, false);
  1481. InstructionDesc[OpDecorateId].setResultAndType(false, false);
  1482. InstructionDesc[OpDecorateStringGOOGLE].setResultAndType(false, false);
  1483. InstructionDesc[OpMemberDecorate].setResultAndType(false, false);
  1484. InstructionDesc[OpMemberDecorateStringGOOGLE].setResultAndType(false, false);
  1485. InstructionDesc[OpGroupDecorate].setResultAndType(false, false);
  1486. InstructionDesc[OpGroupMemberDecorate].setResultAndType(false, false);
  1487. InstructionDesc[OpName].setResultAndType(false, false);
  1488. InstructionDesc[OpMemberName].setResultAndType(false, false);
  1489. InstructionDesc[OpString].setResultAndType(true, false);
  1490. InstructionDesc[OpLine].setResultAndType(false, false);
  1491. InstructionDesc[OpNoLine].setResultAndType(false, false);
  1492. InstructionDesc[OpCopyMemory].setResultAndType(false, false);
  1493. InstructionDesc[OpCopyMemorySized].setResultAndType(false, false);
  1494. InstructionDesc[OpEmitVertex].setResultAndType(false, false);
  1495. InstructionDesc[OpEndPrimitive].setResultAndType(false, false);
  1496. InstructionDesc[OpEmitStreamVertex].setResultAndType(false, false);
  1497. InstructionDesc[OpEndStreamPrimitive].setResultAndType(false, false);
  1498. InstructionDesc[OpControlBarrier].setResultAndType(false, false);
  1499. InstructionDesc[OpMemoryBarrier].setResultAndType(false, false);
  1500. InstructionDesc[OpAtomicStore].setResultAndType(false, false);
  1501. InstructionDesc[OpLoopMerge].setResultAndType(false, false);
  1502. InstructionDesc[OpSelectionMerge].setResultAndType(false, false);
  1503. InstructionDesc[OpLabel].setResultAndType(true, false);
  1504. InstructionDesc[OpBranch].setResultAndType(false, false);
  1505. InstructionDesc[OpBranchConditional].setResultAndType(false, false);
  1506. InstructionDesc[OpSwitch].setResultAndType(false, false);
  1507. InstructionDesc[OpKill].setResultAndType(false, false);
  1508. InstructionDesc[OpTerminateInvocation].setResultAndType(false, false);
  1509. InstructionDesc[OpReturn].setResultAndType(false, false);
  1510. InstructionDesc[OpReturnValue].setResultAndType(false, false);
  1511. InstructionDesc[OpUnreachable].setResultAndType(false, false);
  1512. InstructionDesc[OpLifetimeStart].setResultAndType(false, false);
  1513. InstructionDesc[OpLifetimeStop].setResultAndType(false, false);
  1514. InstructionDesc[OpCommitReadPipe].setResultAndType(false, false);
  1515. InstructionDesc[OpCommitWritePipe].setResultAndType(false, false);
  1516. InstructionDesc[OpGroupCommitWritePipe].setResultAndType(false, false);
  1517. InstructionDesc[OpGroupCommitReadPipe].setResultAndType(false, false);
  1518. InstructionDesc[OpCaptureEventProfilingInfo].setResultAndType(false, false);
  1519. InstructionDesc[OpSetUserEventStatus].setResultAndType(false, false);
  1520. InstructionDesc[OpRetainEvent].setResultAndType(false, false);
  1521. InstructionDesc[OpReleaseEvent].setResultAndType(false, false);
  1522. InstructionDesc[OpGroupWaitEvents].setResultAndType(false, false);
  1523. InstructionDesc[OpAtomicFlagClear].setResultAndType(false, false);
  1524. InstructionDesc[OpModuleProcessed].setResultAndType(false, false);
  1525. InstructionDesc[OpTypeCooperativeMatrixNV].setResultAndType(true, false);
  1526. InstructionDesc[OpCooperativeMatrixStoreNV].setResultAndType(false, false);
  1527. InstructionDesc[OpTypeCooperativeMatrixKHR].setResultAndType(true, false);
  1528. InstructionDesc[OpCooperativeMatrixStoreKHR].setResultAndType(false, false);
  1529. InstructionDesc[OpBeginInvocationInterlockEXT].setResultAndType(false, false);
  1530. InstructionDesc[OpEndInvocationInterlockEXT].setResultAndType(false, false);
  1531. // Specific additional context-dependent operands
  1532. ExecutionModeOperands[ExecutionModeInvocations].push(OperandLiteralNumber, "'Number of <<Invocation,invocations>>'");
  1533. ExecutionModeOperands[ExecutionModeLocalSize].push(OperandLiteralNumber, "'x size'");
  1534. ExecutionModeOperands[ExecutionModeLocalSize].push(OperandLiteralNumber, "'y size'");
  1535. ExecutionModeOperands[ExecutionModeLocalSize].push(OperandLiteralNumber, "'z size'");
  1536. ExecutionModeOperands[ExecutionModeLocalSizeHint].push(OperandLiteralNumber, "'x size'");
  1537. ExecutionModeOperands[ExecutionModeLocalSizeHint].push(OperandLiteralNumber, "'y size'");
  1538. ExecutionModeOperands[ExecutionModeLocalSizeHint].push(OperandLiteralNumber, "'z size'");
  1539. ExecutionModeOperands[ExecutionModeOutputVertices].push(OperandLiteralNumber, "'Vertex count'");
  1540. ExecutionModeOperands[ExecutionModeVecTypeHint].push(OperandLiteralNumber, "'Vector type'");
  1541. DecorationOperands[DecorationStream].push(OperandLiteralNumber, "'Stream Number'");
  1542. DecorationOperands[DecorationLocation].push(OperandLiteralNumber, "'Location'");
  1543. DecorationOperands[DecorationComponent].push(OperandLiteralNumber, "'Component'");
  1544. DecorationOperands[DecorationIndex].push(OperandLiteralNumber, "'Index'");
  1545. DecorationOperands[DecorationBinding].push(OperandLiteralNumber, "'Binding Point'");
  1546. DecorationOperands[DecorationDescriptorSet].push(OperandLiteralNumber, "'Descriptor Set'");
  1547. DecorationOperands[DecorationOffset].push(OperandLiteralNumber, "'Byte Offset'");
  1548. DecorationOperands[DecorationXfbBuffer].push(OperandLiteralNumber, "'XFB Buffer Number'");
  1549. DecorationOperands[DecorationXfbStride].push(OperandLiteralNumber, "'XFB Stride'");
  1550. DecorationOperands[DecorationArrayStride].push(OperandLiteralNumber, "'Array Stride'");
  1551. DecorationOperands[DecorationMatrixStride].push(OperandLiteralNumber, "'Matrix Stride'");
  1552. DecorationOperands[DecorationBuiltIn].push(OperandLiteralNumber, "See <<BuiltIn,*BuiltIn*>>");
  1553. DecorationOperands[DecorationFPRoundingMode].push(OperandFPRoundingMode, "'Floating-Point Rounding Mode'");
  1554. DecorationOperands[DecorationFPFastMathMode].push(OperandFPFastMath, "'Fast-Math Mode'");
  1555. DecorationOperands[DecorationLinkageAttributes].push(OperandLiteralString, "'Name'");
  1556. DecorationOperands[DecorationLinkageAttributes].push(OperandLinkageType, "'Linkage Type'");
  1557. DecorationOperands[DecorationFuncParamAttr].push(OperandFuncParamAttr, "'Function Parameter Attribute'");
  1558. DecorationOperands[DecorationSpecId].push(OperandLiteralNumber, "'Specialization Constant ID'");
  1559. DecorationOperands[DecorationInputAttachmentIndex].push(OperandLiteralNumber, "'Attachment Index'");
  1560. DecorationOperands[DecorationAlignment].push(OperandLiteralNumber, "'Alignment'");
  1561. OperandClassParams[OperandSource].set(0, SourceString, nullptr);
  1562. OperandClassParams[OperandExecutionModel].set(0, ExecutionModelString, nullptr);
  1563. OperandClassParams[OperandAddressing].set(0, AddressingString, nullptr);
  1564. OperandClassParams[OperandMemory].set(0, MemoryString, nullptr);
  1565. OperandClassParams[OperandExecutionMode].set(ExecutionModeCeiling, ExecutionModeString, ExecutionModeParams);
  1566. OperandClassParams[OperandExecutionMode].setOperands(ExecutionModeOperands);
  1567. OperandClassParams[OperandStorage].set(0, StorageClassString, nullptr);
  1568. OperandClassParams[OperandDimensionality].set(0, DimensionString, nullptr);
  1569. OperandClassParams[OperandSamplerAddressingMode].set(0, SamplerAddressingModeString, nullptr);
  1570. OperandClassParams[OperandSamplerFilterMode].set(0, SamplerFilterModeString, nullptr);
  1571. OperandClassParams[OperandSamplerImageFormat].set(0, ImageFormatString, nullptr);
  1572. OperandClassParams[OperandImageChannelOrder].set(0, ImageChannelOrderString, nullptr);
  1573. OperandClassParams[OperandImageChannelDataType].set(0, ImageChannelDataTypeString, nullptr);
  1574. OperandClassParams[OperandImageOperands].set(ImageOperandsCeiling, ImageOperandsString, ImageOperandsParams, true);
  1575. OperandClassParams[OperandFPFastMath].set(0, FPFastMathString, nullptr, true);
  1576. OperandClassParams[OperandFPRoundingMode].set(0, FPRoundingModeString, nullptr);
  1577. OperandClassParams[OperandLinkageType].set(0, LinkageTypeString, nullptr);
  1578. OperandClassParams[OperandFuncParamAttr].set(0, FuncParamAttrString, nullptr);
  1579. OperandClassParams[OperandAccessQualifier].set(0, AccessQualifierString, nullptr);
  1580. OperandClassParams[OperandDecoration].set(DecorationCeiling, DecorationString, DecorationParams);
  1581. OperandClassParams[OperandDecoration].setOperands(DecorationOperands);
  1582. OperandClassParams[OperandBuiltIn].set(0, BuiltInString, nullptr);
  1583. OperandClassParams[OperandSelect].set(SelectControlCeiling, SelectControlString, SelectionControlParams, true);
  1584. OperandClassParams[OperandLoop].set(LoopControlCeiling, LoopControlString, LoopControlParams, true);
  1585. OperandClassParams[OperandFunction].set(FunctionControlCeiling, FunctionControlString, FunctionControlParams, true);
  1586. OperandClassParams[OperandMemorySemantics].set(0, MemorySemanticsString, nullptr, true);
  1587. OperandClassParams[OperandMemoryAccess].set(MemoryAccessCeiling, MemoryAccessString, MemoryAccessParams, true);
  1588. OperandClassParams[OperandScope].set(0, ScopeString, nullptr);
  1589. OperandClassParams[OperandGroupOperation].set(0, GroupOperationString, nullptr);
  1590. OperandClassParams[OperandKernelEnqueueFlags].set(0, KernelEnqueueFlagsString, nullptr);
  1591. OperandClassParams[OperandKernelProfilingInfo].set(0, KernelProfilingInfoString, nullptr, true);
  1592. OperandClassParams[OperandCapability].set(0, CapabilityString, nullptr);
  1593. OperandClassParams[OperandCooperativeMatrixOperands].set(CooperativeMatrixOperandsCeiling, CooperativeMatrixOperandsString, CooperativeMatrixOperandsParams, true);
  1594. OperandClassParams[OperandOpcode].set(OpCodeMask + 1, OpcodeString, nullptr);
  1595. // set name of operator, an initial set of <id> style operands, and the description
  1596. InstructionDesc[OpSource].operands.push(OperandSource, "");
  1597. InstructionDesc[OpSource].operands.push(OperandLiteralNumber, "'Version'");
  1598. InstructionDesc[OpSource].operands.push(OperandId, "'File'", true);
  1599. InstructionDesc[OpSource].operands.push(OperandLiteralString, "'Source'", true);
  1600. InstructionDesc[OpSourceContinued].operands.push(OperandLiteralString, "'Continued Source'");
  1601. InstructionDesc[OpSourceExtension].operands.push(OperandLiteralString, "'Extension'");
  1602. InstructionDesc[OpName].operands.push(OperandId, "'Target'");
  1603. InstructionDesc[OpName].operands.push(OperandLiteralString, "'Name'");
  1604. InstructionDesc[OpMemberName].operands.push(OperandId, "'Type'");
  1605. InstructionDesc[OpMemberName].operands.push(OperandLiteralNumber, "'Member'");
  1606. InstructionDesc[OpMemberName].operands.push(OperandLiteralString, "'Name'");
  1607. InstructionDesc[OpString].operands.push(OperandLiteralString, "'String'");
  1608. InstructionDesc[OpLine].operands.push(OperandId, "'File'");
  1609. InstructionDesc[OpLine].operands.push(OperandLiteralNumber, "'Line'");
  1610. InstructionDesc[OpLine].operands.push(OperandLiteralNumber, "'Column'");
  1611. InstructionDesc[OpExtension].operands.push(OperandLiteralString, "'Name'");
  1612. InstructionDesc[OpExtInstImport].operands.push(OperandLiteralString, "'Name'");
  1613. InstructionDesc[OpCapability].operands.push(OperandCapability, "'Capability'");
  1614. InstructionDesc[OpMemoryModel].operands.push(OperandAddressing, "");
  1615. InstructionDesc[OpMemoryModel].operands.push(OperandMemory, "");
  1616. InstructionDesc[OpEntryPoint].operands.push(OperandExecutionModel, "");
  1617. InstructionDesc[OpEntryPoint].operands.push(OperandId, "'Entry Point'");
  1618. InstructionDesc[OpEntryPoint].operands.push(OperandLiteralString, "'Name'");
  1619. InstructionDesc[OpEntryPoint].operands.push(OperandVariableIds, "'Interface'");
  1620. InstructionDesc[OpExecutionMode].operands.push(OperandId, "'Entry Point'");
  1621. InstructionDesc[OpExecutionMode].operands.push(OperandExecutionMode, "'Mode'");
  1622. InstructionDesc[OpExecutionMode].operands.push(OperandOptionalLiteral, "See <<Execution_Mode,Execution Mode>>");
  1623. InstructionDesc[OpExecutionModeId].operands.push(OperandId, "'Entry Point'");
  1624. InstructionDesc[OpExecutionModeId].operands.push(OperandExecutionMode, "'Mode'");
  1625. InstructionDesc[OpExecutionModeId].operands.push(OperandVariableIds, "See <<Execution_Mode,Execution Mode>>");
  1626. InstructionDesc[OpTypeInt].operands.push(OperandLiteralNumber, "'Width'");
  1627. InstructionDesc[OpTypeInt].operands.push(OperandLiteralNumber, "'Signedness'");
  1628. InstructionDesc[OpTypeFloat].operands.push(OperandLiteralNumber, "'Width'");
  1629. InstructionDesc[OpTypeVector].operands.push(OperandId, "'Component Type'");
  1630. InstructionDesc[OpTypeVector].operands.push(OperandLiteralNumber, "'Component Count'");
  1631. InstructionDesc[OpTypeMatrix].operands.push(OperandId, "'Column Type'");
  1632. InstructionDesc[OpTypeMatrix].operands.push(OperandLiteralNumber, "'Column Count'");
  1633. InstructionDesc[OpTypeImage].operands.push(OperandId, "'Sampled Type'");
  1634. InstructionDesc[OpTypeImage].operands.push(OperandDimensionality, "");
  1635. InstructionDesc[OpTypeImage].operands.push(OperandLiteralNumber, "'Depth'");
  1636. InstructionDesc[OpTypeImage].operands.push(OperandLiteralNumber, "'Arrayed'");
  1637. InstructionDesc[OpTypeImage].operands.push(OperandLiteralNumber, "'MS'");
  1638. InstructionDesc[OpTypeImage].operands.push(OperandLiteralNumber, "'Sampled'");
  1639. InstructionDesc[OpTypeImage].operands.push(OperandSamplerImageFormat, "");
  1640. InstructionDesc[OpTypeImage].operands.push(OperandAccessQualifier, "", true);
  1641. InstructionDesc[OpTypeSampledImage].operands.push(OperandId, "'Image Type'");
  1642. InstructionDesc[OpTypeArray].operands.push(OperandId, "'Element Type'");
  1643. InstructionDesc[OpTypeArray].operands.push(OperandId, "'Length'");
  1644. InstructionDesc[OpTypeRuntimeArray].operands.push(OperandId, "'Element Type'");
  1645. InstructionDesc[OpTypeStruct].operands.push(OperandVariableIds, "'Member 0 type', +\n'member 1 type', +\n...");
  1646. InstructionDesc[OpTypeOpaque].operands.push(OperandLiteralString, "The name of the opaque type.");
  1647. InstructionDesc[OpTypePointer].operands.push(OperandStorage, "");
  1648. InstructionDesc[OpTypePointer].operands.push(OperandId, "'Type'");
  1649. InstructionDesc[OpTypeForwardPointer].operands.push(OperandId, "'Pointer Type'");
  1650. InstructionDesc[OpTypeForwardPointer].operands.push(OperandStorage, "");
  1651. InstructionDesc[OpTypePipe].operands.push(OperandAccessQualifier, "'Qualifier'");
  1652. InstructionDesc[OpTypeFunction].operands.push(OperandId, "'Return Type'");
  1653. InstructionDesc[OpTypeFunction].operands.push(OperandVariableIds, "'Parameter 0 Type', +\n'Parameter 1 Type', +\n...");
  1654. InstructionDesc[OpConstant].operands.push(OperandVariableLiterals, "'Value'");
  1655. InstructionDesc[OpConstantComposite].operands.push(OperandVariableIds, "'Constituents'");
  1656. InstructionDesc[OpConstantSampler].operands.push(OperandSamplerAddressingMode, "");
  1657. InstructionDesc[OpConstantSampler].operands.push(OperandLiteralNumber, "'Param'");
  1658. InstructionDesc[OpConstantSampler].operands.push(OperandSamplerFilterMode, "");
  1659. InstructionDesc[OpSpecConstant].operands.push(OperandVariableLiterals, "'Value'");
  1660. InstructionDesc[OpSpecConstantComposite].operands.push(OperandVariableIds, "'Constituents'");
  1661. InstructionDesc[OpSpecConstantOp].operands.push(OperandLiteralNumber, "'Opcode'");
  1662. InstructionDesc[OpSpecConstantOp].operands.push(OperandVariableIds, "'Operands'");
  1663. InstructionDesc[OpVariable].operands.push(OperandStorage, "");
  1664. InstructionDesc[OpVariable].operands.push(OperandId, "'Initializer'", true);
  1665. InstructionDesc[OpFunction].operands.push(OperandFunction, "");
  1666. InstructionDesc[OpFunction].operands.push(OperandId, "'Function Type'");
  1667. InstructionDesc[OpFunctionCall].operands.push(OperandId, "'Function'");
  1668. InstructionDesc[OpFunctionCall].operands.push(OperandVariableIds, "'Argument 0', +\n'Argument 1', +\n...");
  1669. InstructionDesc[OpExtInst].operands.push(OperandId, "'Set'");
  1670. InstructionDesc[OpExtInst].operands.push(OperandLiteralNumber, "'Instruction'");
  1671. InstructionDesc[OpExtInst].operands.push(OperandVariableIds, "'Operand 1', +\n'Operand 2', +\n...");
  1672. InstructionDesc[OpLoad].operands.push(OperandId, "'Pointer'");
  1673. InstructionDesc[OpLoad].operands.push(OperandMemoryAccess, "", true);
  1674. InstructionDesc[OpLoad].operands.push(OperandLiteralNumber, "", true);
  1675. InstructionDesc[OpLoad].operands.push(OperandId, "", true);
  1676. InstructionDesc[OpStore].operands.push(OperandId, "'Pointer'");
  1677. InstructionDesc[OpStore].operands.push(OperandId, "'Object'");
  1678. InstructionDesc[OpStore].operands.push(OperandMemoryAccess, "", true);
  1679. InstructionDesc[OpStore].operands.push(OperandLiteralNumber, "", true);
  1680. InstructionDesc[OpStore].operands.push(OperandId, "", true);
  1681. InstructionDesc[OpPhi].operands.push(OperandVariableIds, "'Variable, Parent, ...'");
  1682. InstructionDesc[OpDecorate].operands.push(OperandId, "'Target'");
  1683. InstructionDesc[OpDecorate].operands.push(OperandDecoration, "");
  1684. InstructionDesc[OpDecorate].operands.push(OperandVariableLiterals, "See <<Decoration,'Decoration'>>.");
  1685. InstructionDesc[OpDecorateId].operands.push(OperandId, "'Target'");
  1686. InstructionDesc[OpDecorateId].operands.push(OperandDecoration, "");
  1687. InstructionDesc[OpDecorateId].operands.push(OperandVariableIds, "See <<Decoration,'Decoration'>>.");
  1688. InstructionDesc[OpDecorateStringGOOGLE].operands.push(OperandId, "'Target'");
  1689. InstructionDesc[OpDecorateStringGOOGLE].operands.push(OperandDecoration, "");
  1690. InstructionDesc[OpDecorateStringGOOGLE].operands.push(OperandVariableLiteralStrings, "'Literal Strings'");
  1691. InstructionDesc[OpMemberDecorate].operands.push(OperandId, "'Structure Type'");
  1692. InstructionDesc[OpMemberDecorate].operands.push(OperandLiteralNumber, "'Member'");
  1693. InstructionDesc[OpMemberDecorate].operands.push(OperandDecoration, "");
  1694. InstructionDesc[OpMemberDecorate].operands.push(OperandVariableLiterals, "See <<Decoration,'Decoration'>>.");
  1695. InstructionDesc[OpMemberDecorateStringGOOGLE].operands.push(OperandId, "'Structure Type'");
  1696. InstructionDesc[OpMemberDecorateStringGOOGLE].operands.push(OperandLiteralNumber, "'Member'");
  1697. InstructionDesc[OpMemberDecorateStringGOOGLE].operands.push(OperandDecoration, "");
  1698. InstructionDesc[OpMemberDecorateStringGOOGLE].operands.push(OperandVariableLiteralStrings, "'Literal Strings'");
  1699. InstructionDesc[OpGroupDecorate].operands.push(OperandId, "'Decoration Group'");
  1700. InstructionDesc[OpGroupDecorate].operands.push(OperandVariableIds, "'Targets'");
  1701. InstructionDesc[OpGroupMemberDecorate].operands.push(OperandId, "'Decoration Group'");
  1702. InstructionDesc[OpGroupMemberDecorate].operands.push(OperandVariableIdLiteral, "'Targets'");
  1703. InstructionDesc[OpVectorExtractDynamic].operands.push(OperandId, "'Vector'");
  1704. InstructionDesc[OpVectorExtractDynamic].operands.push(OperandId, "'Index'");
  1705. InstructionDesc[OpVectorInsertDynamic].operands.push(OperandId, "'Vector'");
  1706. InstructionDesc[OpVectorInsertDynamic].operands.push(OperandId, "'Component'");
  1707. InstructionDesc[OpVectorInsertDynamic].operands.push(OperandId, "'Index'");
  1708. InstructionDesc[OpVectorShuffle].operands.push(OperandId, "'Vector 1'");
  1709. InstructionDesc[OpVectorShuffle].operands.push(OperandId, "'Vector 2'");
  1710. InstructionDesc[OpVectorShuffle].operands.push(OperandVariableLiterals, "'Components'");
  1711. InstructionDesc[OpCompositeConstruct].operands.push(OperandVariableIds, "'Constituents'");
  1712. InstructionDesc[OpCompositeExtract].operands.push(OperandId, "'Composite'");
  1713. InstructionDesc[OpCompositeExtract].operands.push(OperandVariableLiterals, "'Indexes'");
  1714. InstructionDesc[OpCompositeInsert].operands.push(OperandId, "'Object'");
  1715. InstructionDesc[OpCompositeInsert].operands.push(OperandId, "'Composite'");
  1716. InstructionDesc[OpCompositeInsert].operands.push(OperandVariableLiterals, "'Indexes'");
  1717. InstructionDesc[OpCopyObject].operands.push(OperandId, "'Operand'");
  1718. InstructionDesc[OpCopyMemory].operands.push(OperandId, "'Target'");
  1719. InstructionDesc[OpCopyMemory].operands.push(OperandId, "'Source'");
  1720. InstructionDesc[OpCopyMemory].operands.push(OperandMemoryAccess, "", true);
  1721. InstructionDesc[OpCopyMemorySized].operands.push(OperandId, "'Target'");
  1722. InstructionDesc[OpCopyMemorySized].operands.push(OperandId, "'Source'");
  1723. InstructionDesc[OpCopyMemorySized].operands.push(OperandId, "'Size'");
  1724. InstructionDesc[OpCopyMemorySized].operands.push(OperandMemoryAccess, "", true);
  1725. InstructionDesc[OpSampledImage].operands.push(OperandId, "'Image'");
  1726. InstructionDesc[OpSampledImage].operands.push(OperandId, "'Sampler'");
  1727. InstructionDesc[OpImage].operands.push(OperandId, "'Sampled Image'");
  1728. InstructionDesc[OpImageRead].operands.push(OperandId, "'Image'");
  1729. InstructionDesc[OpImageRead].operands.push(OperandId, "'Coordinate'");
  1730. InstructionDesc[OpImageRead].operands.push(OperandImageOperands, "", true);
  1731. InstructionDesc[OpImageRead].operands.push(OperandVariableIds, "", true);
  1732. InstructionDesc[OpImageWrite].operands.push(OperandId, "'Image'");
  1733. InstructionDesc[OpImageWrite].operands.push(OperandId, "'Coordinate'");
  1734. InstructionDesc[OpImageWrite].operands.push(OperandId, "'Texel'");
  1735. InstructionDesc[OpImageWrite].operands.push(OperandImageOperands, "", true);
  1736. InstructionDesc[OpImageWrite].operands.push(OperandVariableIds, "", true);
  1737. InstructionDesc[OpImageSampleImplicitLod].operands.push(OperandId, "'Sampled Image'");
  1738. InstructionDesc[OpImageSampleImplicitLod].operands.push(OperandId, "'Coordinate'");
  1739. InstructionDesc[OpImageSampleImplicitLod].operands.push(OperandImageOperands, "", true);
  1740. InstructionDesc[OpImageSampleImplicitLod].operands.push(OperandVariableIds, "", true);
  1741. InstructionDesc[OpImageSampleExplicitLod].operands.push(OperandId, "'Sampled Image'");
  1742. InstructionDesc[OpImageSampleExplicitLod].operands.push(OperandId, "'Coordinate'");
  1743. InstructionDesc[OpImageSampleExplicitLod].operands.push(OperandImageOperands, "", true);
  1744. InstructionDesc[OpImageSampleExplicitLod].operands.push(OperandVariableIds, "", true);
  1745. InstructionDesc[OpImageSampleDrefImplicitLod].operands.push(OperandId, "'Sampled Image'");
  1746. InstructionDesc[OpImageSampleDrefImplicitLod].operands.push(OperandId, "'Coordinate'");
  1747. InstructionDesc[OpImageSampleDrefImplicitLod].operands.push(OperandId, "'D~ref~'");
  1748. InstructionDesc[OpImageSampleDrefImplicitLod].operands.push(OperandImageOperands, "", true);
  1749. InstructionDesc[OpImageSampleDrefImplicitLod].operands.push(OperandVariableIds, "", true);
  1750. InstructionDesc[OpImageSampleDrefExplicitLod].operands.push(OperandId, "'Sampled Image'");
  1751. InstructionDesc[OpImageSampleDrefExplicitLod].operands.push(OperandId, "'Coordinate'");
  1752. InstructionDesc[OpImageSampleDrefExplicitLod].operands.push(OperandId, "'D~ref~'");
  1753. InstructionDesc[OpImageSampleDrefExplicitLod].operands.push(OperandImageOperands, "", true);
  1754. InstructionDesc[OpImageSampleDrefExplicitLod].operands.push(OperandVariableIds, "", true);
  1755. InstructionDesc[OpImageSampleProjImplicitLod].operands.push(OperandId, "'Sampled Image'");
  1756. InstructionDesc[OpImageSampleProjImplicitLod].operands.push(OperandId, "'Coordinate'");
  1757. InstructionDesc[OpImageSampleProjImplicitLod].operands.push(OperandImageOperands, "", true);
  1758. InstructionDesc[OpImageSampleProjImplicitLod].operands.push(OperandVariableIds, "", true);
  1759. InstructionDesc[OpImageSampleProjExplicitLod].operands.push(OperandId, "'Sampled Image'");
  1760. InstructionDesc[OpImageSampleProjExplicitLod].operands.push(OperandId, "'Coordinate'");
  1761. InstructionDesc[OpImageSampleProjExplicitLod].operands.push(OperandImageOperands, "", true);
  1762. InstructionDesc[OpImageSampleProjExplicitLod].operands.push(OperandVariableIds, "", true);
  1763. InstructionDesc[OpImageSampleProjDrefImplicitLod].operands.push(OperandId, "'Sampled Image'");
  1764. InstructionDesc[OpImageSampleProjDrefImplicitLod].operands.push(OperandId, "'Coordinate'");
  1765. InstructionDesc[OpImageSampleProjDrefImplicitLod].operands.push(OperandId, "'D~ref~'");
  1766. InstructionDesc[OpImageSampleProjDrefImplicitLod].operands.push(OperandImageOperands, "", true);
  1767. InstructionDesc[OpImageSampleProjDrefImplicitLod].operands.push(OperandVariableIds, "", true);
  1768. InstructionDesc[OpImageSampleProjDrefExplicitLod].operands.push(OperandId, "'Sampled Image'");
  1769. InstructionDesc[OpImageSampleProjDrefExplicitLod].operands.push(OperandId, "'Coordinate'");
  1770. InstructionDesc[OpImageSampleProjDrefExplicitLod].operands.push(OperandId, "'D~ref~'");
  1771. InstructionDesc[OpImageSampleProjDrefExplicitLod].operands.push(OperandImageOperands, "", true);
  1772. InstructionDesc[OpImageSampleProjDrefExplicitLod].operands.push(OperandVariableIds, "", true);
  1773. InstructionDesc[OpImageFetch].operands.push(OperandId, "'Image'");
  1774. InstructionDesc[OpImageFetch].operands.push(OperandId, "'Coordinate'");
  1775. InstructionDesc[OpImageFetch].operands.push(OperandImageOperands, "", true);
  1776. InstructionDesc[OpImageFetch].operands.push(OperandVariableIds, "", true);
  1777. InstructionDesc[OpImageGather].operands.push(OperandId, "'Sampled Image'");
  1778. InstructionDesc[OpImageGather].operands.push(OperandId, "'Coordinate'");
  1779. InstructionDesc[OpImageGather].operands.push(OperandId, "'Component'");
  1780. InstructionDesc[OpImageGather].operands.push(OperandImageOperands, "", true);
  1781. InstructionDesc[OpImageGather].operands.push(OperandVariableIds, "", true);
  1782. InstructionDesc[OpImageDrefGather].operands.push(OperandId, "'Sampled Image'");
  1783. InstructionDesc[OpImageDrefGather].operands.push(OperandId, "'Coordinate'");
  1784. InstructionDesc[OpImageDrefGather].operands.push(OperandId, "'D~ref~'");
  1785. InstructionDesc[OpImageDrefGather].operands.push(OperandImageOperands, "", true);
  1786. InstructionDesc[OpImageDrefGather].operands.push(OperandVariableIds, "", true);
  1787. InstructionDesc[OpImageSparseSampleImplicitLod].operands.push(OperandId, "'Sampled Image'");
  1788. InstructionDesc[OpImageSparseSampleImplicitLod].operands.push(OperandId, "'Coordinate'");
  1789. InstructionDesc[OpImageSparseSampleImplicitLod].operands.push(OperandImageOperands, "", true);
  1790. InstructionDesc[OpImageSparseSampleImplicitLod].operands.push(OperandVariableIds, "", true);
  1791. InstructionDesc[OpImageSparseSampleExplicitLod].operands.push(OperandId, "'Sampled Image'");
  1792. InstructionDesc[OpImageSparseSampleExplicitLod].operands.push(OperandId, "'Coordinate'");
  1793. InstructionDesc[OpImageSparseSampleExplicitLod].operands.push(OperandImageOperands, "", true);
  1794. InstructionDesc[OpImageSparseSampleExplicitLod].operands.push(OperandVariableIds, "", true);
  1795. InstructionDesc[OpImageSparseSampleDrefImplicitLod].operands.push(OperandId, "'Sampled Image'");
  1796. InstructionDesc[OpImageSparseSampleDrefImplicitLod].operands.push(OperandId, "'Coordinate'");
  1797. InstructionDesc[OpImageSparseSampleDrefImplicitLod].operands.push(OperandId, "'D~ref~'");
  1798. InstructionDesc[OpImageSparseSampleDrefImplicitLod].operands.push(OperandImageOperands, "", true);
  1799. InstructionDesc[OpImageSparseSampleDrefImplicitLod].operands.push(OperandVariableIds, "", true);
  1800. InstructionDesc[OpImageSparseSampleDrefExplicitLod].operands.push(OperandId, "'Sampled Image'");
  1801. InstructionDesc[OpImageSparseSampleDrefExplicitLod].operands.push(OperandId, "'Coordinate'");
  1802. InstructionDesc[OpImageSparseSampleDrefExplicitLod].operands.push(OperandId, "'D~ref~'");
  1803. InstructionDesc[OpImageSparseSampleDrefExplicitLod].operands.push(OperandImageOperands, "", true);
  1804. InstructionDesc[OpImageSparseSampleDrefExplicitLod].operands.push(OperandVariableIds, "", true);
  1805. InstructionDesc[OpImageSparseSampleProjImplicitLod].operands.push(OperandId, "'Sampled Image'");
  1806. InstructionDesc[OpImageSparseSampleProjImplicitLod].operands.push(OperandId, "'Coordinate'");
  1807. InstructionDesc[OpImageSparseSampleProjImplicitLod].operands.push(OperandImageOperands, "", true);
  1808. InstructionDesc[OpImageSparseSampleProjImplicitLod].operands.push(OperandVariableIds, "", true);
  1809. InstructionDesc[OpImageSparseSampleProjExplicitLod].operands.push(OperandId, "'Sampled Image'");
  1810. InstructionDesc[OpImageSparseSampleProjExplicitLod].operands.push(OperandId, "'Coordinate'");
  1811. InstructionDesc[OpImageSparseSampleProjExplicitLod].operands.push(OperandImageOperands, "", true);
  1812. InstructionDesc[OpImageSparseSampleProjExplicitLod].operands.push(OperandVariableIds, "", true);
  1813. InstructionDesc[OpImageSparseSampleProjDrefImplicitLod].operands.push(OperandId, "'Sampled Image'");
  1814. InstructionDesc[OpImageSparseSampleProjDrefImplicitLod].operands.push(OperandId, "'Coordinate'");
  1815. InstructionDesc[OpImageSparseSampleProjDrefImplicitLod].operands.push(OperandId, "'D~ref~'");
  1816. InstructionDesc[OpImageSparseSampleProjDrefImplicitLod].operands.push(OperandImageOperands, "", true);
  1817. InstructionDesc[OpImageSparseSampleProjDrefImplicitLod].operands.push(OperandVariableIds, "", true);
  1818. InstructionDesc[OpImageSparseSampleProjDrefExplicitLod].operands.push(OperandId, "'Sampled Image'");
  1819. InstructionDesc[OpImageSparseSampleProjDrefExplicitLod].operands.push(OperandId, "'Coordinate'");
  1820. InstructionDesc[OpImageSparseSampleProjDrefExplicitLod].operands.push(OperandId, "'D~ref~'");
  1821. InstructionDesc[OpImageSparseSampleProjDrefExplicitLod].operands.push(OperandImageOperands, "", true);
  1822. InstructionDesc[OpImageSparseSampleProjDrefExplicitLod].operands.push(OperandVariableIds, "", true);
  1823. InstructionDesc[OpImageSparseFetch].operands.push(OperandId, "'Image'");
  1824. InstructionDesc[OpImageSparseFetch].operands.push(OperandId, "'Coordinate'");
  1825. InstructionDesc[OpImageSparseFetch].operands.push(OperandImageOperands, "", true);
  1826. InstructionDesc[OpImageSparseFetch].operands.push(OperandVariableIds, "", true);
  1827. InstructionDesc[OpImageSparseGather].operands.push(OperandId, "'Sampled Image'");
  1828. InstructionDesc[OpImageSparseGather].operands.push(OperandId, "'Coordinate'");
  1829. InstructionDesc[OpImageSparseGather].operands.push(OperandId, "'Component'");
  1830. InstructionDesc[OpImageSparseGather].operands.push(OperandImageOperands, "", true);
  1831. InstructionDesc[OpImageSparseGather].operands.push(OperandVariableIds, "", true);
  1832. InstructionDesc[OpImageSparseDrefGather].operands.push(OperandId, "'Sampled Image'");
  1833. InstructionDesc[OpImageSparseDrefGather].operands.push(OperandId, "'Coordinate'");
  1834. InstructionDesc[OpImageSparseDrefGather].operands.push(OperandId, "'D~ref~'");
  1835. InstructionDesc[OpImageSparseDrefGather].operands.push(OperandImageOperands, "", true);
  1836. InstructionDesc[OpImageSparseDrefGather].operands.push(OperandVariableIds, "", true);
  1837. InstructionDesc[OpImageSparseRead].operands.push(OperandId, "'Image'");
  1838. InstructionDesc[OpImageSparseRead].operands.push(OperandId, "'Coordinate'");
  1839. InstructionDesc[OpImageSparseRead].operands.push(OperandImageOperands, "", true);
  1840. InstructionDesc[OpImageSparseRead].operands.push(OperandVariableIds, "", true);
  1841. InstructionDesc[OpImageSparseTexelsResident].operands.push(OperandId, "'Resident Code'");
  1842. InstructionDesc[OpImageQuerySizeLod].operands.push(OperandId, "'Image'");
  1843. InstructionDesc[OpImageQuerySizeLod].operands.push(OperandId, "'Level of Detail'");
  1844. InstructionDesc[OpImageQuerySize].operands.push(OperandId, "'Image'");
  1845. InstructionDesc[OpImageQueryLod].operands.push(OperandId, "'Image'");
  1846. InstructionDesc[OpImageQueryLod].operands.push(OperandId, "'Coordinate'");
  1847. InstructionDesc[OpImageQueryLevels].operands.push(OperandId, "'Image'");
  1848. InstructionDesc[OpImageQuerySamples].operands.push(OperandId, "'Image'");
  1849. InstructionDesc[OpImageQueryFormat].operands.push(OperandId, "'Image'");
  1850. InstructionDesc[OpImageQueryOrder].operands.push(OperandId, "'Image'");
  1851. InstructionDesc[OpAccessChain].operands.push(OperandId, "'Base'");
  1852. InstructionDesc[OpAccessChain].operands.push(OperandVariableIds, "'Indexes'");
  1853. InstructionDesc[OpInBoundsAccessChain].operands.push(OperandId, "'Base'");
  1854. InstructionDesc[OpInBoundsAccessChain].operands.push(OperandVariableIds, "'Indexes'");
  1855. InstructionDesc[OpPtrAccessChain].operands.push(OperandId, "'Base'");
  1856. InstructionDesc[OpPtrAccessChain].operands.push(OperandId, "'Element'");
  1857. InstructionDesc[OpPtrAccessChain].operands.push(OperandVariableIds, "'Indexes'");
  1858. InstructionDesc[OpInBoundsPtrAccessChain].operands.push(OperandId, "'Base'");
  1859. InstructionDesc[OpInBoundsPtrAccessChain].operands.push(OperandId, "'Element'");
  1860. InstructionDesc[OpInBoundsPtrAccessChain].operands.push(OperandVariableIds, "'Indexes'");
  1861. InstructionDesc[OpSNegate].operands.push(OperandId, "'Operand'");
  1862. InstructionDesc[OpFNegate].operands.push(OperandId, "'Operand'");
  1863. InstructionDesc[OpNot].operands.push(OperandId, "'Operand'");
  1864. InstructionDesc[OpAny].operands.push(OperandId, "'Vector'");
  1865. InstructionDesc[OpAll].operands.push(OperandId, "'Vector'");
  1866. InstructionDesc[OpConvertFToU].operands.push(OperandId, "'Float Value'");
  1867. InstructionDesc[OpConvertFToS].operands.push(OperandId, "'Float Value'");
  1868. InstructionDesc[OpConvertSToF].operands.push(OperandId, "'Signed Value'");
  1869. InstructionDesc[OpConvertUToF].operands.push(OperandId, "'Unsigned Value'");
  1870. InstructionDesc[OpUConvert].operands.push(OperandId, "'Unsigned Value'");
  1871. InstructionDesc[OpSConvert].operands.push(OperandId, "'Signed Value'");
  1872. InstructionDesc[OpFConvert].operands.push(OperandId, "'Float Value'");
  1873. InstructionDesc[OpSatConvertSToU].operands.push(OperandId, "'Signed Value'");
  1874. InstructionDesc[OpSatConvertUToS].operands.push(OperandId, "'Unsigned Value'");
  1875. InstructionDesc[OpConvertPtrToU].operands.push(OperandId, "'Pointer'");
  1876. InstructionDesc[OpConvertUToPtr].operands.push(OperandId, "'Integer Value'");
  1877. InstructionDesc[OpPtrCastToGeneric].operands.push(OperandId, "'Pointer'");
  1878. InstructionDesc[OpGenericCastToPtr].operands.push(OperandId, "'Pointer'");
  1879. InstructionDesc[OpGenericCastToPtrExplicit].operands.push(OperandId, "'Pointer'");
  1880. InstructionDesc[OpGenericCastToPtrExplicit].operands.push(OperandStorage, "'Storage'");
  1881. InstructionDesc[OpGenericPtrMemSemantics].operands.push(OperandId, "'Pointer'");
  1882. InstructionDesc[OpBitcast].operands.push(OperandId, "'Operand'");
  1883. InstructionDesc[OpQuantizeToF16].operands.push(OperandId, "'Value'");
  1884. InstructionDesc[OpTranspose].operands.push(OperandId, "'Matrix'");
  1885. InstructionDesc[OpCopyLogical].operands.push(OperandId, "'Operand'");
  1886. InstructionDesc[OpIsNan].operands.push(OperandId, "'x'");
  1887. InstructionDesc[OpIsInf].operands.push(OperandId, "'x'");
  1888. InstructionDesc[OpIsFinite].operands.push(OperandId, "'x'");
  1889. InstructionDesc[OpIsNormal].operands.push(OperandId, "'x'");
  1890. InstructionDesc[OpSignBitSet].operands.push(OperandId, "'x'");
  1891. InstructionDesc[OpLessOrGreater].operands.push(OperandId, "'x'");
  1892. InstructionDesc[OpLessOrGreater].operands.push(OperandId, "'y'");
  1893. InstructionDesc[OpOrdered].operands.push(OperandId, "'x'");
  1894. InstructionDesc[OpOrdered].operands.push(OperandId, "'y'");
  1895. InstructionDesc[OpUnordered].operands.push(OperandId, "'x'");
  1896. InstructionDesc[OpUnordered].operands.push(OperandId, "'y'");
  1897. InstructionDesc[OpArrayLength].operands.push(OperandId, "'Structure'");
  1898. InstructionDesc[OpArrayLength].operands.push(OperandLiteralNumber, "'Array member'");
  1899. InstructionDesc[OpIAdd].operands.push(OperandId, "'Operand 1'");
  1900. InstructionDesc[OpIAdd].operands.push(OperandId, "'Operand 2'");
  1901. InstructionDesc[OpFAdd].operands.push(OperandId, "'Operand 1'");
  1902. InstructionDesc[OpFAdd].operands.push(OperandId, "'Operand 2'");
  1903. InstructionDesc[OpISub].operands.push(OperandId, "'Operand 1'");
  1904. InstructionDesc[OpISub].operands.push(OperandId, "'Operand 2'");
  1905. InstructionDesc[OpFSub].operands.push(OperandId, "'Operand 1'");
  1906. InstructionDesc[OpFSub].operands.push(OperandId, "'Operand 2'");
  1907. InstructionDesc[OpIMul].operands.push(OperandId, "'Operand 1'");
  1908. InstructionDesc[OpIMul].operands.push(OperandId, "'Operand 2'");
  1909. InstructionDesc[OpFMul].operands.push(OperandId, "'Operand 1'");
  1910. InstructionDesc[OpFMul].operands.push(OperandId, "'Operand 2'");
  1911. InstructionDesc[OpUDiv].operands.push(OperandId, "'Operand 1'");
  1912. InstructionDesc[OpUDiv].operands.push(OperandId, "'Operand 2'");
  1913. InstructionDesc[OpSDiv].operands.push(OperandId, "'Operand 1'");
  1914. InstructionDesc[OpSDiv].operands.push(OperandId, "'Operand 2'");
  1915. InstructionDesc[OpFDiv].operands.push(OperandId, "'Operand 1'");
  1916. InstructionDesc[OpFDiv].operands.push(OperandId, "'Operand 2'");
  1917. InstructionDesc[OpUMod].operands.push(OperandId, "'Operand 1'");
  1918. InstructionDesc[OpUMod].operands.push(OperandId, "'Operand 2'");
  1919. InstructionDesc[OpSRem].operands.push(OperandId, "'Operand 1'");
  1920. InstructionDesc[OpSRem].operands.push(OperandId, "'Operand 2'");
  1921. InstructionDesc[OpSMod].operands.push(OperandId, "'Operand 1'");
  1922. InstructionDesc[OpSMod].operands.push(OperandId, "'Operand 2'");
  1923. InstructionDesc[OpFRem].operands.push(OperandId, "'Operand 1'");
  1924. InstructionDesc[OpFRem].operands.push(OperandId, "'Operand 2'");
  1925. InstructionDesc[OpFMod].operands.push(OperandId, "'Operand 1'");
  1926. InstructionDesc[OpFMod].operands.push(OperandId, "'Operand 2'");
  1927. InstructionDesc[OpVectorTimesScalar].operands.push(OperandId, "'Vector'");
  1928. InstructionDesc[OpVectorTimesScalar].operands.push(OperandId, "'Scalar'");
  1929. InstructionDesc[OpMatrixTimesScalar].operands.push(OperandId, "'Matrix'");
  1930. InstructionDesc[OpMatrixTimesScalar].operands.push(OperandId, "'Scalar'");
  1931. InstructionDesc[OpVectorTimesMatrix].operands.push(OperandId, "'Vector'");
  1932. InstructionDesc[OpVectorTimesMatrix].operands.push(OperandId, "'Matrix'");
  1933. InstructionDesc[OpMatrixTimesVector].operands.push(OperandId, "'Matrix'");
  1934. InstructionDesc[OpMatrixTimesVector].operands.push(OperandId, "'Vector'");
  1935. InstructionDesc[OpMatrixTimesMatrix].operands.push(OperandId, "'LeftMatrix'");
  1936. InstructionDesc[OpMatrixTimesMatrix].operands.push(OperandId, "'RightMatrix'");
  1937. InstructionDesc[OpOuterProduct].operands.push(OperandId, "'Vector 1'");
  1938. InstructionDesc[OpOuterProduct].operands.push(OperandId, "'Vector 2'");
  1939. InstructionDesc[OpDot].operands.push(OperandId, "'Vector 1'");
  1940. InstructionDesc[OpDot].operands.push(OperandId, "'Vector 2'");
  1941. InstructionDesc[OpIAddCarry].operands.push(OperandId, "'Operand 1'");
  1942. InstructionDesc[OpIAddCarry].operands.push(OperandId, "'Operand 2'");
  1943. InstructionDesc[OpISubBorrow].operands.push(OperandId, "'Operand 1'");
  1944. InstructionDesc[OpISubBorrow].operands.push(OperandId, "'Operand 2'");
  1945. InstructionDesc[OpUMulExtended].operands.push(OperandId, "'Operand 1'");
  1946. InstructionDesc[OpUMulExtended].operands.push(OperandId, "'Operand 2'");
  1947. InstructionDesc[OpSMulExtended].operands.push(OperandId, "'Operand 1'");
  1948. InstructionDesc[OpSMulExtended].operands.push(OperandId, "'Operand 2'");
  1949. InstructionDesc[OpShiftRightLogical].operands.push(OperandId, "'Base'");
  1950. InstructionDesc[OpShiftRightLogical].operands.push(OperandId, "'Shift'");
  1951. InstructionDesc[OpShiftRightArithmetic].operands.push(OperandId, "'Base'");
  1952. InstructionDesc[OpShiftRightArithmetic].operands.push(OperandId, "'Shift'");
  1953. InstructionDesc[OpShiftLeftLogical].operands.push(OperandId, "'Base'");
  1954. InstructionDesc[OpShiftLeftLogical].operands.push(OperandId, "'Shift'");
  1955. InstructionDesc[OpLogicalOr].operands.push(OperandId, "'Operand 1'");
  1956. InstructionDesc[OpLogicalOr].operands.push(OperandId, "'Operand 2'");
  1957. InstructionDesc[OpLogicalAnd].operands.push(OperandId, "'Operand 1'");
  1958. InstructionDesc[OpLogicalAnd].operands.push(OperandId, "'Operand 2'");
  1959. InstructionDesc[OpLogicalEqual].operands.push(OperandId, "'Operand 1'");
  1960. InstructionDesc[OpLogicalEqual].operands.push(OperandId, "'Operand 2'");
  1961. InstructionDesc[OpLogicalNotEqual].operands.push(OperandId, "'Operand 1'");
  1962. InstructionDesc[OpLogicalNotEqual].operands.push(OperandId, "'Operand 2'");
  1963. InstructionDesc[OpLogicalNot].operands.push(OperandId, "'Operand'");
  1964. InstructionDesc[OpBitwiseOr].operands.push(OperandId, "'Operand 1'");
  1965. InstructionDesc[OpBitwiseOr].operands.push(OperandId, "'Operand 2'");
  1966. InstructionDesc[OpBitwiseXor].operands.push(OperandId, "'Operand 1'");
  1967. InstructionDesc[OpBitwiseXor].operands.push(OperandId, "'Operand 2'");
  1968. InstructionDesc[OpBitwiseAnd].operands.push(OperandId, "'Operand 1'");
  1969. InstructionDesc[OpBitwiseAnd].operands.push(OperandId, "'Operand 2'");
  1970. InstructionDesc[OpBitFieldInsert].operands.push(OperandId, "'Base'");
  1971. InstructionDesc[OpBitFieldInsert].operands.push(OperandId, "'Insert'");
  1972. InstructionDesc[OpBitFieldInsert].operands.push(OperandId, "'Offset'");
  1973. InstructionDesc[OpBitFieldInsert].operands.push(OperandId, "'Count'");
  1974. InstructionDesc[OpBitFieldSExtract].operands.push(OperandId, "'Base'");
  1975. InstructionDesc[OpBitFieldSExtract].operands.push(OperandId, "'Offset'");
  1976. InstructionDesc[OpBitFieldSExtract].operands.push(OperandId, "'Count'");
  1977. InstructionDesc[OpBitFieldUExtract].operands.push(OperandId, "'Base'");
  1978. InstructionDesc[OpBitFieldUExtract].operands.push(OperandId, "'Offset'");
  1979. InstructionDesc[OpBitFieldUExtract].operands.push(OperandId, "'Count'");
  1980. InstructionDesc[OpBitReverse].operands.push(OperandId, "'Base'");
  1981. InstructionDesc[OpBitCount].operands.push(OperandId, "'Base'");
  1982. InstructionDesc[OpSelect].operands.push(OperandId, "'Condition'");
  1983. InstructionDesc[OpSelect].operands.push(OperandId, "'Object 1'");
  1984. InstructionDesc[OpSelect].operands.push(OperandId, "'Object 2'");
  1985. InstructionDesc[OpIEqual].operands.push(OperandId, "'Operand 1'");
  1986. InstructionDesc[OpIEqual].operands.push(OperandId, "'Operand 2'");
  1987. InstructionDesc[OpFOrdEqual].operands.push(OperandId, "'Operand 1'");
  1988. InstructionDesc[OpFOrdEqual].operands.push(OperandId, "'Operand 2'");
  1989. InstructionDesc[OpFUnordEqual].operands.push(OperandId, "'Operand 1'");
  1990. InstructionDesc[OpFUnordEqual].operands.push(OperandId, "'Operand 2'");
  1991. InstructionDesc[OpINotEqual].operands.push(OperandId, "'Operand 1'");
  1992. InstructionDesc[OpINotEqual].operands.push(OperandId, "'Operand 2'");
  1993. InstructionDesc[OpFOrdNotEqual].operands.push(OperandId, "'Operand 1'");
  1994. InstructionDesc[OpFOrdNotEqual].operands.push(OperandId, "'Operand 2'");
  1995. InstructionDesc[OpFUnordNotEqual].operands.push(OperandId, "'Operand 1'");
  1996. InstructionDesc[OpFUnordNotEqual].operands.push(OperandId, "'Operand 2'");
  1997. InstructionDesc[OpULessThan].operands.push(OperandId, "'Operand 1'");
  1998. InstructionDesc[OpULessThan].operands.push(OperandId, "'Operand 2'");
  1999. InstructionDesc[OpSLessThan].operands.push(OperandId, "'Operand 1'");
  2000. InstructionDesc[OpSLessThan].operands.push(OperandId, "'Operand 2'");
  2001. InstructionDesc[OpFOrdLessThan].operands.push(OperandId, "'Operand 1'");
  2002. InstructionDesc[OpFOrdLessThan].operands.push(OperandId, "'Operand 2'");
  2003. InstructionDesc[OpFUnordLessThan].operands.push(OperandId, "'Operand 1'");
  2004. InstructionDesc[OpFUnordLessThan].operands.push(OperandId, "'Operand 2'");
  2005. InstructionDesc[OpUGreaterThan].operands.push(OperandId, "'Operand 1'");
  2006. InstructionDesc[OpUGreaterThan].operands.push(OperandId, "'Operand 2'");
  2007. InstructionDesc[OpSGreaterThan].operands.push(OperandId, "'Operand 1'");
  2008. InstructionDesc[OpSGreaterThan].operands.push(OperandId, "'Operand 2'");
  2009. InstructionDesc[OpFOrdGreaterThan].operands.push(OperandId, "'Operand 1'");
  2010. InstructionDesc[OpFOrdGreaterThan].operands.push(OperandId, "'Operand 2'");
  2011. InstructionDesc[OpFUnordGreaterThan].operands.push(OperandId, "'Operand 1'");
  2012. InstructionDesc[OpFUnordGreaterThan].operands.push(OperandId, "'Operand 2'");
  2013. InstructionDesc[OpULessThanEqual].operands.push(OperandId, "'Operand 1'");
  2014. InstructionDesc[OpULessThanEqual].operands.push(OperandId, "'Operand 2'");
  2015. InstructionDesc[OpSLessThanEqual].operands.push(OperandId, "'Operand 1'");
  2016. InstructionDesc[OpSLessThanEqual].operands.push(OperandId, "'Operand 2'");
  2017. InstructionDesc[OpFOrdLessThanEqual].operands.push(OperandId, "'Operand 1'");
  2018. InstructionDesc[OpFOrdLessThanEqual].operands.push(OperandId, "'Operand 2'");
  2019. InstructionDesc[OpFUnordLessThanEqual].operands.push(OperandId, "'Operand 1'");
  2020. InstructionDesc[OpFUnordLessThanEqual].operands.push(OperandId, "'Operand 2'");
  2021. InstructionDesc[OpUGreaterThanEqual].operands.push(OperandId, "'Operand 1'");
  2022. InstructionDesc[OpUGreaterThanEqual].operands.push(OperandId, "'Operand 2'");
  2023. InstructionDesc[OpSGreaterThanEqual].operands.push(OperandId, "'Operand 1'");
  2024. InstructionDesc[OpSGreaterThanEqual].operands.push(OperandId, "'Operand 2'");
  2025. InstructionDesc[OpFOrdGreaterThanEqual].operands.push(OperandId, "'Operand 1'");
  2026. InstructionDesc[OpFOrdGreaterThanEqual].operands.push(OperandId, "'Operand 2'");
  2027. InstructionDesc[OpFUnordGreaterThanEqual].operands.push(OperandId, "'Operand 1'");
  2028. InstructionDesc[OpFUnordGreaterThanEqual].operands.push(OperandId, "'Operand 2'");
  2029. InstructionDesc[OpDPdx].operands.push(OperandId, "'P'");
  2030. InstructionDesc[OpDPdy].operands.push(OperandId, "'P'");
  2031. InstructionDesc[OpFwidth].operands.push(OperandId, "'P'");
  2032. InstructionDesc[OpDPdxFine].operands.push(OperandId, "'P'");
  2033. InstructionDesc[OpDPdyFine].operands.push(OperandId, "'P'");
  2034. InstructionDesc[OpFwidthFine].operands.push(OperandId, "'P'");
  2035. InstructionDesc[OpDPdxCoarse].operands.push(OperandId, "'P'");
  2036. InstructionDesc[OpDPdyCoarse].operands.push(OperandId, "'P'");
  2037. InstructionDesc[OpFwidthCoarse].operands.push(OperandId, "'P'");
  2038. InstructionDesc[OpEmitStreamVertex].operands.push(OperandId, "'Stream'");
  2039. InstructionDesc[OpEndStreamPrimitive].operands.push(OperandId, "'Stream'");
  2040. InstructionDesc[OpControlBarrier].operands.push(OperandScope, "'Execution'");
  2041. InstructionDesc[OpControlBarrier].operands.push(OperandScope, "'Memory'");
  2042. InstructionDesc[OpControlBarrier].operands.push(OperandMemorySemantics, "'Semantics'");
  2043. InstructionDesc[OpMemoryBarrier].operands.push(OperandScope, "'Memory'");
  2044. InstructionDesc[OpMemoryBarrier].operands.push(OperandMemorySemantics, "'Semantics'");
  2045. InstructionDesc[OpImageTexelPointer].operands.push(OperandId, "'Image'");
  2046. InstructionDesc[OpImageTexelPointer].operands.push(OperandId, "'Coordinate'");
  2047. InstructionDesc[OpImageTexelPointer].operands.push(OperandId, "'Sample'");
  2048. InstructionDesc[OpAtomicLoad].operands.push(OperandId, "'Pointer'");
  2049. InstructionDesc[OpAtomicLoad].operands.push(OperandScope, "'Scope'");
  2050. InstructionDesc[OpAtomicLoad].operands.push(OperandMemorySemantics, "'Semantics'");
  2051. InstructionDesc[OpAtomicStore].operands.push(OperandId, "'Pointer'");
  2052. InstructionDesc[OpAtomicStore].operands.push(OperandScope, "'Scope'");
  2053. InstructionDesc[OpAtomicStore].operands.push(OperandMemorySemantics, "'Semantics'");
  2054. InstructionDesc[OpAtomicStore].operands.push(OperandId, "'Value'");
  2055. InstructionDesc[OpAtomicExchange].operands.push(OperandId, "'Pointer'");
  2056. InstructionDesc[OpAtomicExchange].operands.push(OperandScope, "'Scope'");
  2057. InstructionDesc[OpAtomicExchange].operands.push(OperandMemorySemantics, "'Semantics'");
  2058. InstructionDesc[OpAtomicExchange].operands.push(OperandId, "'Value'");
  2059. InstructionDesc[OpAtomicCompareExchange].operands.push(OperandId, "'Pointer'");
  2060. InstructionDesc[OpAtomicCompareExchange].operands.push(OperandScope, "'Scope'");
  2061. InstructionDesc[OpAtomicCompareExchange].operands.push(OperandMemorySemantics, "'Equal'");
  2062. InstructionDesc[OpAtomicCompareExchange].operands.push(OperandMemorySemantics, "'Unequal'");
  2063. InstructionDesc[OpAtomicCompareExchange].operands.push(OperandId, "'Value'");
  2064. InstructionDesc[OpAtomicCompareExchange].operands.push(OperandId, "'Comparator'");
  2065. InstructionDesc[OpAtomicCompareExchangeWeak].operands.push(OperandId, "'Pointer'");
  2066. InstructionDesc[OpAtomicCompareExchangeWeak].operands.push(OperandScope, "'Scope'");
  2067. InstructionDesc[OpAtomicCompareExchangeWeak].operands.push(OperandMemorySemantics, "'Equal'");
  2068. InstructionDesc[OpAtomicCompareExchangeWeak].operands.push(OperandMemorySemantics, "'Unequal'");
  2069. InstructionDesc[OpAtomicCompareExchangeWeak].operands.push(OperandId, "'Value'");
  2070. InstructionDesc[OpAtomicCompareExchangeWeak].operands.push(OperandId, "'Comparator'");
  2071. InstructionDesc[OpAtomicIIncrement].operands.push(OperandId, "'Pointer'");
  2072. InstructionDesc[OpAtomicIIncrement].operands.push(OperandScope, "'Scope'");
  2073. InstructionDesc[OpAtomicIIncrement].operands.push(OperandMemorySemantics, "'Semantics'");
  2074. InstructionDesc[OpAtomicIDecrement].operands.push(OperandId, "'Pointer'");
  2075. InstructionDesc[OpAtomicIDecrement].operands.push(OperandScope, "'Scope'");
  2076. InstructionDesc[OpAtomicIDecrement].operands.push(OperandMemorySemantics, "'Semantics'");
  2077. InstructionDesc[OpAtomicIAdd].operands.push(OperandId, "'Pointer'");
  2078. InstructionDesc[OpAtomicIAdd].operands.push(OperandScope, "'Scope'");
  2079. InstructionDesc[OpAtomicIAdd].operands.push(OperandMemorySemantics, "'Semantics'");
  2080. InstructionDesc[OpAtomicIAdd].operands.push(OperandId, "'Value'");
  2081. InstructionDesc[OpAtomicFAddEXT].operands.push(OperandId, "'Pointer'");
  2082. InstructionDesc[OpAtomicFAddEXT].operands.push(OperandScope, "'Scope'");
  2083. InstructionDesc[OpAtomicFAddEXT].operands.push(OperandMemorySemantics, "'Semantics'");
  2084. InstructionDesc[OpAtomicFAddEXT].operands.push(OperandId, "'Value'");
  2085. InstructionDesc[OpAtomicISub].operands.push(OperandId, "'Pointer'");
  2086. InstructionDesc[OpAtomicISub].operands.push(OperandScope, "'Scope'");
  2087. InstructionDesc[OpAtomicISub].operands.push(OperandMemorySemantics, "'Semantics'");
  2088. InstructionDesc[OpAtomicISub].operands.push(OperandId, "'Value'");
  2089. InstructionDesc[OpAtomicUMin].operands.push(OperandId, "'Pointer'");
  2090. InstructionDesc[OpAtomicUMin].operands.push(OperandScope, "'Scope'");
  2091. InstructionDesc[OpAtomicUMin].operands.push(OperandMemorySemantics, "'Semantics'");
  2092. InstructionDesc[OpAtomicUMin].operands.push(OperandId, "'Value'");
  2093. InstructionDesc[OpAtomicUMax].operands.push(OperandId, "'Pointer'");
  2094. InstructionDesc[OpAtomicUMax].operands.push(OperandScope, "'Scope'");
  2095. InstructionDesc[OpAtomicUMax].operands.push(OperandMemorySemantics, "'Semantics'");
  2096. InstructionDesc[OpAtomicUMax].operands.push(OperandId, "'Value'");
  2097. InstructionDesc[OpAtomicSMin].operands.push(OperandId, "'Pointer'");
  2098. InstructionDesc[OpAtomicSMin].operands.push(OperandScope, "'Scope'");
  2099. InstructionDesc[OpAtomicSMin].operands.push(OperandMemorySemantics, "'Semantics'");
  2100. InstructionDesc[OpAtomicSMin].operands.push(OperandId, "'Value'");
  2101. InstructionDesc[OpAtomicSMax].operands.push(OperandId, "'Pointer'");
  2102. InstructionDesc[OpAtomicSMax].operands.push(OperandScope, "'Scope'");
  2103. InstructionDesc[OpAtomicSMax].operands.push(OperandMemorySemantics, "'Semantics'");
  2104. InstructionDesc[OpAtomicSMax].operands.push(OperandId, "'Value'");
  2105. InstructionDesc[OpAtomicFMinEXT].operands.push(OperandId, "'Pointer'");
  2106. InstructionDesc[OpAtomicFMinEXT].operands.push(OperandScope, "'Scope'");
  2107. InstructionDesc[OpAtomicFMinEXT].operands.push(OperandMemorySemantics, "'Semantics'");
  2108. InstructionDesc[OpAtomicFMinEXT].operands.push(OperandId, "'Value'");
  2109. InstructionDesc[OpAtomicFMaxEXT].operands.push(OperandId, "'Pointer'");
  2110. InstructionDesc[OpAtomicFMaxEXT].operands.push(OperandScope, "'Scope'");
  2111. InstructionDesc[OpAtomicFMaxEXT].operands.push(OperandMemorySemantics, "'Semantics'");
  2112. InstructionDesc[OpAtomicFMaxEXT].operands.push(OperandId, "'Value'");
  2113. InstructionDesc[OpAtomicAnd].operands.push(OperandId, "'Pointer'");
  2114. InstructionDesc[OpAtomicAnd].operands.push(OperandScope, "'Scope'");
  2115. InstructionDesc[OpAtomicAnd].operands.push(OperandMemorySemantics, "'Semantics'");
  2116. InstructionDesc[OpAtomicAnd].operands.push(OperandId, "'Value'");
  2117. InstructionDesc[OpAtomicOr].operands.push(OperandId, "'Pointer'");
  2118. InstructionDesc[OpAtomicOr].operands.push(OperandScope, "'Scope'");
  2119. InstructionDesc[OpAtomicOr].operands.push(OperandMemorySemantics, "'Semantics'");
  2120. InstructionDesc[OpAtomicOr].operands.push(OperandId, "'Value'");
  2121. InstructionDesc[OpAtomicXor].operands.push(OperandId, "'Pointer'");
  2122. InstructionDesc[OpAtomicXor].operands.push(OperandScope, "'Scope'");
  2123. InstructionDesc[OpAtomicXor].operands.push(OperandMemorySemantics, "'Semantics'");
  2124. InstructionDesc[OpAtomicXor].operands.push(OperandId, "'Value'");
  2125. InstructionDesc[OpAtomicFlagTestAndSet].operands.push(OperandId, "'Pointer'");
  2126. InstructionDesc[OpAtomicFlagTestAndSet].operands.push(OperandScope, "'Scope'");
  2127. InstructionDesc[OpAtomicFlagTestAndSet].operands.push(OperandMemorySemantics, "'Semantics'");
  2128. InstructionDesc[OpAtomicFlagClear].operands.push(OperandId, "'Pointer'");
  2129. InstructionDesc[OpAtomicFlagClear].operands.push(OperandScope, "'Scope'");
  2130. InstructionDesc[OpAtomicFlagClear].operands.push(OperandMemorySemantics, "'Semantics'");
  2131. InstructionDesc[OpLoopMerge].operands.push(OperandId, "'Merge Block'");
  2132. InstructionDesc[OpLoopMerge].operands.push(OperandId, "'Continue Target'");
  2133. InstructionDesc[OpLoopMerge].operands.push(OperandLoop, "");
  2134. InstructionDesc[OpLoopMerge].operands.push(OperandOptionalLiteral, "");
  2135. InstructionDesc[OpSelectionMerge].operands.push(OperandId, "'Merge Block'");
  2136. InstructionDesc[OpSelectionMerge].operands.push(OperandSelect, "");
  2137. InstructionDesc[OpBranch].operands.push(OperandId, "'Target Label'");
  2138. InstructionDesc[OpBranchConditional].operands.push(OperandId, "'Condition'");
  2139. InstructionDesc[OpBranchConditional].operands.push(OperandId, "'True Label'");
  2140. InstructionDesc[OpBranchConditional].operands.push(OperandId, "'False Label'");
  2141. InstructionDesc[OpBranchConditional].operands.push(OperandVariableLiterals, "'Branch weights'");
  2142. InstructionDesc[OpSwitch].operands.push(OperandId, "'Selector'");
  2143. InstructionDesc[OpSwitch].operands.push(OperandId, "'Default'");
  2144. InstructionDesc[OpSwitch].operands.push(OperandVariableLiteralId, "'Target'");
  2145. InstructionDesc[OpReturnValue].operands.push(OperandId, "'Value'");
  2146. InstructionDesc[OpLifetimeStart].operands.push(OperandId, "'Pointer'");
  2147. InstructionDesc[OpLifetimeStart].operands.push(OperandLiteralNumber, "'Size'");
  2148. InstructionDesc[OpLifetimeStop].operands.push(OperandId, "'Pointer'");
  2149. InstructionDesc[OpLifetimeStop].operands.push(OperandLiteralNumber, "'Size'");
  2150. InstructionDesc[OpGroupAsyncCopy].operands.push(OperandScope, "'Execution'");
  2151. InstructionDesc[OpGroupAsyncCopy].operands.push(OperandId, "'Destination'");
  2152. InstructionDesc[OpGroupAsyncCopy].operands.push(OperandId, "'Source'");
  2153. InstructionDesc[OpGroupAsyncCopy].operands.push(OperandId, "'Num Elements'");
  2154. InstructionDesc[OpGroupAsyncCopy].operands.push(OperandId, "'Stride'");
  2155. InstructionDesc[OpGroupAsyncCopy].operands.push(OperandId, "'Event'");
  2156. InstructionDesc[OpGroupWaitEvents].operands.push(OperandScope, "'Execution'");
  2157. InstructionDesc[OpGroupWaitEvents].operands.push(OperandId, "'Num Events'");
  2158. InstructionDesc[OpGroupWaitEvents].operands.push(OperandId, "'Events List'");
  2159. InstructionDesc[OpGroupAll].operands.push(OperandScope, "'Execution'");
  2160. InstructionDesc[OpGroupAll].operands.push(OperandId, "'Predicate'");
  2161. InstructionDesc[OpGroupAny].operands.push(OperandScope, "'Execution'");
  2162. InstructionDesc[OpGroupAny].operands.push(OperandId, "'Predicate'");
  2163. InstructionDesc[OpGroupBroadcast].operands.push(OperandScope, "'Execution'");
  2164. InstructionDesc[OpGroupBroadcast].operands.push(OperandId, "'Value'");
  2165. InstructionDesc[OpGroupBroadcast].operands.push(OperandId, "'LocalId'");
  2166. InstructionDesc[OpGroupIAdd].operands.push(OperandScope, "'Execution'");
  2167. InstructionDesc[OpGroupIAdd].operands.push(OperandGroupOperation, "'Operation'");
  2168. InstructionDesc[OpGroupIAdd].operands.push(OperandId, "'X'");
  2169. InstructionDesc[OpGroupFAdd].operands.push(OperandScope, "'Execution'");
  2170. InstructionDesc[OpGroupFAdd].operands.push(OperandGroupOperation, "'Operation'");
  2171. InstructionDesc[OpGroupFAdd].operands.push(OperandId, "'X'");
  2172. InstructionDesc[OpGroupUMin].operands.push(OperandScope, "'Execution'");
  2173. InstructionDesc[OpGroupUMin].operands.push(OperandGroupOperation, "'Operation'");
  2174. InstructionDesc[OpGroupUMin].operands.push(OperandId, "'X'");
  2175. InstructionDesc[OpGroupSMin].operands.push(OperandScope, "'Execution'");
  2176. InstructionDesc[OpGroupSMin].operands.push(OperandGroupOperation, "'Operation'");
  2177. InstructionDesc[OpGroupSMin].operands.push(OperandId, "X");
  2178. InstructionDesc[OpGroupFMin].operands.push(OperandScope, "'Execution'");
  2179. InstructionDesc[OpGroupFMin].operands.push(OperandGroupOperation, "'Operation'");
  2180. InstructionDesc[OpGroupFMin].operands.push(OperandId, "X");
  2181. InstructionDesc[OpGroupUMax].operands.push(OperandScope, "'Execution'");
  2182. InstructionDesc[OpGroupUMax].operands.push(OperandGroupOperation, "'Operation'");
  2183. InstructionDesc[OpGroupUMax].operands.push(OperandId, "X");
  2184. InstructionDesc[OpGroupSMax].operands.push(OperandScope, "'Execution'");
  2185. InstructionDesc[OpGroupSMax].operands.push(OperandGroupOperation, "'Operation'");
  2186. InstructionDesc[OpGroupSMax].operands.push(OperandId, "X");
  2187. InstructionDesc[OpGroupFMax].operands.push(OperandScope, "'Execution'");
  2188. InstructionDesc[OpGroupFMax].operands.push(OperandGroupOperation, "'Operation'");
  2189. InstructionDesc[OpGroupFMax].operands.push(OperandId, "X");
  2190. InstructionDesc[OpReadPipe].operands.push(OperandId, "'Pipe'");
  2191. InstructionDesc[OpReadPipe].operands.push(OperandId, "'Pointer'");
  2192. InstructionDesc[OpReadPipe].operands.push(OperandId, "'Packet Size'");
  2193. InstructionDesc[OpReadPipe].operands.push(OperandId, "'Packet Alignment'");
  2194. InstructionDesc[OpWritePipe].operands.push(OperandId, "'Pipe'");
  2195. InstructionDesc[OpWritePipe].operands.push(OperandId, "'Pointer'");
  2196. InstructionDesc[OpWritePipe].operands.push(OperandId, "'Packet Size'");
  2197. InstructionDesc[OpWritePipe].operands.push(OperandId, "'Packet Alignment'");
  2198. InstructionDesc[OpReservedReadPipe].operands.push(OperandId, "'Pipe'");
  2199. InstructionDesc[OpReservedReadPipe].operands.push(OperandId, "'Reserve Id'");
  2200. InstructionDesc[OpReservedReadPipe].operands.push(OperandId, "'Index'");
  2201. InstructionDesc[OpReservedReadPipe].operands.push(OperandId, "'Pointer'");
  2202. InstructionDesc[OpReservedReadPipe].operands.push(OperandId, "'Packet Size'");
  2203. InstructionDesc[OpReservedReadPipe].operands.push(OperandId, "'Packet Alignment'");
  2204. InstructionDesc[OpReservedWritePipe].operands.push(OperandId, "'Pipe'");
  2205. InstructionDesc[OpReservedWritePipe].operands.push(OperandId, "'Reserve Id'");
  2206. InstructionDesc[OpReservedWritePipe].operands.push(OperandId, "'Index'");
  2207. InstructionDesc[OpReservedWritePipe].operands.push(OperandId, "'Pointer'");
  2208. InstructionDesc[OpReservedWritePipe].operands.push(OperandId, "'Packet Size'");
  2209. InstructionDesc[OpReservedWritePipe].operands.push(OperandId, "'Packet Alignment'");
  2210. InstructionDesc[OpReserveReadPipePackets].operands.push(OperandId, "'Pipe'");
  2211. InstructionDesc[OpReserveReadPipePackets].operands.push(OperandId, "'Num Packets'");
  2212. InstructionDesc[OpReserveReadPipePackets].operands.push(OperandId, "'Packet Size'");
  2213. InstructionDesc[OpReserveReadPipePackets].operands.push(OperandId, "'Packet Alignment'");
  2214. InstructionDesc[OpReserveWritePipePackets].operands.push(OperandId, "'Pipe'");
  2215. InstructionDesc[OpReserveWritePipePackets].operands.push(OperandId, "'Num Packets'");
  2216. InstructionDesc[OpReserveWritePipePackets].operands.push(OperandId, "'Packet Size'");
  2217. InstructionDesc[OpReserveWritePipePackets].operands.push(OperandId, "'Packet Alignment'");
  2218. InstructionDesc[OpCommitReadPipe].operands.push(OperandId, "'Pipe'");
  2219. InstructionDesc[OpCommitReadPipe].operands.push(OperandId, "'Reserve Id'");
  2220. InstructionDesc[OpCommitReadPipe].operands.push(OperandId, "'Packet Size'");
  2221. InstructionDesc[OpCommitReadPipe].operands.push(OperandId, "'Packet Alignment'");
  2222. InstructionDesc[OpCommitWritePipe].operands.push(OperandId, "'Pipe'");
  2223. InstructionDesc[OpCommitWritePipe].operands.push(OperandId, "'Reserve Id'");
  2224. InstructionDesc[OpCommitWritePipe].operands.push(OperandId, "'Packet Size'");
  2225. InstructionDesc[OpCommitWritePipe].operands.push(OperandId, "'Packet Alignment'");
  2226. InstructionDesc[OpIsValidReserveId].operands.push(OperandId, "'Reserve Id'");
  2227. InstructionDesc[OpGetNumPipePackets].operands.push(OperandId, "'Pipe'");
  2228. InstructionDesc[OpGetNumPipePackets].operands.push(OperandId, "'Packet Size'");
  2229. InstructionDesc[OpGetNumPipePackets].operands.push(OperandId, "'Packet Alignment'");
  2230. InstructionDesc[OpGetMaxPipePackets].operands.push(OperandId, "'Pipe'");
  2231. InstructionDesc[OpGetMaxPipePackets].operands.push(OperandId, "'Packet Size'");
  2232. InstructionDesc[OpGetMaxPipePackets].operands.push(OperandId, "'Packet Alignment'");
  2233. InstructionDesc[OpGroupReserveReadPipePackets].operands.push(OperandScope, "'Execution'");
  2234. InstructionDesc[OpGroupReserveReadPipePackets].operands.push(OperandId, "'Pipe'");
  2235. InstructionDesc[OpGroupReserveReadPipePackets].operands.push(OperandId, "'Num Packets'");
  2236. InstructionDesc[OpGroupReserveReadPipePackets].operands.push(OperandId, "'Packet Size'");
  2237. InstructionDesc[OpGroupReserveReadPipePackets].operands.push(OperandId, "'Packet Alignment'");
  2238. InstructionDesc[OpGroupReserveWritePipePackets].operands.push(OperandScope, "'Execution'");
  2239. InstructionDesc[OpGroupReserveWritePipePackets].operands.push(OperandId, "'Pipe'");
  2240. InstructionDesc[OpGroupReserveWritePipePackets].operands.push(OperandId, "'Num Packets'");
  2241. InstructionDesc[OpGroupReserveWritePipePackets].operands.push(OperandId, "'Packet Size'");
  2242. InstructionDesc[OpGroupReserveWritePipePackets].operands.push(OperandId, "'Packet Alignment'");
  2243. InstructionDesc[OpGroupCommitReadPipe].operands.push(OperandScope, "'Execution'");
  2244. InstructionDesc[OpGroupCommitReadPipe].operands.push(OperandId, "'Pipe'");
  2245. InstructionDesc[OpGroupCommitReadPipe].operands.push(OperandId, "'Reserve Id'");
  2246. InstructionDesc[OpGroupCommitReadPipe].operands.push(OperandId, "'Packet Size'");
  2247. InstructionDesc[OpGroupCommitReadPipe].operands.push(OperandId, "'Packet Alignment'");
  2248. InstructionDesc[OpGroupCommitWritePipe].operands.push(OperandScope, "'Execution'");
  2249. InstructionDesc[OpGroupCommitWritePipe].operands.push(OperandId, "'Pipe'");
  2250. InstructionDesc[OpGroupCommitWritePipe].operands.push(OperandId, "'Reserve Id'");
  2251. InstructionDesc[OpGroupCommitWritePipe].operands.push(OperandId, "'Packet Size'");
  2252. InstructionDesc[OpGroupCommitWritePipe].operands.push(OperandId, "'Packet Alignment'");
  2253. InstructionDesc[OpBuildNDRange].operands.push(OperandId, "'GlobalWorkSize'");
  2254. InstructionDesc[OpBuildNDRange].operands.push(OperandId, "'LocalWorkSize'");
  2255. InstructionDesc[OpBuildNDRange].operands.push(OperandId, "'GlobalWorkOffset'");
  2256. InstructionDesc[OpCaptureEventProfilingInfo].operands.push(OperandId, "'Event'");
  2257. InstructionDesc[OpCaptureEventProfilingInfo].operands.push(OperandId, "'Profiling Info'");
  2258. InstructionDesc[OpCaptureEventProfilingInfo].operands.push(OperandId, "'Value'");
  2259. InstructionDesc[OpSetUserEventStatus].operands.push(OperandId, "'Event'");
  2260. InstructionDesc[OpSetUserEventStatus].operands.push(OperandId, "'Status'");
  2261. InstructionDesc[OpIsValidEvent].operands.push(OperandId, "'Event'");
  2262. InstructionDesc[OpRetainEvent].operands.push(OperandId, "'Event'");
  2263. InstructionDesc[OpReleaseEvent].operands.push(OperandId, "'Event'");
  2264. InstructionDesc[OpGetKernelWorkGroupSize].operands.push(OperandId, "'Invoke'");
  2265. InstructionDesc[OpGetKernelWorkGroupSize].operands.push(OperandId, "'Param'");
  2266. InstructionDesc[OpGetKernelWorkGroupSize].operands.push(OperandId, "'Param Size'");
  2267. InstructionDesc[OpGetKernelWorkGroupSize].operands.push(OperandId, "'Param Align'");
  2268. InstructionDesc[OpGetKernelPreferredWorkGroupSizeMultiple].operands.push(OperandId, "'Invoke'");
  2269. InstructionDesc[OpGetKernelPreferredWorkGroupSizeMultiple].operands.push(OperandId, "'Param'");
  2270. InstructionDesc[OpGetKernelPreferredWorkGroupSizeMultiple].operands.push(OperandId, "'Param Size'");
  2271. InstructionDesc[OpGetKernelPreferredWorkGroupSizeMultiple].operands.push(OperandId, "'Param Align'");
  2272. InstructionDesc[OpGetKernelNDrangeSubGroupCount].operands.push(OperandId, "'ND Range'");
  2273. InstructionDesc[OpGetKernelNDrangeSubGroupCount].operands.push(OperandId, "'Invoke'");
  2274. InstructionDesc[OpGetKernelNDrangeSubGroupCount].operands.push(OperandId, "'Param'");
  2275. InstructionDesc[OpGetKernelNDrangeSubGroupCount].operands.push(OperandId, "'Param Size'");
  2276. InstructionDesc[OpGetKernelNDrangeSubGroupCount].operands.push(OperandId, "'Param Align'");
  2277. InstructionDesc[OpGetKernelNDrangeMaxSubGroupSize].operands.push(OperandId, "'ND Range'");
  2278. InstructionDesc[OpGetKernelNDrangeMaxSubGroupSize].operands.push(OperandId, "'Invoke'");
  2279. InstructionDesc[OpGetKernelNDrangeMaxSubGroupSize].operands.push(OperandId, "'Param'");
  2280. InstructionDesc[OpGetKernelNDrangeMaxSubGroupSize].operands.push(OperandId, "'Param Size'");
  2281. InstructionDesc[OpGetKernelNDrangeMaxSubGroupSize].operands.push(OperandId, "'Param Align'");
  2282. InstructionDesc[OpEnqueueKernel].operands.push(OperandId, "'Queue'");
  2283. InstructionDesc[OpEnqueueKernel].operands.push(OperandId, "'Flags'");
  2284. InstructionDesc[OpEnqueueKernel].operands.push(OperandId, "'ND Range'");
  2285. InstructionDesc[OpEnqueueKernel].operands.push(OperandId, "'Num Events'");
  2286. InstructionDesc[OpEnqueueKernel].operands.push(OperandId, "'Wait Events'");
  2287. InstructionDesc[OpEnqueueKernel].operands.push(OperandId, "'Ret Event'");
  2288. InstructionDesc[OpEnqueueKernel].operands.push(OperandId, "'Invoke'");
  2289. InstructionDesc[OpEnqueueKernel].operands.push(OperandId, "'Param'");
  2290. InstructionDesc[OpEnqueueKernel].operands.push(OperandId, "'Param Size'");
  2291. InstructionDesc[OpEnqueueKernel].operands.push(OperandId, "'Param Align'");
  2292. InstructionDesc[OpEnqueueKernel].operands.push(OperandVariableIds, "'Local Size'");
  2293. InstructionDesc[OpEnqueueMarker].operands.push(OperandId, "'Queue'");
  2294. InstructionDesc[OpEnqueueMarker].operands.push(OperandId, "'Num Events'");
  2295. InstructionDesc[OpEnqueueMarker].operands.push(OperandId, "'Wait Events'");
  2296. InstructionDesc[OpEnqueueMarker].operands.push(OperandId, "'Ret Event'");
  2297. InstructionDesc[OpGroupNonUniformElect].operands.push(OperandScope, "'Execution'");
  2298. InstructionDesc[OpGroupNonUniformAll].operands.push(OperandScope, "'Execution'");
  2299. InstructionDesc[OpGroupNonUniformAll].operands.push(OperandId, "X");
  2300. InstructionDesc[OpGroupNonUniformAny].operands.push(OperandScope, "'Execution'");
  2301. InstructionDesc[OpGroupNonUniformAny].operands.push(OperandId, "X");
  2302. InstructionDesc[OpGroupNonUniformAllEqual].operands.push(OperandScope, "'Execution'");
  2303. InstructionDesc[OpGroupNonUniformAllEqual].operands.push(OperandId, "X");
  2304. InstructionDesc[OpGroupNonUniformBroadcast].operands.push(OperandScope, "'Execution'");
  2305. InstructionDesc[OpGroupNonUniformBroadcast].operands.push(OperandId, "X");
  2306. InstructionDesc[OpGroupNonUniformBroadcast].operands.push(OperandId, "ID");
  2307. InstructionDesc[OpGroupNonUniformBroadcastFirst].operands.push(OperandScope, "'Execution'");
  2308. InstructionDesc[OpGroupNonUniformBroadcastFirst].operands.push(OperandId, "X");
  2309. InstructionDesc[OpGroupNonUniformBallot].operands.push(OperandScope, "'Execution'");
  2310. InstructionDesc[OpGroupNonUniformBallot].operands.push(OperandId, "X");
  2311. InstructionDesc[OpGroupNonUniformInverseBallot].operands.push(OperandScope, "'Execution'");
  2312. InstructionDesc[OpGroupNonUniformInverseBallot].operands.push(OperandId, "X");
  2313. InstructionDesc[OpGroupNonUniformBallotBitExtract].operands.push(OperandScope, "'Execution'");
  2314. InstructionDesc[OpGroupNonUniformBallotBitExtract].operands.push(OperandId, "X");
  2315. InstructionDesc[OpGroupNonUniformBallotBitExtract].operands.push(OperandId, "Bit");
  2316. InstructionDesc[OpGroupNonUniformBallotBitCount].operands.push(OperandScope, "'Execution'");
  2317. InstructionDesc[OpGroupNonUniformBallotBitCount].operands.push(OperandGroupOperation, "'Operation'");
  2318. InstructionDesc[OpGroupNonUniformBallotBitCount].operands.push(OperandId, "X");
  2319. InstructionDesc[OpGroupNonUniformBallotFindLSB].operands.push(OperandScope, "'Execution'");
  2320. InstructionDesc[OpGroupNonUniformBallotFindLSB].operands.push(OperandId, "X");
  2321. InstructionDesc[OpGroupNonUniformBallotFindMSB].operands.push(OperandScope, "'Execution'");
  2322. InstructionDesc[OpGroupNonUniformBallotFindMSB].operands.push(OperandId, "X");
  2323. InstructionDesc[OpGroupNonUniformShuffle].operands.push(OperandScope, "'Execution'");
  2324. InstructionDesc[OpGroupNonUniformShuffle].operands.push(OperandId, "X");
  2325. InstructionDesc[OpGroupNonUniformShuffle].operands.push(OperandId, "'Id'");
  2326. InstructionDesc[OpGroupNonUniformShuffleXor].operands.push(OperandScope, "'Execution'");
  2327. InstructionDesc[OpGroupNonUniformShuffleXor].operands.push(OperandId, "X");
  2328. InstructionDesc[OpGroupNonUniformShuffleXor].operands.push(OperandId, "Mask");
  2329. InstructionDesc[OpGroupNonUniformShuffleUp].operands.push(OperandScope, "'Execution'");
  2330. InstructionDesc[OpGroupNonUniformShuffleUp].operands.push(OperandId, "X");
  2331. InstructionDesc[OpGroupNonUniformShuffleUp].operands.push(OperandId, "Offset");
  2332. InstructionDesc[OpGroupNonUniformShuffleDown].operands.push(OperandScope, "'Execution'");
  2333. InstructionDesc[OpGroupNonUniformShuffleDown].operands.push(OperandId, "X");
  2334. InstructionDesc[OpGroupNonUniformShuffleDown].operands.push(OperandId, "Offset");
  2335. InstructionDesc[OpGroupNonUniformIAdd].operands.push(OperandScope, "'Execution'");
  2336. InstructionDesc[OpGroupNonUniformIAdd].operands.push(OperandGroupOperation, "'Operation'");
  2337. InstructionDesc[OpGroupNonUniformIAdd].operands.push(OperandId, "X");
  2338. InstructionDesc[OpGroupNonUniformIAdd].operands.push(OperandId, "'ClusterSize'", true);
  2339. InstructionDesc[OpGroupNonUniformFAdd].operands.push(OperandScope, "'Execution'");
  2340. InstructionDesc[OpGroupNonUniformFAdd].operands.push(OperandGroupOperation, "'Operation'");
  2341. InstructionDesc[OpGroupNonUniformFAdd].operands.push(OperandId, "X");
  2342. InstructionDesc[OpGroupNonUniformFAdd].operands.push(OperandId, "'ClusterSize'", true);
  2343. InstructionDesc[OpGroupNonUniformIMul].operands.push(OperandScope, "'Execution'");
  2344. InstructionDesc[OpGroupNonUniformIMul].operands.push(OperandGroupOperation, "'Operation'");
  2345. InstructionDesc[OpGroupNonUniformIMul].operands.push(OperandId, "X");
  2346. InstructionDesc[OpGroupNonUniformIMul].operands.push(OperandId, "'ClusterSize'", true);
  2347. InstructionDesc[OpGroupNonUniformFMul].operands.push(OperandScope, "'Execution'");
  2348. InstructionDesc[OpGroupNonUniformFMul].operands.push(OperandGroupOperation, "'Operation'");
  2349. InstructionDesc[OpGroupNonUniformFMul].operands.push(OperandId, "X");
  2350. InstructionDesc[OpGroupNonUniformFMul].operands.push(OperandId, "'ClusterSize'", true);
  2351. InstructionDesc[OpGroupNonUniformSMin].operands.push(OperandScope, "'Execution'");
  2352. InstructionDesc[OpGroupNonUniformSMin].operands.push(OperandGroupOperation, "'Operation'");
  2353. InstructionDesc[OpGroupNonUniformSMin].operands.push(OperandId, "X");
  2354. InstructionDesc[OpGroupNonUniformSMin].operands.push(OperandId, "'ClusterSize'", true);
  2355. InstructionDesc[OpGroupNonUniformUMin].operands.push(OperandScope, "'Execution'");
  2356. InstructionDesc[OpGroupNonUniformUMin].operands.push(OperandGroupOperation, "'Operation'");
  2357. InstructionDesc[OpGroupNonUniformUMin].operands.push(OperandId, "X");
  2358. InstructionDesc[OpGroupNonUniformUMin].operands.push(OperandId, "'ClusterSize'", true);
  2359. InstructionDesc[OpGroupNonUniformFMin].operands.push(OperandScope, "'Execution'");
  2360. InstructionDesc[OpGroupNonUniformFMin].operands.push(OperandGroupOperation, "'Operation'");
  2361. InstructionDesc[OpGroupNonUniformFMin].operands.push(OperandId, "X");
  2362. InstructionDesc[OpGroupNonUniformFMin].operands.push(OperandId, "'ClusterSize'", true);
  2363. InstructionDesc[OpGroupNonUniformSMax].operands.push(OperandScope, "'Execution'");
  2364. InstructionDesc[OpGroupNonUniformSMax].operands.push(OperandGroupOperation, "'Operation'");
  2365. InstructionDesc[OpGroupNonUniformSMax].operands.push(OperandId, "X");
  2366. InstructionDesc[OpGroupNonUniformSMax].operands.push(OperandId, "'ClusterSize'", true);
  2367. InstructionDesc[OpGroupNonUniformUMax].operands.push(OperandScope, "'Execution'");
  2368. InstructionDesc[OpGroupNonUniformUMax].operands.push(OperandGroupOperation, "'Operation'");
  2369. InstructionDesc[OpGroupNonUniformUMax].operands.push(OperandId, "X");
  2370. InstructionDesc[OpGroupNonUniformUMax].operands.push(OperandId, "'ClusterSize'", true);
  2371. InstructionDesc[OpGroupNonUniformFMax].operands.push(OperandScope, "'Execution'");
  2372. InstructionDesc[OpGroupNonUniformFMax].operands.push(OperandGroupOperation, "'Operation'");
  2373. InstructionDesc[OpGroupNonUniformFMax].operands.push(OperandId, "X");
  2374. InstructionDesc[OpGroupNonUniformFMax].operands.push(OperandId, "'ClusterSize'", true);
  2375. InstructionDesc[OpGroupNonUniformBitwiseAnd].operands.push(OperandScope, "'Execution'");
  2376. InstructionDesc[OpGroupNonUniformBitwiseAnd].operands.push(OperandGroupOperation, "'Operation'");
  2377. InstructionDesc[OpGroupNonUniformBitwiseAnd].operands.push(OperandId, "X");
  2378. InstructionDesc[OpGroupNonUniformBitwiseAnd].operands.push(OperandId, "'ClusterSize'", true);
  2379. InstructionDesc[OpGroupNonUniformBitwiseOr].operands.push(OperandScope, "'Execution'");
  2380. InstructionDesc[OpGroupNonUniformBitwiseOr].operands.push(OperandGroupOperation, "'Operation'");
  2381. InstructionDesc[OpGroupNonUniformBitwiseOr].operands.push(OperandId, "X");
  2382. InstructionDesc[OpGroupNonUniformBitwiseOr].operands.push(OperandId, "'ClusterSize'", true);
  2383. InstructionDesc[OpGroupNonUniformBitwiseXor].operands.push(OperandScope, "'Execution'");
  2384. InstructionDesc[OpGroupNonUniformBitwiseXor].operands.push(OperandGroupOperation, "'Operation'");
  2385. InstructionDesc[OpGroupNonUniformBitwiseXor].operands.push(OperandId, "X");
  2386. InstructionDesc[OpGroupNonUniformBitwiseXor].operands.push(OperandId, "'ClusterSize'", true);
  2387. InstructionDesc[OpGroupNonUniformLogicalAnd].operands.push(OperandScope, "'Execution'");
  2388. InstructionDesc[OpGroupNonUniformLogicalAnd].operands.push(OperandGroupOperation, "'Operation'");
  2389. InstructionDesc[OpGroupNonUniformLogicalAnd].operands.push(OperandId, "X");
  2390. InstructionDesc[OpGroupNonUniformLogicalAnd].operands.push(OperandId, "'ClusterSize'", true);
  2391. InstructionDesc[OpGroupNonUniformLogicalOr].operands.push(OperandScope, "'Execution'");
  2392. InstructionDesc[OpGroupNonUniformLogicalOr].operands.push(OperandGroupOperation, "'Operation'");
  2393. InstructionDesc[OpGroupNonUniformLogicalOr].operands.push(OperandId, "X");
  2394. InstructionDesc[OpGroupNonUniformLogicalOr].operands.push(OperandId, "'ClusterSize'", true);
  2395. InstructionDesc[OpGroupNonUniformLogicalXor].operands.push(OperandScope, "'Execution'");
  2396. InstructionDesc[OpGroupNonUniformLogicalXor].operands.push(OperandGroupOperation, "'Operation'");
  2397. InstructionDesc[OpGroupNonUniformLogicalXor].operands.push(OperandId, "X");
  2398. InstructionDesc[OpGroupNonUniformLogicalXor].operands.push(OperandId, "'ClusterSize'", true);
  2399. InstructionDesc[OpGroupNonUniformQuadBroadcast].operands.push(OperandScope, "'Execution'");
  2400. InstructionDesc[OpGroupNonUniformQuadBroadcast].operands.push(OperandId, "X");
  2401. InstructionDesc[OpGroupNonUniformQuadBroadcast].operands.push(OperandId, "'Id'");
  2402. InstructionDesc[OpGroupNonUniformQuadSwap].operands.push(OperandScope, "'Execution'");
  2403. InstructionDesc[OpGroupNonUniformQuadSwap].operands.push(OperandId, "X");
  2404. InstructionDesc[OpGroupNonUniformQuadSwap].operands.push(OperandId, "'Direction'");
  2405. InstructionDesc[OpSubgroupBallotKHR].operands.push(OperandId, "'Predicate'");
  2406. InstructionDesc[OpSubgroupFirstInvocationKHR].operands.push(OperandId, "'Value'");
  2407. InstructionDesc[OpSubgroupAnyKHR].operands.push(OperandScope, "'Execution'");
  2408. InstructionDesc[OpSubgroupAnyKHR].operands.push(OperandId, "'Predicate'");
  2409. InstructionDesc[OpSubgroupAllKHR].operands.push(OperandScope, "'Execution'");
  2410. InstructionDesc[OpSubgroupAllKHR].operands.push(OperandId, "'Predicate'");
  2411. InstructionDesc[OpSubgroupAllEqualKHR].operands.push(OperandScope, "'Execution'");
  2412. InstructionDesc[OpSubgroupAllEqualKHR].operands.push(OperandId, "'Predicate'");
  2413. InstructionDesc[OpSubgroupReadInvocationKHR].operands.push(OperandId, "'Value'");
  2414. InstructionDesc[OpSubgroupReadInvocationKHR].operands.push(OperandId, "'Index'");
  2415. InstructionDesc[OpModuleProcessed].operands.push(OperandLiteralString, "'process'");
  2416. InstructionDesc[OpGroupIAddNonUniformAMD].operands.push(OperandScope, "'Execution'");
  2417. InstructionDesc[OpGroupIAddNonUniformAMD].operands.push(OperandGroupOperation, "'Operation'");
  2418. InstructionDesc[OpGroupIAddNonUniformAMD].operands.push(OperandId, "'X'");
  2419. InstructionDesc[OpGroupFAddNonUniformAMD].operands.push(OperandScope, "'Execution'");
  2420. InstructionDesc[OpGroupFAddNonUniformAMD].operands.push(OperandGroupOperation, "'Operation'");
  2421. InstructionDesc[OpGroupFAddNonUniformAMD].operands.push(OperandId, "'X'");
  2422. InstructionDesc[OpGroupUMinNonUniformAMD].operands.push(OperandScope, "'Execution'");
  2423. InstructionDesc[OpGroupUMinNonUniformAMD].operands.push(OperandGroupOperation, "'Operation'");
  2424. InstructionDesc[OpGroupUMinNonUniformAMD].operands.push(OperandId, "'X'");
  2425. InstructionDesc[OpGroupSMinNonUniformAMD].operands.push(OperandScope, "'Execution'");
  2426. InstructionDesc[OpGroupSMinNonUniformAMD].operands.push(OperandGroupOperation, "'Operation'");
  2427. InstructionDesc[OpGroupSMinNonUniformAMD].operands.push(OperandId, "X");
  2428. InstructionDesc[OpGroupFMinNonUniformAMD].operands.push(OperandScope, "'Execution'");
  2429. InstructionDesc[OpGroupFMinNonUniformAMD].operands.push(OperandGroupOperation, "'Operation'");
  2430. InstructionDesc[OpGroupFMinNonUniformAMD].operands.push(OperandId, "X");
  2431. InstructionDesc[OpGroupUMaxNonUniformAMD].operands.push(OperandScope, "'Execution'");
  2432. InstructionDesc[OpGroupUMaxNonUniformAMD].operands.push(OperandGroupOperation, "'Operation'");
  2433. InstructionDesc[OpGroupUMaxNonUniformAMD].operands.push(OperandId, "X");
  2434. InstructionDesc[OpGroupSMaxNonUniformAMD].operands.push(OperandScope, "'Execution'");
  2435. InstructionDesc[OpGroupSMaxNonUniformAMD].operands.push(OperandGroupOperation, "'Operation'");
  2436. InstructionDesc[OpGroupSMaxNonUniformAMD].operands.push(OperandId, "X");
  2437. InstructionDesc[OpGroupFMaxNonUniformAMD].operands.push(OperandScope, "'Execution'");
  2438. InstructionDesc[OpGroupFMaxNonUniformAMD].operands.push(OperandGroupOperation, "'Operation'");
  2439. InstructionDesc[OpGroupFMaxNonUniformAMD].operands.push(OperandId, "X");
  2440. InstructionDesc[OpFragmentMaskFetchAMD].operands.push(OperandId, "'Image'");
  2441. InstructionDesc[OpFragmentMaskFetchAMD].operands.push(OperandId, "'Coordinate'");
  2442. InstructionDesc[OpFragmentFetchAMD].operands.push(OperandId, "'Image'");
  2443. InstructionDesc[OpFragmentFetchAMD].operands.push(OperandId, "'Coordinate'");
  2444. InstructionDesc[OpFragmentFetchAMD].operands.push(OperandId, "'Fragment Index'");
  2445. InstructionDesc[OpGroupNonUniformPartitionNV].operands.push(OperandId, "X");
  2446. InstructionDesc[OpTypeAccelerationStructureKHR].setResultAndType(true, false);
  2447. InstructionDesc[OpTraceNV].operands.push(OperandId, "'Acceleration Structure'");
  2448. InstructionDesc[OpTraceNV].operands.push(OperandId, "'Ray Flags'");
  2449. InstructionDesc[OpTraceNV].operands.push(OperandId, "'Cull Mask'");
  2450. InstructionDesc[OpTraceNV].operands.push(OperandId, "'SBT Record Offset'");
  2451. InstructionDesc[OpTraceNV].operands.push(OperandId, "'SBT Record Stride'");
  2452. InstructionDesc[OpTraceNV].operands.push(OperandId, "'Miss Index'");
  2453. InstructionDesc[OpTraceNV].operands.push(OperandId, "'Ray Origin'");
  2454. InstructionDesc[OpTraceNV].operands.push(OperandId, "'TMin'");
  2455. InstructionDesc[OpTraceNV].operands.push(OperandId, "'Ray Direction'");
  2456. InstructionDesc[OpTraceNV].operands.push(OperandId, "'TMax'");
  2457. InstructionDesc[OpTraceNV].operands.push(OperandId, "'Payload'");
  2458. InstructionDesc[OpTraceNV].setResultAndType(false, false);
  2459. InstructionDesc[OpTraceRayMotionNV].operands.push(OperandId, "'Acceleration Structure'");
  2460. InstructionDesc[OpTraceRayMotionNV].operands.push(OperandId, "'Ray Flags'");
  2461. InstructionDesc[OpTraceRayMotionNV].operands.push(OperandId, "'Cull Mask'");
  2462. InstructionDesc[OpTraceRayMotionNV].operands.push(OperandId, "'SBT Record Offset'");
  2463. InstructionDesc[OpTraceRayMotionNV].operands.push(OperandId, "'SBT Record Stride'");
  2464. InstructionDesc[OpTraceRayMotionNV].operands.push(OperandId, "'Miss Index'");
  2465. InstructionDesc[OpTraceRayMotionNV].operands.push(OperandId, "'Ray Origin'");
  2466. InstructionDesc[OpTraceRayMotionNV].operands.push(OperandId, "'TMin'");
  2467. InstructionDesc[OpTraceRayMotionNV].operands.push(OperandId, "'Ray Direction'");
  2468. InstructionDesc[OpTraceRayMotionNV].operands.push(OperandId, "'TMax'");
  2469. InstructionDesc[OpTraceRayMotionNV].operands.push(OperandId, "'Time'");
  2470. InstructionDesc[OpTraceRayMotionNV].operands.push(OperandId, "'Payload'");
  2471. InstructionDesc[OpTraceRayMotionNV].setResultAndType(false, false);
  2472. InstructionDesc[OpTraceRayKHR].operands.push(OperandId, "'Acceleration Structure'");
  2473. InstructionDesc[OpTraceRayKHR].operands.push(OperandId, "'Ray Flags'");
  2474. InstructionDesc[OpTraceRayKHR].operands.push(OperandId, "'Cull Mask'");
  2475. InstructionDesc[OpTraceRayKHR].operands.push(OperandId, "'SBT Record Offset'");
  2476. InstructionDesc[OpTraceRayKHR].operands.push(OperandId, "'SBT Record Stride'");
  2477. InstructionDesc[OpTraceRayKHR].operands.push(OperandId, "'Miss Index'");
  2478. InstructionDesc[OpTraceRayKHR].operands.push(OperandId, "'Ray Origin'");
  2479. InstructionDesc[OpTraceRayKHR].operands.push(OperandId, "'TMin'");
  2480. InstructionDesc[OpTraceRayKHR].operands.push(OperandId, "'Ray Direction'");
  2481. InstructionDesc[OpTraceRayKHR].operands.push(OperandId, "'TMax'");
  2482. InstructionDesc[OpTraceRayKHR].operands.push(OperandId, "'Payload'");
  2483. InstructionDesc[OpTraceRayKHR].setResultAndType(false, false);
  2484. InstructionDesc[OpReportIntersectionKHR].operands.push(OperandId, "'Hit Parameter'");
  2485. InstructionDesc[OpReportIntersectionKHR].operands.push(OperandId, "'Hit Kind'");
  2486. InstructionDesc[OpIgnoreIntersectionNV].setResultAndType(false, false);
  2487. InstructionDesc[OpIgnoreIntersectionKHR].setResultAndType(false, false);
  2488. InstructionDesc[OpTerminateRayNV].setResultAndType(false, false);
  2489. InstructionDesc[OpTerminateRayKHR].setResultAndType(false, false);
  2490. InstructionDesc[OpExecuteCallableNV].operands.push(OperandId, "SBT Record Index");
  2491. InstructionDesc[OpExecuteCallableNV].operands.push(OperandId, "CallableData ID");
  2492. InstructionDesc[OpExecuteCallableNV].setResultAndType(false, false);
  2493. InstructionDesc[OpExecuteCallableKHR].operands.push(OperandId, "SBT Record Index");
  2494. InstructionDesc[OpExecuteCallableKHR].operands.push(OperandId, "CallableData");
  2495. InstructionDesc[OpExecuteCallableKHR].setResultAndType(false, false);
  2496. InstructionDesc[OpConvertUToAccelerationStructureKHR].operands.push(OperandId, "Value");
  2497. InstructionDesc[OpConvertUToAccelerationStructureKHR].setResultAndType(true, true);
  2498. // Ray Query
  2499. InstructionDesc[OpTypeAccelerationStructureKHR].setResultAndType(true, false);
  2500. InstructionDesc[OpTypeRayQueryKHR].setResultAndType(true, false);
  2501. InstructionDesc[OpRayQueryInitializeKHR].operands.push(OperandId, "'RayQuery'");
  2502. InstructionDesc[OpRayQueryInitializeKHR].operands.push(OperandId, "'AccelerationS'");
  2503. InstructionDesc[OpRayQueryInitializeKHR].operands.push(OperandId, "'RayFlags'");
  2504. InstructionDesc[OpRayQueryInitializeKHR].operands.push(OperandId, "'CullMask'");
  2505. InstructionDesc[OpRayQueryInitializeKHR].operands.push(OperandId, "'Origin'");
  2506. InstructionDesc[OpRayQueryInitializeKHR].operands.push(OperandId, "'Tmin'");
  2507. InstructionDesc[OpRayQueryInitializeKHR].operands.push(OperandId, "'Direction'");
  2508. InstructionDesc[OpRayQueryInitializeKHR].operands.push(OperandId, "'Tmax'");
  2509. InstructionDesc[OpRayQueryInitializeKHR].setResultAndType(false, false);
  2510. InstructionDesc[OpRayQueryTerminateKHR].operands.push(OperandId, "'RayQuery'");
  2511. InstructionDesc[OpRayQueryTerminateKHR].setResultAndType(false, false);
  2512. InstructionDesc[OpRayQueryGenerateIntersectionKHR].operands.push(OperandId, "'RayQuery'");
  2513. InstructionDesc[OpRayQueryGenerateIntersectionKHR].operands.push(OperandId, "'THit'");
  2514. InstructionDesc[OpRayQueryGenerateIntersectionKHR].setResultAndType(false, false);
  2515. InstructionDesc[OpRayQueryConfirmIntersectionKHR].operands.push(OperandId, "'RayQuery'");
  2516. InstructionDesc[OpRayQueryConfirmIntersectionKHR].setResultAndType(false, false);
  2517. InstructionDesc[OpRayQueryProceedKHR].operands.push(OperandId, "'RayQuery'");
  2518. InstructionDesc[OpRayQueryProceedKHR].setResultAndType(true, true);
  2519. InstructionDesc[OpRayQueryGetIntersectionTypeKHR].operands.push(OperandId, "'RayQuery'");
  2520. InstructionDesc[OpRayQueryGetIntersectionTypeKHR].operands.push(OperandId, "'Committed'");
  2521. InstructionDesc[OpRayQueryGetIntersectionTypeKHR].setResultAndType(true, true);
  2522. InstructionDesc[OpRayQueryGetRayTMinKHR].operands.push(OperandId, "'RayQuery'");
  2523. InstructionDesc[OpRayQueryGetRayTMinKHR].setResultAndType(true, true);
  2524. InstructionDesc[OpRayQueryGetRayFlagsKHR].operands.push(OperandId, "'RayQuery'");
  2525. InstructionDesc[OpRayQueryGetRayFlagsKHR].setResultAndType(true, true);
  2526. InstructionDesc[OpRayQueryGetIntersectionTKHR].operands.push(OperandId, "'RayQuery'");
  2527. InstructionDesc[OpRayQueryGetIntersectionTKHR].operands.push(OperandId, "'Committed'");
  2528. InstructionDesc[OpRayQueryGetIntersectionTKHR].setResultAndType(true, true);
  2529. InstructionDesc[OpRayQueryGetIntersectionInstanceCustomIndexKHR].operands.push(OperandId, "'RayQuery'");
  2530. InstructionDesc[OpRayQueryGetIntersectionInstanceCustomIndexKHR].operands.push(OperandId, "'Committed'");
  2531. InstructionDesc[OpRayQueryGetIntersectionInstanceCustomIndexKHR].setResultAndType(true, true);
  2532. InstructionDesc[OpRayQueryGetIntersectionInstanceIdKHR].operands.push(OperandId, "'RayQuery'");
  2533. InstructionDesc[OpRayQueryGetIntersectionInstanceIdKHR].operands.push(OperandId, "'Committed'");
  2534. InstructionDesc[OpRayQueryGetIntersectionInstanceIdKHR].setResultAndType(true, true);
  2535. InstructionDesc[OpRayQueryGetIntersectionInstanceShaderBindingTableRecordOffsetKHR].operands.push(OperandId, "'RayQuery'");
  2536. InstructionDesc[OpRayQueryGetIntersectionInstanceShaderBindingTableRecordOffsetKHR].operands.push(OperandId, "'Committed'");
  2537. InstructionDesc[OpRayQueryGetIntersectionInstanceShaderBindingTableRecordOffsetKHR].setResultAndType(true, true);
  2538. InstructionDesc[OpRayQueryGetIntersectionGeometryIndexKHR].operands.push(OperandId, "'RayQuery'");
  2539. InstructionDesc[OpRayQueryGetIntersectionGeometryIndexKHR].operands.push(OperandId, "'Committed'");
  2540. InstructionDesc[OpRayQueryGetIntersectionGeometryIndexKHR].setResultAndType(true, true);
  2541. InstructionDesc[OpRayQueryGetIntersectionPrimitiveIndexKHR].operands.push(OperandId, "'RayQuery'");
  2542. InstructionDesc[OpRayQueryGetIntersectionPrimitiveIndexKHR].operands.push(OperandId, "'Committed'");
  2543. InstructionDesc[OpRayQueryGetIntersectionPrimitiveIndexKHR].setResultAndType(true, true);
  2544. InstructionDesc[OpRayQueryGetIntersectionBarycentricsKHR].operands.push(OperandId, "'RayQuery'");
  2545. InstructionDesc[OpRayQueryGetIntersectionBarycentricsKHR].operands.push(OperandId, "'Committed'");
  2546. InstructionDesc[OpRayQueryGetIntersectionBarycentricsKHR].setResultAndType(true, true);
  2547. InstructionDesc[OpRayQueryGetIntersectionFrontFaceKHR].operands.push(OperandId, "'RayQuery'");
  2548. InstructionDesc[OpRayQueryGetIntersectionFrontFaceKHR].operands.push(OperandId, "'Committed'");
  2549. InstructionDesc[OpRayQueryGetIntersectionFrontFaceKHR].setResultAndType(true, true);
  2550. InstructionDesc[OpRayQueryGetIntersectionCandidateAABBOpaqueKHR].operands.push(OperandId, "'RayQuery'");
  2551. InstructionDesc[OpRayQueryGetIntersectionCandidateAABBOpaqueKHR].setResultAndType(true, true);
  2552. InstructionDesc[OpRayQueryGetIntersectionObjectRayDirectionKHR].operands.push(OperandId, "'RayQuery'");
  2553. InstructionDesc[OpRayQueryGetIntersectionObjectRayDirectionKHR].operands.push(OperandId, "'Committed'");
  2554. InstructionDesc[OpRayQueryGetIntersectionObjectRayDirectionKHR].setResultAndType(true, true);
  2555. InstructionDesc[OpRayQueryGetIntersectionObjectRayOriginKHR].operands.push(OperandId, "'RayQuery'");
  2556. InstructionDesc[OpRayQueryGetIntersectionObjectRayOriginKHR].operands.push(OperandId, "'Committed'");
  2557. InstructionDesc[OpRayQueryGetIntersectionObjectRayOriginKHR].setResultAndType(true, true);
  2558. InstructionDesc[OpRayQueryGetWorldRayDirectionKHR].operands.push(OperandId, "'RayQuery'");
  2559. InstructionDesc[OpRayQueryGetWorldRayDirectionKHR].setResultAndType(true, true);
  2560. InstructionDesc[OpRayQueryGetWorldRayOriginKHR].operands.push(OperandId, "'RayQuery'");
  2561. InstructionDesc[OpRayQueryGetWorldRayOriginKHR].setResultAndType(true, true);
  2562. InstructionDesc[OpRayQueryGetIntersectionObjectToWorldKHR].operands.push(OperandId, "'RayQuery'");
  2563. InstructionDesc[OpRayQueryGetIntersectionObjectToWorldKHR].operands.push(OperandId, "'Committed'");
  2564. InstructionDesc[OpRayQueryGetIntersectionObjectToWorldKHR].setResultAndType(true, true);
  2565. InstructionDesc[OpRayQueryGetIntersectionWorldToObjectKHR].operands.push(OperandId, "'RayQuery'");
  2566. InstructionDesc[OpRayQueryGetIntersectionWorldToObjectKHR].operands.push(OperandId, "'Committed'");
  2567. InstructionDesc[OpRayQueryGetIntersectionWorldToObjectKHR].setResultAndType(true, true);
  2568. InstructionDesc[OpRayQueryGetIntersectionTriangleVertexPositionsKHR].operands.push(OperandId, "'RayQuery'");
  2569. InstructionDesc[OpRayQueryGetIntersectionTriangleVertexPositionsKHR].operands.push(OperandId, "'Committed'");
  2570. InstructionDesc[OpRayQueryGetIntersectionTriangleVertexPositionsKHR].setResultAndType(true, true);
  2571. InstructionDesc[OpImageSampleFootprintNV].operands.push(OperandId, "'Sampled Image'");
  2572. InstructionDesc[OpImageSampleFootprintNV].operands.push(OperandId, "'Coordinate'");
  2573. InstructionDesc[OpImageSampleFootprintNV].operands.push(OperandId, "'Granularity'");
  2574. InstructionDesc[OpImageSampleFootprintNV].operands.push(OperandId, "'Coarse'");
  2575. InstructionDesc[OpImageSampleFootprintNV].operands.push(OperandImageOperands, "", true);
  2576. InstructionDesc[OpImageSampleFootprintNV].operands.push(OperandVariableIds, "", true);
  2577. InstructionDesc[OpWritePackedPrimitiveIndices4x8NV].operands.push(OperandId, "'Index Offset'");
  2578. InstructionDesc[OpWritePackedPrimitiveIndices4x8NV].operands.push(OperandId, "'Packed Indices'");
  2579. InstructionDesc[OpEmitMeshTasksEXT].operands.push(OperandId, "'groupCountX'");
  2580. InstructionDesc[OpEmitMeshTasksEXT].operands.push(OperandId, "'groupCountY'");
  2581. InstructionDesc[OpEmitMeshTasksEXT].operands.push(OperandId, "'groupCountZ'");
  2582. InstructionDesc[OpEmitMeshTasksEXT].operands.push(OperandId, "'Payload'");
  2583. InstructionDesc[OpEmitMeshTasksEXT].setResultAndType(false, false);
  2584. InstructionDesc[OpSetMeshOutputsEXT].operands.push(OperandId, "'vertexCount'");
  2585. InstructionDesc[OpSetMeshOutputsEXT].operands.push(OperandId, "'primitiveCount'");
  2586. InstructionDesc[OpSetMeshOutputsEXT].setResultAndType(false, false);
  2587. InstructionDesc[OpTypeCooperativeMatrixNV].operands.push(OperandId, "'Component Type'");
  2588. InstructionDesc[OpTypeCooperativeMatrixNV].operands.push(OperandId, "'Scope'");
  2589. InstructionDesc[OpTypeCooperativeMatrixNV].operands.push(OperandId, "'Rows'");
  2590. InstructionDesc[OpTypeCooperativeMatrixNV].operands.push(OperandId, "'Columns'");
  2591. InstructionDesc[OpCooperativeMatrixLoadNV].operands.push(OperandId, "'Pointer'");
  2592. InstructionDesc[OpCooperativeMatrixLoadNV].operands.push(OperandId, "'Stride'");
  2593. InstructionDesc[OpCooperativeMatrixLoadNV].operands.push(OperandId, "'Column Major'");
  2594. InstructionDesc[OpCooperativeMatrixLoadNV].operands.push(OperandMemoryAccess, "'Memory Access'");
  2595. InstructionDesc[OpCooperativeMatrixLoadNV].operands.push(OperandLiteralNumber, "", true);
  2596. InstructionDesc[OpCooperativeMatrixLoadNV].operands.push(OperandId, "", true);
  2597. InstructionDesc[OpCooperativeMatrixStoreNV].operands.push(OperandId, "'Pointer'");
  2598. InstructionDesc[OpCooperativeMatrixStoreNV].operands.push(OperandId, "'Object'");
  2599. InstructionDesc[OpCooperativeMatrixStoreNV].operands.push(OperandId, "'Stride'");
  2600. InstructionDesc[OpCooperativeMatrixStoreNV].operands.push(OperandId, "'Column Major'");
  2601. InstructionDesc[OpCooperativeMatrixStoreNV].operands.push(OperandMemoryAccess, "'Memory Access'");
  2602. InstructionDesc[OpCooperativeMatrixStoreNV].operands.push(OperandLiteralNumber, "", true);
  2603. InstructionDesc[OpCooperativeMatrixStoreNV].operands.push(OperandId, "", true);
  2604. InstructionDesc[OpCooperativeMatrixMulAddNV].operands.push(OperandId, "'A'");
  2605. InstructionDesc[OpCooperativeMatrixMulAddNV].operands.push(OperandId, "'B'");
  2606. InstructionDesc[OpCooperativeMatrixMulAddNV].operands.push(OperandId, "'C'");
  2607. InstructionDesc[OpCooperativeMatrixLengthNV].operands.push(OperandId, "'Type'");
  2608. InstructionDesc[OpTypeCooperativeMatrixKHR].operands.push(OperandId, "'Component Type'");
  2609. InstructionDesc[OpTypeCooperativeMatrixKHR].operands.push(OperandId, "'Scope'");
  2610. InstructionDesc[OpTypeCooperativeMatrixKHR].operands.push(OperandId, "'Rows'");
  2611. InstructionDesc[OpTypeCooperativeMatrixKHR].operands.push(OperandId, "'Columns'");
  2612. InstructionDesc[OpTypeCooperativeMatrixKHR].operands.push(OperandId, "'Use'");
  2613. InstructionDesc[OpCooperativeMatrixLoadKHR].operands.push(OperandId, "'Pointer'");
  2614. InstructionDesc[OpCooperativeMatrixLoadKHR].operands.push(OperandId, "'Memory Layout'");
  2615. InstructionDesc[OpCooperativeMatrixLoadKHR].operands.push(OperandId, "'Stride'");
  2616. InstructionDesc[OpCooperativeMatrixLoadKHR].operands.push(OperandMemoryAccess, "'Memory Access'");
  2617. InstructionDesc[OpCooperativeMatrixLoadKHR].operands.push(OperandLiteralNumber, "", true);
  2618. InstructionDesc[OpCooperativeMatrixLoadKHR].operands.push(OperandId, "", true);
  2619. InstructionDesc[OpCooperativeMatrixStoreKHR].operands.push(OperandId, "'Pointer'");
  2620. InstructionDesc[OpCooperativeMatrixStoreKHR].operands.push(OperandId, "'Object'");
  2621. InstructionDesc[OpCooperativeMatrixStoreKHR].operands.push(OperandId, "'Memory Layout'");
  2622. InstructionDesc[OpCooperativeMatrixStoreKHR].operands.push(OperandId, "'Stride'");
  2623. InstructionDesc[OpCooperativeMatrixStoreKHR].operands.push(OperandMemoryAccess, "'Memory Access'");
  2624. InstructionDesc[OpCooperativeMatrixStoreKHR].operands.push(OperandLiteralNumber, "", true);
  2625. InstructionDesc[OpCooperativeMatrixStoreKHR].operands.push(OperandId, "", true);
  2626. InstructionDesc[OpCooperativeMatrixMulAddKHR].operands.push(OperandId, "'A'");
  2627. InstructionDesc[OpCooperativeMatrixMulAddKHR].operands.push(OperandId, "'B'");
  2628. InstructionDesc[OpCooperativeMatrixMulAddKHR].operands.push(OperandId, "'C'");
  2629. InstructionDesc[OpCooperativeMatrixMulAddKHR].operands.push(OperandCooperativeMatrixOperands, "'Cooperative Matrix Operands'", true);
  2630. InstructionDesc[OpCooperativeMatrixLengthKHR].operands.push(OperandId, "'Type'");
  2631. InstructionDesc[OpDemoteToHelperInvocationEXT].setResultAndType(false, false);
  2632. InstructionDesc[OpReadClockKHR].operands.push(OperandScope, "'Scope'");
  2633. InstructionDesc[OpTypeHitObjectNV].setResultAndType(true, false);
  2634. InstructionDesc[OpHitObjectGetShaderRecordBufferHandleNV].operands.push(OperandId, "'HitObject'");
  2635. InstructionDesc[OpHitObjectGetShaderRecordBufferHandleNV].setResultAndType(true, true);
  2636. InstructionDesc[OpReorderThreadWithHintNV].operands.push(OperandId, "'Hint'");
  2637. InstructionDesc[OpReorderThreadWithHintNV].operands.push(OperandId, "'Bits'");
  2638. InstructionDesc[OpReorderThreadWithHintNV].setResultAndType(false, false);
  2639. InstructionDesc[OpReorderThreadWithHitObjectNV].operands.push(OperandId, "'HitObject'");
  2640. InstructionDesc[OpReorderThreadWithHitObjectNV].operands.push(OperandId, "'Hint'");
  2641. InstructionDesc[OpReorderThreadWithHitObjectNV].operands.push(OperandId, "'Bits'");
  2642. InstructionDesc[OpReorderThreadWithHitObjectNV].setResultAndType(false, false);
  2643. InstructionDesc[OpHitObjectGetCurrentTimeNV].operands.push(OperandId, "'HitObject'");
  2644. InstructionDesc[OpHitObjectGetCurrentTimeNV].setResultAndType(true, true);
  2645. InstructionDesc[OpHitObjectGetHitKindNV].operands.push(OperandId, "'HitObject'");
  2646. InstructionDesc[OpHitObjectGetHitKindNV].setResultAndType(true, true);
  2647. InstructionDesc[OpHitObjectGetPrimitiveIndexNV].operands.push(OperandId, "'HitObject'");
  2648. InstructionDesc[OpHitObjectGetPrimitiveIndexNV].setResultAndType(true, true);
  2649. InstructionDesc[OpHitObjectGetGeometryIndexNV].operands.push(OperandId, "'HitObject'");
  2650. InstructionDesc[OpHitObjectGetGeometryIndexNV].setResultAndType(true, true);
  2651. InstructionDesc[OpHitObjectGetInstanceIdNV].operands.push(OperandId, "'HitObject'");
  2652. InstructionDesc[OpHitObjectGetInstanceIdNV].setResultAndType(true, true);
  2653. InstructionDesc[OpHitObjectGetInstanceCustomIndexNV].operands.push(OperandId, "'HitObject'");
  2654. InstructionDesc[OpHitObjectGetInstanceCustomIndexNV].setResultAndType(true, true);
  2655. InstructionDesc[OpHitObjectGetObjectRayDirectionNV].operands.push(OperandId, "'HitObject'");
  2656. InstructionDesc[OpHitObjectGetObjectRayDirectionNV].setResultAndType(true, true);
  2657. InstructionDesc[OpHitObjectGetObjectRayOriginNV].operands.push(OperandId, "'HitObject'");
  2658. InstructionDesc[OpHitObjectGetObjectRayOriginNV].setResultAndType(true, true);
  2659. InstructionDesc[OpHitObjectGetWorldRayDirectionNV].operands.push(OperandId, "'HitObject'");
  2660. InstructionDesc[OpHitObjectGetWorldRayDirectionNV].setResultAndType(true, true);
  2661. InstructionDesc[OpHitObjectGetWorldRayOriginNV].operands.push(OperandId, "'HitObject'");
  2662. InstructionDesc[OpHitObjectGetWorldRayOriginNV].setResultAndType(true, true);
  2663. InstructionDesc[OpHitObjectGetWorldToObjectNV].operands.push(OperandId, "'HitObject'");
  2664. InstructionDesc[OpHitObjectGetWorldToObjectNV].setResultAndType(true, true);
  2665. InstructionDesc[OpHitObjectGetObjectToWorldNV].operands.push(OperandId, "'HitObject'");
  2666. InstructionDesc[OpHitObjectGetObjectToWorldNV].setResultAndType(true, true);
  2667. InstructionDesc[OpHitObjectGetRayTMaxNV].operands.push(OperandId, "'HitObject'");
  2668. InstructionDesc[OpHitObjectGetRayTMaxNV].setResultAndType(true, true);
  2669. InstructionDesc[OpHitObjectGetRayTMinNV].operands.push(OperandId, "'HitObject'");
  2670. InstructionDesc[OpHitObjectGetRayTMinNV].setResultAndType(true, true);
  2671. InstructionDesc[OpHitObjectGetShaderBindingTableRecordIndexNV].operands.push(OperandId, "'HitObject'");
  2672. InstructionDesc[OpHitObjectGetShaderBindingTableRecordIndexNV].setResultAndType(true, true);
  2673. InstructionDesc[OpHitObjectIsEmptyNV].operands.push(OperandId, "'HitObject'");
  2674. InstructionDesc[OpHitObjectIsEmptyNV].setResultAndType(true, true);
  2675. InstructionDesc[OpHitObjectIsHitNV].operands.push(OperandId, "'HitObject'");
  2676. InstructionDesc[OpHitObjectIsHitNV].setResultAndType(true, true);
  2677. InstructionDesc[OpHitObjectIsMissNV].operands.push(OperandId, "'HitObject'");
  2678. InstructionDesc[OpHitObjectIsMissNV].setResultAndType(true, true);
  2679. InstructionDesc[OpHitObjectGetAttributesNV].operands.push(OperandId, "'HitObject'");
  2680. InstructionDesc[OpHitObjectGetAttributesNV].operands.push(OperandId, "'HitObjectAttribute'");
  2681. InstructionDesc[OpHitObjectGetAttributesNV].setResultAndType(false, false);
  2682. InstructionDesc[OpHitObjectExecuteShaderNV].operands.push(OperandId, "'HitObject'");
  2683. InstructionDesc[OpHitObjectExecuteShaderNV].operands.push(OperandId, "'Payload'");
  2684. InstructionDesc[OpHitObjectExecuteShaderNV].setResultAndType(false, false);
  2685. InstructionDesc[OpHitObjectRecordHitNV].operands.push(OperandId, "'HitObject'");
  2686. InstructionDesc[OpHitObjectRecordHitNV].operands.push(OperandId, "'Acceleration Structure'");
  2687. InstructionDesc[OpHitObjectRecordHitNV].operands.push(OperandId, "'InstanceId'");
  2688. InstructionDesc[OpHitObjectRecordHitNV].operands.push(OperandId, "'PrimitiveId'");
  2689. InstructionDesc[OpHitObjectRecordHitNV].operands.push(OperandId, "'GeometryIndex'");
  2690. InstructionDesc[OpHitObjectRecordHitNV].operands.push(OperandId, "'HitKind'");
  2691. InstructionDesc[OpHitObjectRecordHitNV].operands.push(OperandId, "'SBT Record Offset'");
  2692. InstructionDesc[OpHitObjectRecordHitNV].operands.push(OperandId, "'SBT Record Stride'");
  2693. InstructionDesc[OpHitObjectRecordHitNV].operands.push(OperandId, "'Origin'");
  2694. InstructionDesc[OpHitObjectRecordHitNV].operands.push(OperandId, "'TMin'");
  2695. InstructionDesc[OpHitObjectRecordHitNV].operands.push(OperandId, "'Direction'");
  2696. InstructionDesc[OpHitObjectRecordHitNV].operands.push(OperandId, "'TMax'");
  2697. InstructionDesc[OpHitObjectRecordHitNV].operands.push(OperandId, "'HitObject Attribute'");
  2698. InstructionDesc[OpHitObjectRecordHitNV].setResultAndType(false, false);
  2699. InstructionDesc[OpHitObjectRecordHitMotionNV].operands.push(OperandId, "'HitObject'");
  2700. InstructionDesc[OpHitObjectRecordHitMotionNV].operands.push(OperandId, "'Acceleration Structure'");
  2701. InstructionDesc[OpHitObjectRecordHitMotionNV].operands.push(OperandId, "'InstanceId'");
  2702. InstructionDesc[OpHitObjectRecordHitMotionNV].operands.push(OperandId, "'PrimitiveId'");
  2703. InstructionDesc[OpHitObjectRecordHitMotionNV].operands.push(OperandId, "'GeometryIndex'");
  2704. InstructionDesc[OpHitObjectRecordHitMotionNV].operands.push(OperandId, "'HitKind'");
  2705. InstructionDesc[OpHitObjectRecordHitMotionNV].operands.push(OperandId, "'SBT Record Offset'");
  2706. InstructionDesc[OpHitObjectRecordHitMotionNV].operands.push(OperandId, "'SBT Record Stride'");
  2707. InstructionDesc[OpHitObjectRecordHitMotionNV].operands.push(OperandId, "'Origin'");
  2708. InstructionDesc[OpHitObjectRecordHitMotionNV].operands.push(OperandId, "'TMin'");
  2709. InstructionDesc[OpHitObjectRecordHitMotionNV].operands.push(OperandId, "'Direction'");
  2710. InstructionDesc[OpHitObjectRecordHitMotionNV].operands.push(OperandId, "'TMax'");
  2711. InstructionDesc[OpHitObjectRecordHitMotionNV].operands.push(OperandId, "'Current Time'");
  2712. InstructionDesc[OpHitObjectRecordHitMotionNV].operands.push(OperandId, "'HitObject Attribute'");
  2713. InstructionDesc[OpHitObjectRecordHitMotionNV].setResultAndType(false, false);
  2714. InstructionDesc[OpHitObjectRecordHitWithIndexNV].operands.push(OperandId, "'HitObject'");
  2715. InstructionDesc[OpHitObjectRecordHitWithIndexNV].operands.push(OperandId, "'Acceleration Structure'");
  2716. InstructionDesc[OpHitObjectRecordHitWithIndexNV].operands.push(OperandId, "'InstanceId'");
  2717. InstructionDesc[OpHitObjectRecordHitWithIndexNV].operands.push(OperandId, "'PrimitiveId'");
  2718. InstructionDesc[OpHitObjectRecordHitWithIndexNV].operands.push(OperandId, "'GeometryIndex'");
  2719. InstructionDesc[OpHitObjectRecordHitWithIndexNV].operands.push(OperandId, "'HitKind'");
  2720. InstructionDesc[OpHitObjectRecordHitWithIndexNV].operands.push(OperandId, "'SBT Record Index'");
  2721. InstructionDesc[OpHitObjectRecordHitWithIndexNV].operands.push(OperandId, "'Origin'");
  2722. InstructionDesc[OpHitObjectRecordHitWithIndexNV].operands.push(OperandId, "'TMin'");
  2723. InstructionDesc[OpHitObjectRecordHitWithIndexNV].operands.push(OperandId, "'Direction'");
  2724. InstructionDesc[OpHitObjectRecordHitWithIndexNV].operands.push(OperandId, "'TMax'");
  2725. InstructionDesc[OpHitObjectRecordHitWithIndexNV].operands.push(OperandId, "'HitObject Attribute'");
  2726. InstructionDesc[OpHitObjectRecordHitWithIndexNV].setResultAndType(false, false);
  2727. InstructionDesc[OpHitObjectRecordHitWithIndexMotionNV].operands.push(OperandId, "'HitObject'");
  2728. InstructionDesc[OpHitObjectRecordHitWithIndexMotionNV].operands.push(OperandId, "'Acceleration Structure'");
  2729. InstructionDesc[OpHitObjectRecordHitWithIndexMotionNV].operands.push(OperandId, "'InstanceId'");
  2730. InstructionDesc[OpHitObjectRecordHitWithIndexMotionNV].operands.push(OperandId, "'PrimitiveId'");
  2731. InstructionDesc[OpHitObjectRecordHitWithIndexMotionNV].operands.push(OperandId, "'GeometryIndex'");
  2732. InstructionDesc[OpHitObjectRecordHitWithIndexMotionNV].operands.push(OperandId, "'HitKind'");
  2733. InstructionDesc[OpHitObjectRecordHitWithIndexMotionNV].operands.push(OperandId, "'SBT Record Index'");
  2734. InstructionDesc[OpHitObjectRecordHitWithIndexMotionNV].operands.push(OperandId, "'Origin'");
  2735. InstructionDesc[OpHitObjectRecordHitWithIndexMotionNV].operands.push(OperandId, "'TMin'");
  2736. InstructionDesc[OpHitObjectRecordHitWithIndexMotionNV].operands.push(OperandId, "'Direction'");
  2737. InstructionDesc[OpHitObjectRecordHitWithIndexMotionNV].operands.push(OperandId, "'TMax'");
  2738. InstructionDesc[OpHitObjectRecordHitWithIndexMotionNV].operands.push(OperandId, "'Current Time'");
  2739. InstructionDesc[OpHitObjectRecordHitWithIndexMotionNV].operands.push(OperandId, "'HitObject Attribute'");
  2740. InstructionDesc[OpHitObjectRecordHitWithIndexMotionNV].setResultAndType(false, false);
  2741. InstructionDesc[OpHitObjectRecordMissNV].operands.push(OperandId, "'HitObject'");
  2742. InstructionDesc[OpHitObjectRecordMissNV].operands.push(OperandId, "'SBT Index'");
  2743. InstructionDesc[OpHitObjectRecordMissNV].operands.push(OperandId, "'Origin'");
  2744. InstructionDesc[OpHitObjectRecordMissNV].operands.push(OperandId, "'TMin'");
  2745. InstructionDesc[OpHitObjectRecordMissNV].operands.push(OperandId, "'Direction'");
  2746. InstructionDesc[OpHitObjectRecordMissNV].operands.push(OperandId, "'TMax'");
  2747. InstructionDesc[OpHitObjectRecordMissNV].setResultAndType(false, false);
  2748. InstructionDesc[OpHitObjectRecordMissMotionNV].operands.push(OperandId, "'HitObject'");
  2749. InstructionDesc[OpHitObjectRecordMissMotionNV].operands.push(OperandId, "'SBT Index'");
  2750. InstructionDesc[OpHitObjectRecordMissMotionNV].operands.push(OperandId, "'Origin'");
  2751. InstructionDesc[OpHitObjectRecordMissMotionNV].operands.push(OperandId, "'TMin'");
  2752. InstructionDesc[OpHitObjectRecordMissMotionNV].operands.push(OperandId, "'Direction'");
  2753. InstructionDesc[OpHitObjectRecordMissMotionNV].operands.push(OperandId, "'TMax'");
  2754. InstructionDesc[OpHitObjectRecordMissMotionNV].operands.push(OperandId, "'Current Time'");
  2755. InstructionDesc[OpHitObjectRecordMissMotionNV].setResultAndType(false, false);
  2756. InstructionDesc[OpHitObjectRecordEmptyNV].operands.push(OperandId, "'HitObject'");
  2757. InstructionDesc[OpHitObjectRecordEmptyNV].setResultAndType(false, false);
  2758. InstructionDesc[OpHitObjectTraceRayNV].operands.push(OperandId, "'HitObject'");
  2759. InstructionDesc[OpHitObjectTraceRayNV].operands.push(OperandId, "'Acceleration Structure'");
  2760. InstructionDesc[OpHitObjectTraceRayNV].operands.push(OperandId, "'RayFlags'");
  2761. InstructionDesc[OpHitObjectTraceRayNV].operands.push(OperandId, "'Cullmask'");
  2762. InstructionDesc[OpHitObjectTraceRayNV].operands.push(OperandId, "'SBT Record Offset'");
  2763. InstructionDesc[OpHitObjectTraceRayNV].operands.push(OperandId, "'SBT Record Stride'");
  2764. InstructionDesc[OpHitObjectTraceRayNV].operands.push(OperandId, "'Miss Index'");
  2765. InstructionDesc[OpHitObjectTraceRayNV].operands.push(OperandId, "'Origin'");
  2766. InstructionDesc[OpHitObjectTraceRayNV].operands.push(OperandId, "'TMin'");
  2767. InstructionDesc[OpHitObjectTraceRayNV].operands.push(OperandId, "'Direction'");
  2768. InstructionDesc[OpHitObjectTraceRayNV].operands.push(OperandId, "'TMax'");
  2769. InstructionDesc[OpHitObjectTraceRayNV].operands.push(OperandId, "'Payload'");
  2770. InstructionDesc[OpHitObjectTraceRayNV].setResultAndType(false, false);
  2771. InstructionDesc[OpHitObjectTraceRayMotionNV].operands.push(OperandId, "'HitObject'");
  2772. InstructionDesc[OpHitObjectTraceRayMotionNV].operands.push(OperandId, "'Acceleration Structure'");
  2773. InstructionDesc[OpHitObjectTraceRayMotionNV].operands.push(OperandId, "'RayFlags'");
  2774. InstructionDesc[OpHitObjectTraceRayMotionNV].operands.push(OperandId, "'Cullmask'");
  2775. InstructionDesc[OpHitObjectTraceRayMotionNV].operands.push(OperandId, "'SBT Record Offset'");
  2776. InstructionDesc[OpHitObjectTraceRayMotionNV].operands.push(OperandId, "'SBT Record Stride'");
  2777. InstructionDesc[OpHitObjectTraceRayMotionNV].operands.push(OperandId, "'Miss Index'");
  2778. InstructionDesc[OpHitObjectTraceRayMotionNV].operands.push(OperandId, "'Origin'");
  2779. InstructionDesc[OpHitObjectTraceRayMotionNV].operands.push(OperandId, "'TMin'");
  2780. InstructionDesc[OpHitObjectTraceRayMotionNV].operands.push(OperandId, "'Direction'");
  2781. InstructionDesc[OpHitObjectTraceRayMotionNV].operands.push(OperandId, "'TMax'");
  2782. InstructionDesc[OpHitObjectTraceRayMotionNV].operands.push(OperandId, "'Time'");
  2783. InstructionDesc[OpHitObjectTraceRayMotionNV].operands.push(OperandId, "'Payload'");
  2784. InstructionDesc[OpHitObjectTraceRayMotionNV].setResultAndType(false, false);
  2785. InstructionDesc[OpFetchMicroTriangleVertexBarycentricNV].operands.push(OperandId, "'Acceleration Structure'");
  2786. InstructionDesc[OpFetchMicroTriangleVertexBarycentricNV].operands.push(OperandId, "'Instance ID'");
  2787. InstructionDesc[OpFetchMicroTriangleVertexBarycentricNV].operands.push(OperandId, "'Geometry Index'");
  2788. InstructionDesc[OpFetchMicroTriangleVertexBarycentricNV].operands.push(OperandId, "'Primitive Index'");
  2789. InstructionDesc[OpFetchMicroTriangleVertexBarycentricNV].operands.push(OperandId, "'Barycentrics'");
  2790. InstructionDesc[OpFetchMicroTriangleVertexBarycentricNV].setResultAndType(true, true);
  2791. InstructionDesc[OpFetchMicroTriangleVertexPositionNV].operands.push(OperandId, "'Acceleration Structure'");
  2792. InstructionDesc[OpFetchMicroTriangleVertexPositionNV].operands.push(OperandId, "'Instance ID'");
  2793. InstructionDesc[OpFetchMicroTriangleVertexPositionNV].operands.push(OperandId, "'Geometry Index'");
  2794. InstructionDesc[OpFetchMicroTriangleVertexPositionNV].operands.push(OperandId, "'Primitive Index'");
  2795. InstructionDesc[OpFetchMicroTriangleVertexPositionNV].operands.push(OperandId, "'Barycentrics'");
  2796. InstructionDesc[OpFetchMicroTriangleVertexPositionNV].setResultAndType(true, true);
  2797. InstructionDesc[OpColorAttachmentReadEXT].operands.push(OperandId, "'Attachment'");
  2798. InstructionDesc[OpColorAttachmentReadEXT].operands.push(OperandId, "'Sample'", true);
  2799. InstructionDesc[OpStencilAttachmentReadEXT].operands.push(OperandId, "'Sample'", true);
  2800. InstructionDesc[OpDepthAttachmentReadEXT].operands.push(OperandId, "'Sample'", true);
  2801. InstructionDesc[OpImageSampleWeightedQCOM].operands.push(OperandId, "'source texture'");
  2802. InstructionDesc[OpImageSampleWeightedQCOM].operands.push(OperandId, "'texture coordinates'");
  2803. InstructionDesc[OpImageSampleWeightedQCOM].operands.push(OperandId, "'weights texture'");
  2804. InstructionDesc[OpImageSampleWeightedQCOM].operands.push(OperandImageOperands, "", true);
  2805. InstructionDesc[OpImageSampleWeightedQCOM].setResultAndType(true, true);
  2806. InstructionDesc[OpImageBoxFilterQCOM].operands.push(OperandId, "'source texture'");
  2807. InstructionDesc[OpImageBoxFilterQCOM].operands.push(OperandId, "'texture coordinates'");
  2808. InstructionDesc[OpImageBoxFilterQCOM].operands.push(OperandId, "'box size'");
  2809. InstructionDesc[OpImageBoxFilterQCOM].operands.push(OperandImageOperands, "", true);
  2810. InstructionDesc[OpImageBoxFilterQCOM].setResultAndType(true, true);
  2811. InstructionDesc[OpImageBlockMatchSADQCOM].operands.push(OperandId, "'target texture'");
  2812. InstructionDesc[OpImageBlockMatchSADQCOM].operands.push(OperandId, "'target coordinates'");
  2813. InstructionDesc[OpImageBlockMatchSADQCOM].operands.push(OperandId, "'reference texture'");
  2814. InstructionDesc[OpImageBlockMatchSADQCOM].operands.push(OperandId, "'reference coordinates'");
  2815. InstructionDesc[OpImageBlockMatchSADQCOM].operands.push(OperandId, "'block size'");
  2816. InstructionDesc[OpImageBlockMatchSADQCOM].operands.push(OperandImageOperands, "", true);
  2817. InstructionDesc[OpImageBlockMatchSADQCOM].setResultAndType(true, true);
  2818. InstructionDesc[OpImageBlockMatchSSDQCOM].operands.push(OperandId, "'target texture'");
  2819. InstructionDesc[OpImageBlockMatchSSDQCOM].operands.push(OperandId, "'target coordinates'");
  2820. InstructionDesc[OpImageBlockMatchSSDQCOM].operands.push(OperandId, "'reference texture'");
  2821. InstructionDesc[OpImageBlockMatchSSDQCOM].operands.push(OperandId, "'reference coordinates'");
  2822. InstructionDesc[OpImageBlockMatchSSDQCOM].operands.push(OperandId, "'block size'");
  2823. InstructionDesc[OpImageBlockMatchSSDQCOM].operands.push(OperandImageOperands, "", true);
  2824. InstructionDesc[OpImageBlockMatchSSDQCOM].setResultAndType(true, true);
  2825. });
  2826. }
  2827. }; // end spv namespace