mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
				synced 2025-03-21 01:53:15 +00:00 
			
		
		
		
	shader_ir: Add internal flag getters
This commit is contained in:
		
							parent
							
								
									15f431f0cb
								
							
						
					
					
						commit
						2f87fd060d
					
				| @ -109,6 +109,14 @@ Node ShaderIR::GetOutputAttribute(Attribute::Index index, u64 element, Node buff | ||||
|     return StoreNode(AbufNode(index, static_cast<u32>(element), buffer)); | ||||
| } | ||||
| 
 | ||||
| Node ShaderIR::GetInternalFlag(InternalFlag flag, bool negated) { | ||||
|     const Node node = StoreNode(InternalFlagNode(flag)); | ||||
|     if (negated) { | ||||
|         return Operation(OperationCode::LogicalNegate, node); | ||||
|     } | ||||
|     return node; | ||||
| } | ||||
| 
 | ||||
| /*static*/ OperationCode ShaderIR::SignedToUnsignedCode(OperationCode operation_code, | ||||
|                                                         bool is_signed) { | ||||
|     if (is_signed) { | ||||
|  | ||||
| @ -629,6 +629,8 @@ private: | ||||
|                            const Tegra::Shader::IpaMode& input_mode, Node buffer = {}); | ||||
|     /// Generates a node representing an output atttribute. Keeps track of used attributes.
 | ||||
|     Node GetOutputAttribute(Tegra::Shader::Attribute::Index index, u64 element, Node buffer); | ||||
|     /// Generates a node representing an internal flag
 | ||||
|     Node GetInternalFlag(InternalFlag flag, bool negated = false); | ||||
| 
 | ||||
|     template <typename... T> | ||||
|     inline Node Operation(OperationCode code, const T*... operands) { | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 ReinUsesLisp
						ReinUsesLisp