| 
									
										
										
										
											2023-10-12 12:51:52 +02:00
										 |  |  | [require] | 
					
						
							|  |  |  | shader model >= 4.0 | 
					
						
							|  |  |  | shader model < 6.0 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-01 22:16:47 +01:00
										 |  |  | [pixel shader fail] | 
					
						
							| 
									
										
										
										
											2023-10-12 12:51:52 +02:00
										 |  |  | float4 main() : sv_target | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     float4 teChnique = {0, 0, 0, 0}; | 
					
						
							|  |  |  |     return teChnique; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-02 15:37:01 +01:00
										 |  |  | [pixel shader fail] | 
					
						
							| 
									
										
										
										
											2023-11-02 15:26:38 +01:00
										 |  |  | float4 main() : sv_target | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     float4 fxgroup = {0, 0, 0, 0}; | 
					
						
							|  |  |  |     return fxgroup; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-12 12:51:52 +02:00
										 |  |  | [pixel shader] | 
					
						
							|  |  |  | float4 main() : sv_target | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     float4 teChnique10 = {0, 0, 0, 0}; | 
					
						
							|  |  |  |     return teChnique10; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [pixel shader] | 
					
						
							|  |  |  | float4 main() : sv_target | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     float4 teChnique11 = {0, 0, 0, 0}; | 
					
						
							|  |  |  |     return teChnique11; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-02 15:26:38 +01:00
										 |  |  | [pixel shader] | 
					
						
							|  |  |  | float4 main() : sv_target | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     float4 fxGroup = {0, 0, 0, 0}; | 
					
						
							|  |  |  |     return fxGroup; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-05 22:07:01 +01:00
										 |  |  | [effect] | 
					
						
							| 
									
										
										
										
											2023-10-12 12:51:52 +02:00
										 |  |  | technique | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | technique10 | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | % Effects without techniques are allowed for fx_4_0+ | 
					
						
							| 
									
										
										
										
											2023-11-05 22:07:01 +01:00
										 |  |  | [effect] | 
					
						
							| 
									
										
										
										
											2023-10-12 12:51:52 +02:00
										 |  |  | float4 f; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | % fx_2_0 keyword is allowed with fx_4_0+ profiles | 
					
						
							| 
									
										
										
										
											2023-11-05 22:07:01 +01:00
										 |  |  | [effect] | 
					
						
							| 
									
										
										
										
											2023-10-12 12:51:52 +02:00
										 |  |  | technique | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | technique11 | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-05 17:28:40 +01:00
										 |  |  | [effect fail] | 
					
						
							| 
									
										
										
										
											2023-10-12 12:51:52 +02:00
										 |  |  | technique | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | tEchnique10 | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-05 17:28:40 +01:00
										 |  |  | [effect fail] | 
					
						
							| 
									
										
										
										
											2023-10-12 12:51:52 +02:00
										 |  |  | technique | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | tEchnique11 | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [effect fail] | 
					
						
							|  |  |  | float4 technique; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [effect fail] | 
					
						
							|  |  |  | float4 technIque; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [effect fail] | 
					
						
							|  |  |  | float4 technique10; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [effect fail] | 
					
						
							|  |  |  | float4 technique11; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-05 22:07:01 +01:00
										 |  |  | [effect] | 
					
						
							| 
									
										
										
										
											2023-10-12 12:51:52 +02:00
										 |  |  | float4 technIque10; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-05 22:07:01 +01:00
										 |  |  | [effect] | 
					
						
							| 
									
										
										
										
											2023-10-12 12:51:52 +02:00
										 |  |  | float4 technIque11; | 
					
						
							| 
									
										
										
										
											2023-11-01 19:44:39 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | % Regular shaders with technique blocks | 
					
						
							| 
									
										
										
										
											2023-11-05 19:27:00 +01:00
										 |  |  | [vertex shader] | 
					
						
							| 
									
										
										
										
											2023-11-01 19:44:39 +01:00
										 |  |  | float4 main() : sv_position | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     return 0; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | technique | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | technique10 | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | technique11 | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-02 15:26:38 +01:00
										 |  |  | fxgroup group | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     technique10 {} | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-05 19:27:00 +01:00
										 |  |  | [pixel shader] | 
					
						
							| 
									
										
										
										
											2023-11-01 19:44:39 +01:00
										 |  |  | float4 main() : sv_target | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     return 0; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | tEchnique | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | technique10 | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | technique11 | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-11-02 15:26:38 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | fxgroup group | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     technique10 {} | 
					
						
							|  |  |  | } |