debug.json 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  1. [
  2. 1,
  3. 0,
  4. 0,
  5. [
  6. [
  7. "cc.EffectAsset",
  8. [
  9. "_name",
  10. "shaders",
  11. "techniques"
  12. ],
  13. 0
  14. ]
  15. ],
  16. [
  17. [
  18. 0,
  19. 0,
  20. 1,
  21. 2,
  22. 4
  23. ]
  24. ],
  25. [
  26. [
  27. 0,
  28. "internal/builtin-occlusion-query",
  29. [
  30. {
  31. "hash": 4216551032,
  32. "name": "internal/builtin-occlusion-query|occlusion-query-vs:vert|occlusion-query-fs:frag",
  33. "blocks": [],
  34. "samplerTextures": [],
  35. "samplers": [],
  36. "textures": [],
  37. "buffers": [],
  38. "images": [],
  39. "subpassInputs": [],
  40. "attributes": [
  41. {
  42. "name": "a_position",
  43. "format": 32,
  44. "location": 0,
  45. "defines": []
  46. }
  47. ],
  48. "fragColors": [
  49. {
  50. "name": "cc_FragColor",
  51. "typename": "vec4",
  52. "type": 16,
  53. "count": 1,
  54. "stageFlags": 16,
  55. "location": 0,
  56. "defines": []
  57. }
  58. ],
  59. "descriptors": [
  60. {
  61. "rate": 0,
  62. "blocks": [
  63. {
  64. "name": "CCWorldBound",
  65. "stageFlags": 1,
  66. "tags": {
  67. "builtin": "local"
  68. },
  69. "members": [
  70. {
  71. "name": "cc_worldBoundCenter",
  72. "typename": "vec4",
  73. "type": 16,
  74. "count": 1,
  75. "precision": "highp "
  76. },
  77. {
  78. "name": "cc_worldBoundHalfExtents",
  79. "typename": "vec4",
  80. "type": 16,
  81. "count": 1,
  82. "precision": "highp "
  83. }
  84. ],
  85. "defines": []
  86. }
  87. ],
  88. "samplerTextures": [],
  89. "samplers": [],
  90. "textures": [],
  91. "buffers": [],
  92. "images": [],
  93. "subpassInputs": []
  94. },
  95. {
  96. "rate": 1,
  97. "blocks": [],
  98. "samplerTextures": [],
  99. "samplers": [],
  100. "textures": [],
  101. "buffers": [],
  102. "images": [],
  103. "subpassInputs": []
  104. },
  105. {
  106. "rate": 2,
  107. "blocks": [],
  108. "samplerTextures": [],
  109. "samplers": [],
  110. "textures": [],
  111. "buffers": [],
  112. "images": [],
  113. "subpassInputs": []
  114. },
  115. {
  116. "rate": 3,
  117. "blocks": [
  118. {
  119. "name": "CCGlobal",
  120. "stageFlags": 1,
  121. "tags": {
  122. "builtin": "global"
  123. },
  124. "members": [
  125. {
  126. "name": "cc_time",
  127. "typename": "vec4",
  128. "type": 16,
  129. "count": 1,
  130. "precision": "highp "
  131. },
  132. {
  133. "name": "cc_screenSize",
  134. "typename": "vec4",
  135. "type": 16,
  136. "count": 1,
  137. "precision": "mediump "
  138. },
  139. {
  140. "name": "cc_nativeSize",
  141. "typename": "vec4",
  142. "type": 16,
  143. "count": 1,
  144. "precision": "mediump "
  145. },
  146. {
  147. "name": "cc_probeInfo",
  148. "typename": "vec4",
  149. "type": 16,
  150. "count": 1,
  151. "precision": "mediump "
  152. },
  153. {
  154. "name": "cc_debug_view_mode",
  155. "typename": "vec4",
  156. "type": 16,
  157. "count": 1,
  158. "precision": "mediump "
  159. }
  160. ],
  161. "defines": []
  162. },
  163. {
  164. "name": "CCCamera",
  165. "stageFlags": 1,
  166. "tags": {
  167. "builtin": "global"
  168. },
  169. "members": [
  170. {
  171. "name": "cc_matView",
  172. "typename": "mat4",
  173. "type": 25,
  174. "count": 1,
  175. "precision": "highp "
  176. },
  177. {
  178. "name": "cc_matViewInv",
  179. "typename": "mat4",
  180. "type": 25,
  181. "count": 1,
  182. "precision": "highp "
  183. },
  184. {
  185. "name": "cc_matProj",
  186. "typename": "mat4",
  187. "type": 25,
  188. "count": 1,
  189. "precision": "highp "
  190. },
  191. {
  192. "name": "cc_matProjInv",
  193. "typename": "mat4",
  194. "type": 25,
  195. "count": 1,
  196. "precision": "highp "
  197. },
  198. {
  199. "name": "cc_matViewProj",
  200. "typename": "mat4",
  201. "type": 25,
  202. "count": 1,
  203. "precision": "highp "
  204. },
  205. {
  206. "name": "cc_matViewProjInv",
  207. "typename": "mat4",
  208. "type": 25,
  209. "count": 1,
  210. "precision": "highp "
  211. },
  212. {
  213. "name": "cc_cameraPos",
  214. "typename": "vec4",
  215. "type": 16,
  216. "count": 1,
  217. "precision": "highp "
  218. },
  219. {
  220. "name": "cc_surfaceTransform",
  221. "typename": "vec4",
  222. "type": 16,
  223. "count": 1,
  224. "precision": "mediump "
  225. },
  226. {
  227. "name": "cc_screenScale",
  228. "typename": "vec4",
  229. "type": 16,
  230. "count": 1,
  231. "precision": "mediump "
  232. },
  233. {
  234. "name": "cc_exposure",
  235. "typename": "vec4",
  236. "type": 16,
  237. "count": 1,
  238. "precision": "mediump "
  239. },
  240. {
  241. "name": "cc_mainLitDir",
  242. "typename": "vec4",
  243. "type": 16,
  244. "count": 1,
  245. "precision": "mediump "
  246. },
  247. {
  248. "name": "cc_mainLitColor",
  249. "typename": "vec4",
  250. "type": 16,
  251. "count": 1,
  252. "precision": "mediump "
  253. },
  254. {
  255. "name": "cc_ambientSky",
  256. "typename": "vec4",
  257. "type": 16,
  258. "count": 1,
  259. "precision": "mediump "
  260. },
  261. {
  262. "name": "cc_ambientGround",
  263. "typename": "vec4",
  264. "type": 16,
  265. "count": 1,
  266. "precision": "mediump "
  267. },
  268. {
  269. "name": "cc_fogColor",
  270. "typename": "vec4",
  271. "type": 16,
  272. "count": 1,
  273. "precision": "mediump "
  274. },
  275. {
  276. "name": "cc_fogBase",
  277. "typename": "vec4",
  278. "type": 16,
  279. "count": 1,
  280. "precision": "mediump "
  281. },
  282. {
  283. "name": "cc_fogAdd",
  284. "typename": "vec4",
  285. "type": 16,
  286. "count": 1,
  287. "precision": "mediump "
  288. },
  289. {
  290. "name": "cc_nearFar",
  291. "typename": "vec4",
  292. "type": 16,
  293. "count": 1,
  294. "precision": "mediump "
  295. },
  296. {
  297. "name": "cc_viewPort",
  298. "typename": "vec4",
  299. "type": 16,
  300. "count": 1,
  301. "precision": "mediump "
  302. }
  303. ],
  304. "defines": []
  305. }
  306. ],
  307. "samplerTextures": [],
  308. "samplers": [],
  309. "textures": [],
  310. "buffers": [],
  311. "images": [],
  312. "subpassInputs": []
  313. }
  314. ],
  315. "glsl1": {
  316. "vert": "\nprecision highp float;\nuniform highp mat4 cc_matViewProj;\nuniform highp vec4 cc_worldBoundCenter;\n uniform highp vec4 cc_worldBoundHalfExtents;\nattribute vec3 a_position;\nvec4 vert () {\n vec4 position;\n position = vec4(a_position, 1.0);\n position *= cc_worldBoundHalfExtents;\n position += cc_worldBoundCenter;\n position = cc_matViewProj * position;\n return position;\n}\nvoid main() { gl_Position = vert(); }",
  317. "frag": "\nprecision mediump float;\nvec4 frag () {\n return vec4(1, 0, 0, 1);\n}\nvoid main() { gl_FragColor = frag(); }"
  318. },
  319. "builtins": {
  320. "globals": {
  321. "blocks": [
  322. {
  323. "name": "CCGlobal",
  324. "defines": []
  325. },
  326. {
  327. "name": "CCCamera",
  328. "defines": []
  329. }
  330. ],
  331. "samplerTextures": [],
  332. "buffers": [],
  333. "images": []
  334. },
  335. "locals": {
  336. "blocks": [
  337. {
  338. "name": "CCWorldBound",
  339. "defines": []
  340. }
  341. ],
  342. "samplerTextures": [],
  343. "buffers": [],
  344. "images": []
  345. },
  346. "statistics": {
  347. "CC_EFFECT_USED_VERTEX_UNIFORM_VECTORS": 44,
  348. "CC_EFFECT_USED_FRAGMENT_UNIFORM_VECTORS": 0
  349. }
  350. },
  351. "defines": []
  352. }
  353. ],
  354. [
  355. {
  356. "passes": [
  357. {
  358. "program": "internal/builtin-occlusion-query|occlusion-query-vs:vert|occlusion-query-fs:frag",
  359. "rasterizerState": {
  360. "cullMode": 2
  361. },
  362. "blendState": {
  363. "targets": [
  364. {
  365. "blendColorMask": 0
  366. }
  367. ]
  368. },
  369. "depthStencilState": {
  370. "depthTest": true,
  371. "depthWrite": false
  372. }
  373. }
  374. ]
  375. }
  376. ]
  377. ]
  378. ],
  379. 0,
  380. 0,
  381. [],
  382. [],
  383. []
  384. ]