mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 03:32:45 +00:00 
			
		
		
		
	 1e548a84d6
			
		
	
	
		1e548a84d6
		
	
	
	
	
		
			
			This adds a simple instruction set with basic operations and adds an instruction list to the shader class.
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			339 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			339 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2022, Stephan Unverwerth <s.unverwerth@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #include <LibSoftGPU/Shader.h>
 | |
| 
 | |
| namespace SoftGPU {
 | |
| 
 | |
| Shader::Shader(void const* ownership_token, Vector<Instruction> const& instructions)
 | |
|     : GPU::Shader(ownership_token)
 | |
|     , m_instructions(instructions)
 | |
| {
 | |
| }
 | |
| 
 | |
| }
 |