mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-11-04 08:59:03 -06:00 
			
		
		
		
	shader_decompiler: add check in case of device not support ShaderStorageImageReadWithoutFormat
This commit is contained in:
		@@ -1749,6 +1749,10 @@ private:
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    Expression ImageLoad(Operation operation) {
 | 
			
		||||
        if (!device.IsShaderStorageImageReadWithoutFormatSupported()) {
 | 
			
		||||
            return {v_float_zero, Type::Float};
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        const auto& meta{std::get<MetaImage>(operation.GetMeta())};
 | 
			
		||||
 | 
			
		||||
        const Id coords = GetCoordinates(operation, Type::Int);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user