mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	correct constness
This commit is contained in:
		
							parent
							
								
									28128348f2
								
							
						
					
					
						commit
						bb63ae3052
					
				
					 2 changed files with 4 additions and 2 deletions
				
			
		|  | @ -21,7 +21,8 @@ namespace Pica { | ||||||
| 
 | 
 | ||||||
| namespace Shader { | namespace Shader { | ||||||
| 
 | 
 | ||||||
| OutputVertex OutputVertex::FromAttributeBuffer(const RasterizerRegs& regs, AttributeBuffer& input) { | OutputVertex OutputVertex::FromAttributeBuffer(const RasterizerRegs& regs, | ||||||
|  |                                                const AttributeBuffer& input) { | ||||||
|     // Setup output data
 |     // Setup output data
 | ||||||
|     union { |     union { | ||||||
|         OutputVertex ret{}; |         OutputVertex ret{}; | ||||||
|  |  | ||||||
|  | @ -50,7 +50,8 @@ struct OutputVertex { | ||||||
|     INSERT_PADDING_WORDS(1); |     INSERT_PADDING_WORDS(1); | ||||||
|     Math::Vec2<float24> tc2; |     Math::Vec2<float24> tc2; | ||||||
| 
 | 
 | ||||||
|     static OutputVertex FromAttributeBuffer(const RasterizerRegs& regs, AttributeBuffer& output); |     static OutputVertex FromAttributeBuffer(const RasterizerRegs& regs, | ||||||
|  |                                             const AttributeBuffer& output); | ||||||
| }; | }; | ||||||
| #define ASSERT_POS(var, pos)                                                                       \ | #define ASSERT_POS(var, pos)                                                                       \ | ||||||
|     static_assert(offsetof(OutputVertex, var) == pos * sizeof(float24), "Semantic at wrong "       \ |     static_assert(offsetof(OutputVertex, var) == pos * sizeof(float24), "Semantic at wrong "       \ | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue