This implementation uses the GLSL extension GL_NV_conservative_raster_underestimation to generate the new SPIR-V FullyCoveredEXT built in.
		
			
				
	
	
		
			10 lines
		
	
	
		
			160 B
		
	
	
	
		
			GLSL
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			160 B
		
	
	
	
		
			GLSL
		
	
	
	
	
	
#version 450
 | 
						|
 | 
						|
#extension GL_NV_conservative_raster_underestimation : enable
 | 
						|
 | 
						|
out vec4 color;
 | 
						|
 | 
						|
void main() {
 | 
						|
    color = vec4(gl_FragFullyCoveredNV, 0, 0, 0);
 | 
						|
}
 |