It's okay for symbolic spec-consts, but without constant folding, not okay when the array size is an expression.
		
			
				
	
	
		
			7 lines
		
	
	
		
			180 B
		
	
	
	
		
			Plaintext
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
		
			180 B
		
	
	
	
		
			Plaintext
		
	
	
		
			Executable File
		
	
	
	
	
spv.specConstArrayCheck.vert
 | 
						|
ERROR: 0:13: '[' :  array index out of range '6'
 | 
						|
ERROR: 1 compilation errors.  No code generated.
 | 
						|
 | 
						|
 | 
						|
SPIR-V is not generated for failed compile or link
 |