Debian Codegraph @

src/render/materialsystem/prototypes/default.json

raw symbols SCIP
1 {
2 "input": {
3 "outputs": [
4 "value"
5 ],
6 "parameters": {
7 "name": "defaultName",
8 "type": {
9 "type": "QShaderLanguage::VariableType",
10 "value": "QShaderLanguage::Vec3"
11 },
12 "location": "0"
13 },
14 "rules": [
15 {
16 "format": {
17 "api": "OpenGLES",
18 "major": 2,
19 "minor": 0
20 },
21 "headerSnippets": [
22 "attribute highp $type $name;"
23 ],
24 "headerSnippetsFrag": [
25 "varying highp $type $name;"
26 ],
27 "substitution": "highp $type $value = $name;"
28 },
29 {
30 "format": {
31 "api": "OpenGLES",
32 "major": 3,
33 "minor": 0
34 },
35 "headerSnippets": [
36 "in highp $type $name;"
37 ],
38 "substitution": "highp $type $value = $name;"
39 },
40 {
41 "format": {
42 "api": "OpenGLCoreProfile",
43 "major": 3,
44 "minor": 0
45 },
46 "headerSnippets": [
47 "in $type $name;"
48 ],
49 "substitution": "$type $value = $name;"
50 },
51 {
52 "format": {
53 "api": "RHI",
54 "major": 1,
55 "minor": 0
56 },
57 "headerSnippets": [
58 "layout(location = $location) in $type $name;"
59 ],
60 "substitution": "$type $value = $name;"
61 }
62 ]
63 },
64 "constant": {
65 "outputs": [
66 "value"
67 ],
68 "parameters": {
69 "constant": "0.0",
70 "type": {
71 "type": "QShaderLanguage::VariableType",
72 "value": "QShaderLanguage::Float"
73 }
74 },
75 "rules": [
76 {
77 "format": {
78 "api": "OpenGLES",
79 "major": 2,
80 "minor": 0
81 },
82 "substitution": "highp $type $value = $type($constant);"
83 },
84 {
85 "format": {
86 "api": "OpenGLCoreProfile",
87 "major": 3,
88 "minor": 0
89 },
90 "substitution": "$type $value = $type($constant);"
91 },
92 {
93 "format": {
94 "api": "RHI",
95 "major": 1,
96 "minor": 0
97 },
98 "substitution": "$type $value = $type($constant);"
99 }
100 ]
101 },
102 "sampleTexture": {
103 "inputs": [
104 "coord"
105 ],
106 "outputs": [
107 "color"
108 ],
109 "parameters": {
110 "name": "defaultName"
111 },
112 "rules": [
113 {
114 "format": {
115 "api": "OpenGLES",
116 "major": 2,
117 "minor": 0
118 },
119 "headerSnippets": [
120 "uniform sampler2D $name;"
121 ],
122 "substitution": "highp vec4 $color = texture2D($name, $coord);"
123 },
124 {
125 "format": {
126 "api": "OpenGLES",
127 "major": 3,
128 "minor": 0
129 },
130 "headerSnippets": [
131 "uniform sampler2D $name;"
132 ],
133 "substitution": "highp vec4 $color = texture($name, $coord);"
134 },
135 {
136 "format": {
137 "api": "OpenGLCoreProfile",
138 "major": 3,
139 "minor": 0
140 },
141 "headerSnippets": [
142 "uniform sampler2D $name;"
143 ],
144 "substitution": "vec4 $color = texture($name, $coord);"
145 },
146 {
147 "format": {
148 "api": "RHI",
149 "major": 1,
150 "minor": 0
151 },
152 "headerSnippets": [
153 "add-sampler sampler2D $name"
154 ],
155 "substitution": "vec4 $color = texture($name, $coord);"
156 }
157 ]
158 },
159 "fragColor": {
160 "inputs": [
161 "fragColor"
162 ],
163 "rules": [
164 {
165 "format": {
166 "api": "OpenGLES",
167 "major": 2,
168 "minor": 0
169 },
170 "substitution": "gl_FragColor = $fragColor;"
171 },
172 {
173 "format": {
174 "api": "OpenGLES",
175 "major": 3,
176 "minor": 0
177 },
178 "substitution": "fragColor = $fragColor;",
179 "headerSnippets": [
180 "out highp vec4 fragColor;"
181 ]
182 },
183 {
184 "format": {
185 "api": "OpenGLCoreProfile",
186 "major": 3,
187 "minor": 0
188 },
189 "substitution": "fragColor = $fragColor;",
190 "headerSnippets": [
191 "out vec4 fragColor;"
192 ]
193 },
194 {
195 "format": {
196 "api": "RHI",
197 "major": 1,
198 "minor": 0
199 },
200 "substitution": "fragColor = $fragColor;",
201 "headerSnippets": [
202 "layout(location = 0) out vec4 fragColor;"
203 ]
204 }
205 ]
206 },
207 "eyePosition": {
208 "outputs": [
209 "eyePosition"
210 ],
211 "rules": [
212 {
213 "format": {
214 "api": "OpenGLES",
215 "major": 2,
216 "minor": 0
217 },
218 "substitution": "highp vec3 $eyePosition = eyePosition;",
219 "headerSnippets": [
220 "uniform highp vec3 eyePosition;"
221 ]
222 },
223 {
224 "format": {
225 "api": "OpenGLCoreProfile",
226 "major": 3,
227 "minor": 0
228 },
229 "substitution": "vec3 $eyePosition = eyePosition;",
230 "headerSnippets": [
231 "uniform vec3 eyePosition;"
232 ]
233 },
234 {
235 "format": {
236 "api": "RHI",
237 "major": 1,
238 "minor": 0
239 },
240 "substitution": "vec3 $eyePosition = eyePosition;",
241 "headerSnippets": []
242 }
243 ]
244 },
245 "time": {
246 "outputs": [
247 "time"
248 ],
249 "rules": [
250 {
251 "format": {
252 "api": "OpenGLES",
253 "major": 2,
254 "minor": 0
255 },
256 "substitution": "highp float $time = time;",
257 "headerSnippets": [
258 "uniform highp float time;"
259 ]
260 },
261 {
262 "format": {
263 "api": "OpenGLCoreProfile",
264 "major": 3,
265 "minor": 0
266 },
267 "substitution": "float $time = time;",
268 "headerSnippets": [
269 "uniform float time;"
270 ]
271 },
272 {
273 "format": {
274 "api": "RHI",
275 "major": 1,
276 "minor": 0
277 },
278 "substitution": "float $time = time;",
279 "headerSnippets": [
280 "add-uniform float time"
281 ]
282 }
283 ]
284 },
285 "transpose": {
286 "inputs": [
287 "input"
288 ],
289 "outputs": [
290 "output"
291 ],
292 "parameters": {
293 "type": {
294 "type": "QShaderLanguage::VariableType",
295 "value": "QShaderLanguage::Mat3"
296 }
297 },
298 "rules": [
299 {
300 "format": {
301 "api": "OpenGLES",
302 "major": 2,
303 "minor": 0
304 },
305 "substitution": "highp $type $output = transpose($input);"
306 },
307 {
308 "format": {
309 "api": "OpenGLCoreProfile",
310 "major": 3,
311 "minor": 0
312 },
313 "substitution": "$type $output = transpose($input);"
314 },
315 {
316 "format": {
317 "api": "RHI",
318 "major": 1,
319 "minor": 0
320 },
321 "substitution": "$type $output = transpose($input);"
322 }
323 ]
324 },
325 "normalize": {
326 "inputs": [
327 "input"
328 ],
329 "outputs": [
330 "output"
331 ],
332 "parameters": {
333 "type": {
334 "type": "QShaderLanguage::VariableType",
335 "value": "QShaderLanguage::Vec3"
336 }
337 },
338 "rules": [
339 {
340 "format": {
341 "api": "OpenGLES",
342 "major": 2,
343 "minor": 0
344 },
345 "substitution": "highp $type $output = normalize($input);"
346 },
347 {
348 "format": {
349 "api": "OpenGLCoreProfile",
350 "major": 3,
351 "minor": 0
352 },
353 "substitution": "$type $output = normalize($input);"
354 },
355 {
356 "format": {
357 "api": "RHI",
358 "major": 1,
359 "minor": 0
360 },
361 "substitution": "$type $output = normalize($input);"
362 }
363 ]
364 },
365 "subtract": {
366 "inputs": [
367 "minuend",
368 "subtrahend"
369 ],
370 "outputs": [
371 "difference"
372 ],
373 "parameters": {
374 "type": {
375 "type": "QShaderLanguage::VariableType",
376 "value": "QShaderLanguage::Vec3"
377 }
378 },
379 "rules": [
380 {
381 "format": {
382 "api": "OpenGLES",
383 "major": 2,
384 "minor": 0
385 },
386 "substitution": "highp $type $difference = $minuend - $subtrahend;"
387 },
388 {
389 "format": {
390 "api": "OpenGLCoreProfile",
391 "major": 3,
392 "minor": 0
393 },
394 "substitution": "$type $difference = $minuend - $subtrahend;"
395 },
396 {
397 "format": {
398 "api": "RHI",
399 "major": 1,
400 "minor": 0
401 },
402 "substitution": "$type $difference = $minuend - $subtrahend;"
403 }
404 ]
405 },
406 "add": {
407 "inputs": [
408 "first",
409 "second"
410 ],
411 "outputs": [
412 "sum"
413 ],
414 "parameters": {
415 "type": {
416 "type": "QShaderLanguage::VariableType",
417 "value": "QShaderLanguage::Vec3"
418 }
419 },
420 "rules": [
421 {
422 "format": {
423 "api": "OpenGLES",
424 "major": 2,
425 "minor": 0
426 },
427 "substitution": "highp $type $sum = $first + $second;"
428 },
429 {
430 "format": {
431 "api": "OpenGLCoreProfile",
432 "major": 3,
433 "minor": 0
434 },
435 "substitution": "$type $sum = $first + $second;"
436 },
437 {
438 "format": {
439 "api": "RHI",
440 "major": 1,
441 "minor": 0
442 },
443 "substitution": "$type $sum = $first + $second;"
444 }
445 ]
446 },
447 "multiply": {
448 "inputs": [
449 "first",
450 "second"
451 ],
452 "outputs": [
453 "product"
454 ],
455 "parameters": {
456 "type": {
457 "type": "QShaderLanguage::VariableType",
458 "value": "QShaderLanguage::Vec3"
459 }
460 },
461 "rules": [
462 {
463 "format": {
464 "api": "OpenGLES",
465 "major": 2,
466 "minor": 0
467 },
468 "substitution": "highp $type $product = $first * $second;"
469 },
470 {
471 "format": {
472 "api": "OpenGLCoreProfile",
473 "major": 3,
474 "minor": 0
475 },
476 "substitution": "$type $product = $first * $second;"
477 },
478 {
479 "format": {
480 "api": "RHI",
481 "major": 1,
482 "minor": 0
483 },
484 "substitution": "$type $product = $first * $second;"
485 }
486 ]
487 },
488 "swizzle": {
489 "inputs": [
490 "input"
491 ],
492 "outputs": [
493 "output"
494 ],
495 "parameters": {
496 "fields": "x",
497 "type": {
498 "type": "QShaderLanguage::VariableType",
499 "value": "QShaderLanguage::Vec3"
500 }
501 },
502 "rules": [
503 {
504 "format": {
505 "api": "OpenGLES",
506 "major": 2,
507 "minor": 0
508 },
509 "substitution": "highp $type $output = $input.$fields;"
510 },
511 {
512 "format": {
513 "api": "OpenGLCoreProfile",
514 "major": 3,
515 "minor": 0
516 },
517 "substitution": "$type $output = $input.$fields;"
518 },
519 {
520 "format": {
521 "api": "RHI",
522 "major": 1,
523 "minor": 0
524 },
525 "substitution": "$type $output = $input.$fields;"
526 }
527 ]
528 },
529 "worldSpaceToTangentSpaceMatrix": {
530 "inputs": [
531 "worldNormal",
532 "worldTangent"
533 ],
534 "outputs": [
535 "matrix"
536 ],
537 "rules": [
538 {
539 "format": {
540 "api": "OpenGLES",
541 "major": 2,
542 "minor": 0
543 },
544 "substitution": "highp mat3 $matrix = calcWorldSpaceToTangentSpaceMatrix($worldNormal, $worldTangent);",
545 "headerSnippets": [
546 "#pragma include :/shaders/es2/coordinatesystems.inc"
547 ]
548 },
549 {
550 "format": {
551 "api": "OpenGLES",
552 "major": 3,
553 "minor": 0
554 },
555 "substitution": "highp mat3 $matrix = calcWorldSpaceToTangentSpaceMatrix($worldNormal, $worldTangent);",
556 "headerSnippets": [
557 "#pragma include :/shaders/es3/coordinatesystems.inc"
558 ]
559 },
560 {
561 "format": {
562 "api": "OpenGLCoreProfile",
563 "major": 3,
564 "minor": 0
565 },
566 "substitution": "mat3 $matrix = calcWorldSpaceToTangentSpaceMatrix($worldNormal, $worldTangent);",
567 "headerSnippets": [
568 "#pragma include :/shaders/gl3/coordinatesystems.inc"
569 ]
570 },
571 {
572 "format": {
573 "api": "RHI",
574 "major": 1,
575 "minor": 0
576 },
577 "substitution": "mat3 $matrix = calcWorldSpaceToTangentSpaceMatrix($worldNormal, $worldTangent);",
578 "headerSnippets": [
579 "#pragma include :/shaders/rhi/coordinatesystems.inc"
580 ]
581 }
582 ]
583 },
584 "phongFunction": {
585 "inputs": [
586 "ambient",
587 "diffuse",
588 "specular",
589 "shininess",
590 "worldPosition",
591 "worldView",
592 "worldNormal"
593 ],
594 "outputs": [
595 "outputColor"
596 ],
597 "rules": [
598 {
599 "format": {
600 "api": "OpenGLES",
601 "major": 2,
602 "minor": 0
603 },
604 "substitution": "highp vec4 $outputColor = phongFunction($ambient, $diffuse, $specular, $shininess, $worldPosition, $worldView, $worldNormal);",
605 "headerSnippets": [
606 "#pragma include :/shaders/es2/phong.inc.frag"
607 ]
608 },
609 {
610 "format": {
611 "api": "OpenGLCoreProfile",
612 "major": 3,
613 "minor": 0
614 },
615 "substitution": "vec4 $outputColor = phongFunction($ambient, $diffuse, $specular, $shininess, $worldPosition, $worldView, $worldNormal);",
616 "headerSnippets": [
617 "#pragma include :/shaders/gl3/phong.inc.frag"
618 ]
619 },
620 {
621 "format": {
622 "api": "RHI",
623 "major": 1,
624 "minor": 0
625 },
626 "substitution": "vec4 $outputColor = phongFunction($ambient, $diffuse, $specular, $shininess, $worldPosition, $worldView, $worldNormal);",
627 "headerSnippets": [
628 "#pragma include :/shaders/rhi/phong.inc.frag"
629 ]
630 }
631 ]
632 },
633 "metalRoughFunction": {
634 "inputs": [
635 "baseColor",
636 "metalness",
637 "roughness",
638 "ambientOcclusion",
639 "worldPosition",
640 "worldView",
641 "worldNormal"
642 ],
643 "outputs": [
644 "outputColor"
645 ],
646 "rules": [
647 {
648 "format": {
649 "api": "OpenGLES",
650 "major": 3,
651 "minor": 0
652 },
653 "substitution": "highp vec4 $outputColor = metalRoughFunction($baseColor, $metalness, $roughness, $ambientOcclusion, $worldPosition, $worldView, $worldNormal);",
654 "headerSnippets": [
655 "#pragma include :/shaders/es3/metalrough.inc.frag"
656 ]
657 },
658 {
659 "format": {
660 "api": "OpenGLCoreProfile",
661 "major": 3,
662 "minor": 1
663 },
664 "substitution": "vec4 $outputColor = metalRoughFunction($baseColor, $metalness, $roughness, $ambientOcclusion, $worldPosition, $worldView, $worldNormal);",
665 "headerSnippets": [
666 "#pragma include :/shaders/gl3/metalrough.inc.frag"
667 ]
668 },
669 {
670 "format": {
671 "api": "RHI",
672 "major": 1,
673 "minor": 0
674 },
675 "substitution": "vec4 $outputColor = metalRoughFunction($baseColor, $metalness, $roughness, $ambientOcclusion, $worldPosition, $worldView, $worldNormal);",
676 "headerSnippets": [
677 "#pragma include :/shaders/rhi/metalrough.inc.frag"
678 ]
679 }
680 ]
681 },
682 "join2": {
683 "inputs": [
684 "first",
685 "second"
686 ],
687 "outputs": [
688 "output"
689 ],
690 "parameters": {
691 "type": {
692 "type": "QShaderLanguage::VariableType",
693 "value": "QShaderLanguage::Vec2"
694 }
695 },
696 "rules": [
697 {
698 "format": {
699 "api": "OpenGLES",
700 "major": 2,
701 "minor": 0
702 },
703 "substitution": "highp $type $output = $type($first, $second);"
704 },
705 {
706 "format": {
707 "api": "OpenGLCoreProfile",
708 "major": 3,
709 "minor": 0
710 },
711 "substitution": "$type $output = $type($first, $second);"
712 },
713 {
714 "format": {
715 "api": "RHI",
716 "major": 1,
717 "minor": 0
718 },
719 "substitution": "$type $output = $type($first, $second);"
720 }
721 ]
722 },
723 "join3": {
724 "inputs": [
725 "first",
726 "second",
727 "third"
728 ],
729 "outputs": [
730 "output"
731 ],
732 "parameters": {
733 "type": {
734 "type": "QShaderLanguage::VariableType",
735 "value": "QShaderLanguage::Vec3"
736 }
737 },
738 "rules": [
739 {
740 "format": {
741 "api": "OpenGLES",
742 "major": 2,
743 "minor": 0
744 },
745 "substitution": "highp $type $output = $type($first, $second, $third);"
746 },
747 {
748 "format": {
749 "api": "OpenGLCoreProfile",
750 "major": 3,
751 "minor": 0
752 },
753 "substitution": "$type $output = $type($first, $second, $third);"
754 },
755 {
756 "format": {
757 "api": "RHI",
758 "major": 1,
759 "minor": 0
760 },
761 "substitution": "$type $output = $type($first, $second, $third);"
762 }
763 ]
764 },
765 "join4": {
766 "inputs": [
767 "first",
768 "second",
769 "third",
770 "fourth"
771 ],
772 "outputs": [
773 "output"
774 ],
775 "parameters": {
776 "type": {
777 "type": "QShaderLanguage::VariableType",
778 "value": "QShaderLanguage::Vec4"
779 }
780 },
781 "rules": [
782 {
783 "format": {
784 "api": "OpenGLES",
785 "major": 2,
786 "minor": 0
787 },
788 "substitution": "highp $type $output = $type($first, $second, $third, $fourth);"
789 },
790 {
791 "format": {
792 "api": "OpenGLCoreProfile",
793 "major": 3,
794 "minor": 0
795 },
796 "substitution": "$type $output = $type($first, $second, $third, $fourth);"
797 },
798 {
799 "format": {
800 "api": "RHI",
801 "major": 1,
802 "minor": 0
803 },
804 "substitution": "$type $output = $type($first, $second, $third, $fourth);"
805 }
806 ]
807 },
808 "cast": {
809 "inputs": [
810 "input"
811 ],
812 "outputs": [
813 "output"
814 ],
815 "parameters": {
816 "type": {
817 "type": "QShaderLanguage::VariableType",
818 "value": "QShaderLanguage::Vec3"
819 }
820 },
821 "rules": [
822 {
823 "format": {
824 "api": "OpenGLES",
825 "major": 2,
826 "minor": 0
827 },
828 "substitution": "highp $type $output = $type($input);"
829 },
830 {
831 "format": {
832 "api": "OpenGLCoreProfile",
833 "major": 3,
834 "minor": 0
835 },
836 "substitution": "$type $output = $type($input);"
837 },
838 {
839 "format": {
840 "api": "RHI",
841 "major": 1,
842 "minor": 0
843 },
844 "substitution": "$type $output = $type($input);"
845 }
846 ]
847 },
848 "builtinInput": {
849 "outputs": [
850 "value"
851 ],
852 "parameters": {
853 "name": "defaultName",
854 "type": {
855 "type": "QShaderLanguage::VariableType",
856 "value": "QShaderLanguage::Vec3"
857 }
858 },
859 "rules": [
860 {
861 "format": {
862 "api": "OpenGLES",
863 "major": 2,
864 "minor": 0
865 },
866 "substitution": "highp $type $value = $name;"
867 },
868 {
869 "format": {
870 "api": "OpenGLCoreProfile",
871 "major": 3,
872 "minor": 0
873 },
874 "substitution": "$type $value = $name;"
875 },
876 {
877 "format": {
878 "api": "RHI",
879 "major": 1,
880 "minor": 0
881 },
882 "substitution": "$type $value = $name;"
883 }
884 ]
885 },
886 "uniformInput": {
887 "outputs": [
888 "value"
889 ],
890 "parameters": {
891 "name": "defaultName",
892 "type": {
893 "type": "QShaderLanguage::VariableType",
894 "value": "QShaderLanguage::Vec3"
895 },
896 "location": "0"
897 },
898 "rules": [
899 {
900 "format": {
901 "api": "OpenGLES",
902 "major": 2,
903 "minor": 0
904 },
905 "headerSnippets": [
906 "uniform highp $type $name;"
907 ],
908 "substitution": "highp $type $value = $name;"
909 },
910 {
911 "format": {
912 "api": "OpenGLCoreProfile",
913 "major": 3,
914 "minor": 0
915 },
916 "headerSnippets": [
917 "uniform $type $name;"
918 ],
919 "substitution": "$type $value = $name;"
920 },
921 {
922 "format": {
923 "api": "RHI",
924 "major": 1,
925 "minor": 0
926 },
927 "headerSnippets": [
928 "add-uniform $type $name"
929 ],
930 "substitution": "$type $value = $name;"
931 }
932 ]
933 },
934 "uniformArrayInput": {
935 "outputs": [
936 "value"
937 ],
938 "parameters": {
939 "name": "defaultName",
940 "size": "1",
941 "type": {
942 "type": "QShaderLanguage::VariableType",
943 "value": "QShaderLanguage::Vec3"
944 },
945 "location": "0"
946 },
947 "rules": [
948 {
949 "format": {
950 "api": "OpenGLES",
951 "major": 2,
952 "minor": 0
953 },
954 "headerSnippets": [
955 "uniform highp $type $name[$size];"
956 ],
957 "substitution": "highp $type $value = $name;"
958 },
959 {
960 "format": {
961 "api": "OpenGLCoreProfile",
962 "major": 3,
963 "minor": 0
964 },
965 "headerSnippets": [
966 "uniform $type $name[$size];"
967 ],
968 "substitution": "$type $value = $name;"
969 },
970 {
971 "format": {
972 "api": "RHI",
973 "major": 1,
974 "minor": 0
975 },
976 "headerSnippets": [
977 "add-uniform $type $name[$size]"
978 ],
979 "substitution": "$type $value = $name;"
980 }
981 ]
982 },
983 "textureInput": {
984 "outputs": [
985 "value"
986 ],
987 "parameters": {
988 "name": "defaultName",
989 "type": {
990 "type": "QShaderLanguage::VariableType",
991 "value": "QShaderLanguage::Vec3"
992 }
993 },
994 "rules": [
995 {
996 "format": {
997 "api": "OpenGLES",
998 "major": 2,
999 "minor": 0
1000 },
1001 "headerSnippets": [
1002 "uniform highp $type $name;"
1003 ],
1004 "substitution": "highp $type $value = $name;"
1005 },
1006 {
1007 "format": {
1008 "api": "OpenGLCoreProfile",
1009 "major": 3,
1010 "minor": 0
1011 },
1012 "headerSnippets": [
1013 "uniform $type $name;"
1014 ],
1015 "substitution": "$type $value = $name;"
1016 },
1017 {
1018 "format": {
1019 "api": "RHI",
1020 "major": 1,
1021 "minor": 0
1022 },
1023 "headerSnippets": [
1024 "add-sampler $type $name"
1025 ],
1026 "substitution": "$type $value = $name;"
1027 }
1028 ]
1029 },
1030 "output": {
1031 "inputs": [
1032 "value"
1033 ],
1034 "parameters": {
1035 "name": "defaultName",
1036 "type": {
1037 "type": "QShaderLanguage::VariableType",
1038 "value": "QShaderLanguage::Vec3"
1039 }
1040 },
1041 "rules": [
1042 {
1043 "format": {
1044 "api": "OpenGLES",
1045 "major": 2,
1046 "minor": 0
1047 },
1048 "headerSnippets": [
1049 "varying highp $type $name;"
1050 ],
1051 "substitution": "$name = $value;"
1052 },
1053 {
1054 "format": {
1055 "api": "OpenGLES",
1056 "major": 3,
1057 "minor": 0
1058 },
1059 "headerSnippets": [
1060 "out highp $type $name;"
1061 ],
1062 "substitution": "$name = $value;"
1063 },
1064 {
1065 "format": {
1066 "api": "OpenGLCoreProfile",
1067 "major": 3,
1068 "minor": 0
1069 },
1070 "headerSnippets": [
1071 "out $type $name;"
1072 ],
1073 "substitution": "$name = $value;"
1074 },
1075 {
1076 "format": {
1077 "api": "RHI",
1078 "major": 1,
1079 "minor": 0
1080 },
1081 "headerSnippets": [
1082 "add-input out $type $name"
1083 ],
1084 "substitution": "$name = $value;"
1085 }
1086 ]
1087 }
1088 }