Output variables in GLCompute shaders is not supported in Vulkan. Recent upgrade of spirv-tools revealed this problem.
		
			
				
	
	
		
			14 lines
		
	
	
		
			175 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			175 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
 | 
						|
uniform int bound;
 | 
						|
 | 
						|
#define FOO 3
 | 
						|
#define BAR 2
 | 
						|
 | 
						|
[numthreads(2+2, 2*3, (1+FOO)*BAR)]
 | 
						|
void main()
 | 
						|
{
 | 
						|
    [unroll(5*2 + 1) ]
 | 
						|
        for (int x=0; x<bound; ++x)
 | 
						|
            ;
 | 
						|
}
 |