mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 12:52:44 +00:00 
			
		
		
		
	 39995548e4
			
		
	
	
		39995548e4
		
	
	
	
	
		
			
			This adds a method `info()` to SoftGPU that returns the name of the hardware vendor and device name, as well as the number of texture untis. LibGL uses the returned texture unit count to initialize its internal texture unit array.
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			295 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			295 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2021, Stephan Unverwerth <s.unverwerth@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <AK/String.h>
 | |
| 
 | |
| namespace SoftGPU {
 | |
| 
 | |
| struct DeviceInfo final {
 | |
|     String vendor_name;
 | |
|     String device_name;
 | |
|     unsigned num_texture_units;
 | |
| };
 | |
| 
 | |
| }
 |