mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 16:52:43 +00:00 
			
		
		
		
	 67b2f8d68d
			
		
	
	
		67b2f8d68d
		
	
	
	
	
		
			
			This adds a new library, LibGLSL for parsing and compiling GLSL programs to LibGPU IR. Currently the compiler consists only of stubs.
		
			
				
	
	
		
			18 lines
		
	
	
	
		
			382 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			382 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2022, Stephan Unverwerth <s.unverwerth@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #include <LibGLSL/Compiler.h>
 | |
| 
 | |
| namespace GLSL {
 | |
| 
 | |
| ErrorOr<NonnullOwnPtr<ObjectFile>> Compiler::compile(Vector<String> const&)
 | |
| {
 | |
|     // FIXME: implement this function
 | |
|     m_messages = TRY(String::from_utf8(""sv));
 | |
|     return adopt_own(*new ObjectFile());
 | |
| }
 | |
| 
 | |
| }
 |