mirror of
				https://github.com/hedge-dev/XenosRecomp.git
				synced 2025-10-30 07:12:17 +00:00 
			
		
		
		
	Compare commits
	
		
			2 commits
		
	
	
		
			3597ea388e
			...
			d7cf01336e
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | d7cf01336e | ||
|   | 421e3b3e79 | 
					 2 changed files with 8 additions and 2 deletions
				
			
		|  | @ -29,7 +29,8 @@ struct PushConstants | ||||||
| 
 | 
 | ||||||
| #define g_Booleans                 vk::RawBufferLoad<uint>(g_PushConstants.SharedConstants + 256) | #define g_Booleans                 vk::RawBufferLoad<uint>(g_PushConstants.SharedConstants + 256) | ||||||
| #define g_SwappedTexcoords         vk::RawBufferLoad<uint>(g_PushConstants.SharedConstants + 260) | #define g_SwappedTexcoords         vk::RawBufferLoad<uint>(g_PushConstants.SharedConstants + 260) | ||||||
| #define g_AlphaThreshold           vk::RawBufferLoad<float>(g_PushConstants.SharedConstants + 264) | #define g_HalfPixelOffset          vk::RawBufferLoad<float2>(g_PushConstants.SharedConstants + 264) | ||||||
|  | #define g_AlphaThreshold           vk::RawBufferLoad<float>(g_PushConstants.SharedConstants + 272) | ||||||
| 
 | 
 | ||||||
| [[vk::constant_id(0)]] const uint g_SpecConstants = 0; | [[vk::constant_id(0)]] const uint g_SpecConstants = 0; | ||||||
| 
 | 
 | ||||||
|  | @ -65,7 +66,8 @@ struct PushConstants | ||||||
| #define DEFINE_SHARED_CONSTANTS() \ | #define DEFINE_SHARED_CONSTANTS() \ | ||||||
|     uint g_Booleans : packoffset(c16.x); \ |     uint g_Booleans : packoffset(c16.x); \ | ||||||
|     uint g_SwappedTexcoords : packoffset(c16.y); \ |     uint g_SwappedTexcoords : packoffset(c16.y); \ | ||||||
|     float g_AlphaThreshold : packoffset(c16.z) \ |     float2 g_HalfPixelOffset : packoffset(c16.z); \ | ||||||
|  |     float g_AlphaThreshold : packoffset(c17.x); | ||||||
| 
 | 
 | ||||||
| uint g_SpecConstants(); | uint g_SpecConstants(); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -2216,6 +2216,10 @@ void ShaderRecompiler::recompile(const uint8_t* shaderData, const std::string_vi | ||||||
|                     out += "}\n"; |                     out += "}\n"; | ||||||
|                 #endif |                 #endif | ||||||
|                 } |                 } | ||||||
|  |                 else | ||||||
|  |                 { | ||||||
|  |                     out += "\toPos.xy += g_HalfPixelOffset * oPos.w;\n"; | ||||||
|  |                 } | ||||||
| 
 | 
 | ||||||
|                 if (simpleControlFlow) |                 if (simpleControlFlow) | ||||||
|                 { |                 { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue