mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	gl_shader_gen: Convert file-scope std::string into a std::string_view (#5263)
Same behavior, no heap allocations at program start up
This commit is contained in:
		
							parent
							
								
									db5b8b9c88
								
							
						
					
					
						commit
						8b43dff849
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -5,6 +5,7 @@ | |||
| #include <array> | ||||
| #include <cstddef> | ||||
| #include <cstring> | ||||
| #include <string_view> | ||||
| #include "common/assert.h" | ||||
| #include "common/bit_field.h" | ||||
| #include "common/bit_set.h" | ||||
|  | @ -30,7 +31,7 @@ using VSOutputAttributes = RasterizerRegs::VSOutputAttributes; | |||
| 
 | ||||
| namespace OpenGL { | ||||
| 
 | ||||
| static const std::string UniformBlockDef = R"( | ||||
| constexpr std::string_view UniformBlockDef = R"( | ||||
| #define NUM_TEV_STAGES 6 | ||||
| #define NUM_LIGHTS 8 | ||||
| #define NUM_LIGHTING_SAMPLERS 24 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue