forked from eden-emu/eden
		
	shader: Properly scale image reads and add GL SPIR-V support
Thanks for everything!
This commit is contained in:
		
							parent
							
								
									928ff21aae
								
							
						
					
					
						commit
						d04e2dac6c
					
				
					 25 changed files with 228 additions and 77 deletions
				
			
		|  | @ -129,8 +129,7 @@ void PatchImageFetch(IR::Block& block, IR::Inst& inst) { | |||
| void PatchImageRead(IR::Block& block, IR::Inst& inst) { | ||||
|     IR::IREmitter ir{block, IR::Block::InstructionList::s_iterator_to(inst)}; | ||||
|     const auto info{inst.Flags<IR::TextureInstInfo>()}; | ||||
|     // TODO: Scale conditionally
 | ||||
|     const IR::U1 is_scaled{IR::Value{true}}; | ||||
|     const IR::U1 is_scaled{ir.IsImageScaled(ir.Imm32(info.descriptor_index))}; | ||||
|     ScaleIntegerCoord(ir, inst, is_scaled); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 ReinUsesLisp
						ReinUsesLisp