mirror of
				https://gitlab.winehq.org/wine/vkd3d.git
				synced 2025-09-12 18:50:22 -07:00 
			
		
		
		
	The location of dxcompiler should be set during configuration with 'DXCOMPILER_LIBS=-L/path/to/dxcompiler', and then at runtime with LD_LIBRARY_PATH, WINEPATH or PATH as applicable. A new 'fail(sm<6)' decoration is needed on many shader declarations because dxcompiler succeeds on many shaders which fail with fxc. The opposite case is less common and is flagged with 'fail(sm>=6)'. A few tests cause dxcompiler to crash or hang, so these are avoided using [require], which now skips tests until reset instead of exiting. Also, 'todo(sm<6)' and 'todo(sm>=6)' are used to separate checking of results.
		
			
				
	
	
		
			109 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			109 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| [pixel shader]
 | |
| typedef row_major float2x2 mat_t;
 | |
| 
 | |
| row_major mat_t m;
 | |
| 
 | |
| float4 main() : sv_target
 | |
| {
 | |
|     return float4(m[0], m[1]);
 | |
| }
 | |
| 
 | |
| [test]
 | |
| uniform 0 float4 0.1 0.3 0.0 0.0
 | |
| uniform 4 float4 0.2 0.4 0.0 0.0
 | |
| todo(sm>=6) draw quad
 | |
| probe all rgba (0.1, 0.3, 0.2, 0.4)
 | |
| 
 | |
| [pixel shader fail(sm<6)]
 | |
| row_major row_major float4x4 m;
 | |
| 
 | |
| float4 main() : sv_target
 | |
| {
 | |
|     return float4(0, 0, 0, 0);
 | |
| }
 | |
| 
 | |
| [pixel shader fail]
 | |
| typedef row_major float4x4 mat_t;
 | |
| column_major mat_t m;
 | |
| 
 | |
| float4 main() : sv_target
 | |
| {
 | |
|     return float4(0, 0, 0, 0);
 | |
| }
 | |
| 
 | |
| [pixel shader fail]
 | |
| typedef row_major float4x4 matrix_t;
 | |
| typedef column_major matrix_t matrix2_t;
 | |
| 
 | |
| float4 main() : sv_target
 | |
| {
 | |
|     return 0;
 | |
| }
 | |
| 
 | |
| [pixel shader fail]
 | |
| typedef column_major float4 myfloat_t;
 | |
| 
 | |
| float4 main() : sv_target
 | |
| {
 | |
|     return 0;
 | |
| }
 | |
| 
 | |
| [pixel shader fail]
 | |
| column_major float4 f;
 | |
| 
 | |
| float4 main() : sv_target
 | |
| {
 | |
|     return 0;
 | |
| }
 | |
| 
 | |
| [pixel shader fail]
 | |
| struct apple
 | |
| {
 | |
|     float4x4 m;
 | |
| };
 | |
| typedef column_major struct apple apple_t;
 | |
| 
 | |
| float4 main() : sv_target
 | |
| {
 | |
|     return 0;
 | |
| }
 | |
| 
 | |
| [pixel shader fail]
 | |
| struct apple
 | |
| {
 | |
|     float4x4 m;
 | |
| };
 | |
| column_major struct apple a;
 | |
| 
 | |
| float4 main() : sv_target
 | |
| {
 | |
|     return 0;
 | |
| }
 | |
| 
 | |
| [pixel shader fail]
 | |
| typedef float4x4 myarray_t[2];
 | |
| 
 | |
| row_major myarray_t a;
 | |
| 
 | |
| float4 main() : sv_target
 | |
| {
 | |
|     return 0;
 | |
| }
 | |
| 
 | |
| [pixel shader fail]
 | |
| float4 main(uniform row_major float4 f) : sv_target
 | |
| {
 | |
|     return 0;
 | |
| }
 | |
| 
 | |
| [pixel shader fail]
 | |
| struct apple
 | |
| {
 | |
|     row_major float4 f;
 | |
| };
 | |
| 
 | |
| float4 main() : sv_target
 | |
| {
 | |
|     return 0;
 | |
| }
 |