| 
									
										
										
										
											2023-10-12 12:51:52 +02:00
										 |  |  | [require] | 
					
						
							|  |  |  | shader model < 3.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; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [pixel shader fail] | 
					
						
							|  |  |  | float4 main() : sv_target | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     float4 technique10 = {0, 0, 0, 0}; | 
					
						
							|  |  |  |     return technique10; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-01 21:54:17 +01:00
										 |  |  | [pixel shader fail] | 
					
						
							| 
									
										
										
										
											2023-10-12 12:51:52 +02:00
										 |  |  | float4 main() : sv_target | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     float4 technique11 = {0, 0, 0, 0}; | 
					
						
							|  |  |  |     return technique11; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [pixel shader fail] | 
					
						
							|  |  |  | typedef float4 technique10; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | float4 main() : sv_target | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     return float4(0, 0, 0, 0); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-01 22:16:47 +01:00
										 |  |  | [pixel shader fail] | 
					
						
							| 
									
										
										
										
											2023-10-12 12:51:52 +02:00
										 |  |  | typedef float4 Technique; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | float4 main() : sv_target | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     return float4(0, 0, 0, 0); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-02 15:26:38 +01:00
										 |  |  | [pixel shader fail todo] | 
					
						
							|  |  |  | float4 main() : sv_target | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     float4 fxgroup = {0, 0, 0, 0}; | 
					
						
							|  |  |  |     return fxgroup; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-12 12:51:52 +02:00
										 |  |  | [pixel shader] | 
					
						
							|  |  |  | typedef float4 Technique10; | 
					
						
							|  |  |  | typedef float4 Technique11; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | float4 main() : sv_target | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     return float4(0, 0, 0, 0); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [pixel shader] | 
					
						
							|  |  |  | float4 main() : sv_target | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     float4 teChnique10 = {0, 0, 0, 0}; | 
					
						
							|  |  |  |     float4 teChnique11 = {0, 0, 0, 0}; | 
					
						
							|  |  |  |     return teChnique10 + teChnique11; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [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-10-12 12:51:52 +02:00
										 |  |  | [effect todo] | 
					
						
							|  |  |  | technique | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | technique10 | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | % Effects without techniques are not allowed for fx_2_0 | 
					
						
							|  |  |  | [effect fail] | 
					
						
							|  |  |  | float4 f; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | % fx_5_0 keyword fails with fx_2_0 profile | 
					
						
							| 
									
										
										
										
											2023-11-01 22:53:29 +01:00
										 |  |  | [effect fail todo] | 
					
						
							| 
									
										
										
										
											2023-10-12 12:51:52 +02:00
										 |  |  | technique | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | technique11 | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-01 22:53:29 +01:00
										 |  |  | [effect fail todo] | 
					
						
							| 
									
										
										
										
											2023-10-12 12:51:52 +02:00
										 |  |  | technique | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | tEchnique10 | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-01 22:53:29 +01:00
										 |  |  | [effect fail todo] | 
					
						
							| 
									
										
										
										
											2023-10-12 12:51:52 +02:00
										 |  |  | technique | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | tEchnique11 | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-11-01 19:44:39 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-02 15:26:38 +01:00
										 |  |  | [effect fail] | 
					
						
							|  |  |  | // Empty groups are not allowed | 
					
						
							|  |  |  | fxgroup group | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-01 19:44:39 +01:00
										 |  |  | % Regular shaders with technique blocks | 
					
						
							|  |  |  | [vertex shader todo] | 
					
						
							|  |  |  | float4 main() : sv_position | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     return 0; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | technique | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | technique10 | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | technique11 | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-02 15:26:38 +01:00
										 |  |  | fxgroup group | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     technique10 {} | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-01 19:44:39 +01:00
										 |  |  | [pixel shader todo] | 
					
						
							|  |  |  | float4 main() : sv_target | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     return 0; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | tEchnique | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | technique10 | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | technique11 | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-11-02 15:26:38 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | fxgroup group | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     technique10 {} | 
					
						
							|  |  |  | } |