mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-30 02:22:07 +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.
		
			
				
	
	
		
			28 lines
		
	
	
	
		
			522 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
	
		
			522 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2022, Stephan Unverwerth <s.unverwerth@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <AK/Error.h>
 | |
| #include <AK/NonnullOwnPtr.h>
 | |
| #include <AK/String.h>
 | |
| #include <AK/Vector.h>
 | |
| #include <LibGLSL/LinkedShader.h>
 | |
| #include <LibGLSL/ObjectFile.h>
 | |
| 
 | |
| namespace GLSL {
 | |
| 
 | |
| class Linker final {
 | |
| public:
 | |
|     ErrorOr<NonnullOwnPtr<LinkedShader>> link(Vector<ObjectFile const*> const&);
 | |
| 
 | |
|     String messages() const { return m_messages; }
 | |
| 
 | |
| private:
 | |
|     String m_messages;
 | |
| };
 | |
| 
 | |
| }
 |