 3cbc32f472
			
		
	
	
		3cbc32f472
		
	
	
	
	
		
			
			This adds an error message if a non-comparison sampler is used with comparison sampling methods. There's no functional change for correct shaders.
		
			
				
	
	
		
			97 lines
		
	
	
		
			3.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			97 lines
		
	
	
		
			3.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| hlsl.samplecmp.negative.frag
 | |
| ERROR: 0:9: '' : expected: SamplerComparisonState 
 | |
| ERROR: 1 compilation errors.  No code generated.
 | |
| 
 | |
| 
 | |
| Shader version: 500
 | |
| gl_FragCoord origin is upper left
 | |
| ERROR: node is still EOpNull!
 | |
| 0:7  Function Definition: @main( ( temp 4-component vector of float)
 | |
| 0:7    Function Parameters: 
 | |
| 0:?     Sequence
 | |
| 0:8      texture ( temp float)
 | |
| 0:8        Construct combined texture-sampler ( temp sampler2DShadow)
 | |
| 0:8          'g_shadowTex' ( uniform texture2D)
 | |
| 0:8          'g_shadowSamplerComp' ( uniform sampler)
 | |
| 0:8        Construct vec3 ( temp 3-component vector of float)
 | |
| 0:?           Constant:
 | |
| 0:?             0.000000
 | |
| 0:?             0.000000
 | |
| 0:8          Constant:
 | |
| 0:8            0.000000
 | |
| 0:9      ERROR: Bad aggregation op
 | |
|  ( temp float)
 | |
| 0:9        'g_shadowTex' ( uniform texture2D)
 | |
| 0:9        'g_shadowSampler' ( uniform sampler)
 | |
| 0:?         Constant:
 | |
| 0:?           0.000000
 | |
| 0:?           0.000000
 | |
| 0:9        Constant:
 | |
| 0:9          0.000000
 | |
| 0:11      Branch: Return with expression
 | |
| 0:11        Constant:
 | |
| 0:11          0.000000
 | |
| 0:11          0.000000
 | |
| 0:11          0.000000
 | |
| 0:11          0.000000
 | |
| 0:7  Function Definition: main( ( temp void)
 | |
| 0:7    Function Parameters: 
 | |
| 0:?     Sequence
 | |
| 0:7      move second child to first child ( temp 4-component vector of float)
 | |
| 0:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
 | |
| 0:7        Function Call: @main( ( temp 4-component vector of float)
 | |
| 0:?   Linker Objects
 | |
| 0:?     'g_shadowTex' ( uniform texture2D)
 | |
| 0:?     'g_shadowSampler' ( uniform sampler)
 | |
| 0:?     'g_shadowSamplerComp' ( uniform sampler)
 | |
| 0:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
 | |
| 
 | |
| 
 | |
| Linked fragment stage:
 | |
| 
 | |
| 
 | |
| Shader version: 500
 | |
| gl_FragCoord origin is upper left
 | |
| ERROR: node is still EOpNull!
 | |
| 0:7  Function Definition: @main( ( temp 4-component vector of float)
 | |
| 0:7    Function Parameters: 
 | |
| 0:?     Sequence
 | |
| 0:8      texture ( temp float)
 | |
| 0:8        Construct combined texture-sampler ( temp sampler2DShadow)
 | |
| 0:8          'g_shadowTex' ( uniform texture2D)
 | |
| 0:8          'g_shadowSamplerComp' ( uniform sampler)
 | |
| 0:8        Construct vec3 ( temp 3-component vector of float)
 | |
| 0:?           Constant:
 | |
| 0:?             0.000000
 | |
| 0:?             0.000000
 | |
| 0:8          Constant:
 | |
| 0:8            0.000000
 | |
| 0:9      ERROR: Bad aggregation op
 | |
|  ( temp float)
 | |
| 0:9        'g_shadowTex' ( uniform texture2D)
 | |
| 0:9        'g_shadowSampler' ( uniform sampler)
 | |
| 0:?         Constant:
 | |
| 0:?           0.000000
 | |
| 0:?           0.000000
 | |
| 0:9        Constant:
 | |
| 0:9          0.000000
 | |
| 0:11      Branch: Return with expression
 | |
| 0:11        Constant:
 | |
| 0:11          0.000000
 | |
| 0:11          0.000000
 | |
| 0:11          0.000000
 | |
| 0:11          0.000000
 | |
| 0:7  Function Definition: main( ( temp void)
 | |
| 0:7    Function Parameters: 
 | |
| 0:?     Sequence
 | |
| 0:7      move second child to first child ( temp 4-component vector of float)
 | |
| 0:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
 | |
| 0:7        Function Call: @main( ( temp 4-component vector of float)
 | |
| 0:?   Linker Objects
 | |
| 0:?     'g_shadowTex' ( uniform texture2D)
 | |
| 0:?     'g_shadowSampler' ( uniform sampler)
 | |
| 0:?     'g_shadowSamplerComp' ( uniform sampler)
 | |
| 0:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
 | |
| 
 | |
| SPIR-V is not generated for failed compile or link
 |